Back to Apps

MCP MongoDB Server
by kiliczsh
Enable LLMs to inspect schemas and execute queries on MongoDB databases with smart ObjectId handling.
0 stars
Works in:CursorWindsurf
Exposes:ToolsResources
What it does
Connects AI agents to MongoDB databases, allowing them to perform complex data operations and structural analysis without manual query writing.
Tools
query: Execute MongoDB queries and aggregation pipelines.insert/update: Perform write operations on collections.get_schema: Automatically infer collection schemas from document samples.list_collections: Auto-complete and retrieve collection names.explain: Get query explain plans for performance tuning.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["-y", "mcp-mongo-server", "mongodb://your-connection-string"]
}
}
}
Supported hosts
Confirmed support for Claude Desktop, Windsurf, and Cursor.
Quick install
npx -y mcp-mongo-server mongodb://localhost:27017/databaseInformation
- Pricing
- free
- Published
- 4/19/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Cursor
Add to mcp.json: { "name": "mongodb", "command": "npx", "args": ["-y", "mcp-mongo-server", "mongodb://your-connection-string"] }Windsurf
Add to mcp_config.json: { "mongodb": { "command": "npx", "args": ["-y", "mcp-mongo-server", "mongodb://your-connection-string"] } }Claude Desktop
{"mcpServers": {"mongodb": {"command": "npx", "args": ["-y", "mcp-mongo-server", "mongodb://your-connection-string"]}}}





