MongoDB MCP Server
MongoDB's MCP server queries and manages MongoDB collections, documents and Atlas clusters. It is an official, vendor-maintained server. Works in Claude, Cursor and Claude Code.
What MongoDB can do
Tools MongoDB exposes
6 tools · from docsThe exact tools this MCP server gives your AI.
| find | Query documents | read |
| aggregate | Run an aggregation | read |
| insert | Insert documents | write |
| update | Update documents | write |
| delete | Delete documents | write |
| list_collections | List collections | read |
Try asking Claude
Example prompts once MongoDB is connected.
Set up MongoDB
Pick your client. Every snippet is copy-ready.
Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
]
}
}
}Permissions & safety
Can change data via: insertupdatedelete
Destructive tools: delete
Runs locally, so your data stays on your machine and only what the AI needs is sent to the model.
To stay safe, connect with least-privilege scopes and use a read-only credential where the service supports one.
Troubleshooting
FAQ
MongoDB is a local server, so you add it with a command: run "claude mcp add mongodb -- npx -y mongodb-mcp-server", then restart Claude. See the config snippet above for Cursor and VS Code.
More Database MCP servers
Supabase
Database
Supabase's official MCP server manages your Postgres database, tables, SQL, branches, edge functions and project config.
Firebase
Database
Firebase's MCP server (via the Firebase CLI) manages Firestore, Auth, Storage and project config.
Microsoft Dataverse
Database
Lists and describes Microsoft Dataverse tables, runs read queries and searches, creates, updates and deletes records, and creates, updates and deletes tables.
Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.
Something wrong with this listing? Report it.