Does MongoDB have an MCP server?
MongoDB maintains an official MCP server.
- Access
- Local server
- Repository
- mongodb-js/mongodb-mcp-server
- Maintainer
- mongodb-js
- License
- Apache-2.0
- Language
- TypeScript
- Stars
- 1.1k
- Last commit
- today
- Category
- Databases
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Runs on your machine over stdio, launched by your MCP client.
Add it from the terminal, then restart your session:
claude mcp add mongodb -- npx -y <package-from-readme>Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable.
Add --scope user to make it available in every project.
Open Settings → Developer → Edit Config and add the server to claude_desktop_config.json:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
],
"env": {
"API_KEY": "…"
}
}
}
}Restart Claude Desktop after saving.
Add to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for
every project:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
],
"env": {
"API_KEY": "…"
}
}
}
}A green dot in Settings → MCP means it connected.
Add to .vscode/mcp.json:
{
"servers": {
"mongodb": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"<package-from-readme>"
]
}
}
}Then pick the server from the tools menu in Copilot's agent mode.
Does MongoDB have an official MCP server?
Yes. MongoDB maintains an official MCP server. The source lives at mongodb-js/mongodb-mcp-server on GitHub.
How do I connect MongoDB to Claude?
Run the server locally and register it in Claude's MCP config. In Claude Code that's a single "claude mcp add" command; in Claude Desktop you add it to claude_desktop_config.json.
How is this verdict verified?
mongodb-js/mongodb-mcp-server (~1.1k stars, active) is MongoDB's official server, on npm as mongodb-mcp-server. Seed said COMMUNITY-ONLY with a third-party Atlas repo. GitHub metadata is refreshed every six hours.
mongodb-js/mongodb-mcp-server (~1.1k stars, active) is MongoDB's official server, on npm as mongodb-mcp-server. Seed said COMMUNITY-ONLY with a third-party Atlas repo.
- github data refreshed 2026-08-11, then every 6 hours
- vendor docs verified on 2026-08-10
Spotted something out of date? Tell us — corrections ship same-day.