● MaintainedDatabases
MongoDB MCP Server
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Install
npx -y mongodb-mcp-server@latest --readOnlyExample config (Cursor / Claude Desktop)
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server@latest",
"--readOnly"
],
"env": {
"MDB_MCP_API_CLIENT_SECRET": "<your-value>",
"MDB_MCP_VOYAGE_API_KEY": "<your-value>"
}
}
}
}VS Code uses "servers" instead of "mcpServers" (why). On Windows, wrap npx with cmd /c (fix).
At a glance
| Repository | mongodb-js/mongodb-mcp-server |
| GitHub stars | 1,142 |
| Last commit | 2026-10-15 (0 days ago) |
| Status | maintained |
| Clients mentioned in README | Claude Desktop, Cursor, VS Code, Codex |
| Auth | OAuth or API key/token · MDB_MCP_API_CLIENT_SECRET MDB_MCP_VOYAGE_API_KEY |
| Language / License | TypeScript / Apache-2.0 |