Overview
What is MongoDB?
MongoDB is a document database used for flexible schemas, aggregations, and developer-friendly JSON-like data.
The official MongoDB MCP server runs via npx and connects with a connection string so assistants can explore collections and run carefully scoped operations against your cluster.
Documentation & links
About MongoDB
Document database Atlas and tooling.
MongoDB offers MCP tooling for Atlas / database workflows.
Config
Add MongoDB to your MCP client using the configuration below. Tabs appear only for clients this app supports.
Config file%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017"
}
}
}
}Paste into claude_desktop_config.json, then restart Claude Desktop.
Comments
Share tips, gotchas, or updates about connecting MongoDB. Guests can post too — no account required.
Loading comments…