Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A MongoDB server implementing the Model Context Protocol (MCP), enabling LLMs to interact with MongoDB using natural language.

GitHub MCP Server enables advanced automation and interaction capabilities for developers and tools using Model Context Protocol.
A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. Query collections, inspect schemas, and manage data seamlessly through natural language.
To get started, find your mongodb connection url and add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"mongo-mcp",
"mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin"
]
}
}
}The server provides these tools for database interaction:
find: Query documents with filtering and projectionlistCollections: List available collectionsinsertOne: Insert a single documentupdateOne: Update a single documentdeleteOne: Delete a single documentcreateIndex: Create a new indexdropIndex: Remove an indexindexes: List indexes for a collectionThis project is licensed under the MIT License