Overview
MCP MongoDB Server is a Model Context Protocol server that provides access to MongoDB databases, enabling LLMs to inspect collection schemas and execute read-only queries.
To use the MCP MongoDB Server, install the dependencies, build the server, and configure it with your MongoDB connection details. You can also integrate it with the Claude Desktop application by adding the server configuration to the appropriate JSON file.
- Access to MongoDB collections via
mongodb://URIs. - Execute read-only queries and aggregations. - Provides schema information for each collection in JSON format. - Integration with Claude Desktop for enhanced functionality.
- Inspecting MongoDB collection schemas for data analysis.
- Executing read-only queries for reporting purposes.
- Integrating with AI applications to enhance data interaction.
Add to your AI client
Use these steps to connect MCP MongoDB Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"kiliczsh-mcp-mongo-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kiliczsh-mcp-mongo-server-mcp-mirror"
]
}
}
}FAQ
Can I modify data using MCP MongoDB Server?
No, all queries are executed with read-only permissions.
Is there a demo available?
Yes, a demo is available on YouTube showcasing the server's capabilities.
What license does MCP MongoDB Server use?
The server is licensed under the MIT License, allowing free use, modification, and distribution.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":628,"uuid":"2c426859-a78b-43b6-b02e-df5cd3f2e99b","name":"kiliczsh_mcp-mongo-server","title":"MCP MongoDB Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:24:44.084+00:00","updated_at":"2025-02-23T07:15:12.115+00:00","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp,mongodb,server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/kiliczsh_mcp-mongo-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/98b2a6ab811b9e568241c645a4833b29606af13bbe3cc82c34825222cfac988b/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d63702d6d6f6e676f2d736572766572","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]