MCP MongoDB Server

MCP MongoDB Server

MongodbMcpModelContextProtocolJavascriptTypescriptServerPythonGoRubyR

About This Server

A Model Context Protocol server that provides access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute MongoDB operations.

Server Information

šŸ“‹ Overview:

This report summarizes the content of a GitHub webpage for the repository "kiliczsh/mcp-mongo-server". The repository hosts a Model Context Protocol (MCP) server designed for MongoDB, enabling Large Language Models (LLMs) to interact with MongoDB databases by inspecting schemas and executing operations.


ā­ Key Points:
  • The repository contains a Model Context Protocol (MCP) server for MongoDB.

  • The server allows LLMs to inspect collection schemas and execute MongoDB operations.

  • It provides access to collections via MongoDB URIs.

  • Each collection offers a name, description, and schema.

  • JSON mime type is used for schema access.

  • Various tools, including "query", "aggregate", "update", "serverInfo", "insert", "createIndex", and "count", are available for MongoDB operations.

  • It supports installation via Smithery and mcp-get.

  • It includes instructions for development, debugging, and integration with Claude Desktop.

  • The project is licensed under the MIT License.


  • šŸ” Main Findings:
  • The "kiliczsh/mcp-mongo-server" repository hosts an MCP server specifically designed to facilitate interaction between LLMs and MongoDB databases.

  • The server provides tools to list and access collections, execute queries and aggregations, update documents, get server information, insert documents, create indexes and count documents.

  • It outlines methods for installation, development, debugging, and integration with Claude Desktop.

  • The demo video and tools provided are designed to support users in implementing the MCP server in a range of applications.


  • šŸ“Š Details:
  • Resources are provided as mongodb:// URIs.

  • Demo available at: https://www.youtube.com/watch?v=FI-oE_voCpA

  • The repository includes tools such as:

  • query (Execute MongoDB queries with optional execution plan analysis),

  • aggregate (Execute MongoDB aggregation pipelines with optional execution plan analysis),

  • update (Update documents in a collection),

  • serverInfo (Get MongoDB server information and status),

  • insert (Insert documents into a collection),

  • createIndex (Create indexes on a collection),

  • count (Count documents matching a query).

  • Installation instructions are provided for installing using smithery and mcp-get.

  • Configuration details are outlined for the usage of Claude Desktop.

  • The codebase consists primarily of JavaScript (82.3%), with TypeScript (14.4%), Dockerfile (2.5%), and Shell (0.8%) also being used.


šŸŽÆ Conclusion:
The "kiliczsh/mcp-mongo-server" repository provides a functional MCP server for MongoDB, aimed at facilitating interaction between LLMs and MongoDB databases. The repository includes comprehensive documentation and tools for developers looking to implement and utilize this server in a variety of applications, particularly those involving LLMs and data retrieval from MongoDB. The project is actively maintained, with five releases and contributions from four developers.

Server Features

Collection Access

List and access collections via mongodb:// URIs. Each collection has a name, description and schema. JSON mime type for schema access

Query

Execute MongoDB queries with optional execution plan analysis. Input: Collection name, filter, projection, limit, explain options. Returns query results or execution plan

Aggregate

Execute MongoDB aggregation pipelines with optional execution plan analysis. Input: Collection name, pipeline stages, explain options. Returns aggregation results or execution plan

Update

Update documents in a collection. Input: Collection name, filter, update operations, upsert/multi options. Returns update operation results

Server Info

Get MongoDB server information and status. Input: Optional debug info flag. Returns version, storage engine, and server details

Insert

Insert documents into a collection. Input: Collection name, documents array, write options. Returns insert operation results

CreateIndex

Create indexes on a collection. Input: Collection name, index specifications, write options. Returns index creation results

Count

Count documents matching a query. Input: Collection name, query filter, count options. Returns document count

Analyze Collection

Analyze collection structure and contents. Input: Collection name. Output: Insights about schema, data types, and statistics

Provider Information

Kiliczsh logo

Kiliczsh

cloud Provider

Visit Provider Website

Quick Actions

Visit Website

MCP Configuration

Available Tools

queryaggregateupdateserverInfoinsertcreateIndexcount