integrations/mongodb-mcp
MongoDB MCP Server mcp
Query collections, inspect schemas and indexes, and explain plans on a MongoDB deployment, in read-only mode.
Third-party software. Forgeprint hosts none of this code: it is an installation recipe for a project somebody else publishes and maintains. Review the permissions below before installing.
Upstream
| Project | mongodb-js/mongodb-mcp-server |
|---|---|
| Pinned at | 3.0.4 |
| Verified on | 2026-09-24 |
What it can reach
Reads every database and collection the connection string's user can read: documents, schemas, indexes, statistics and query plans; create, update and delete tools are not registered.
It needs MDB_MCP_CONNECTION_STRING. Create it at the upstream with the narrowest scope that works and put it in your environment — an agent never enters a secret for you.
Install
Claude Code
claude mcp add-json mongodb '{"command":"npx","args":["-y","mongodb-mcp-server@3.0.4","--readOnly","--telemetry","disabled"],"env":{"MDB_MCP_CONNECTION_STRING":"${MDB_MCP_CONNECTION_STRING}"}}'
Codex CLI
codex mcp add mongodb --env "MDB_MCP_CONNECTION_STRING=$MDB_MCP_CONNECTION_STRING" -- npx -y mongodb-mcp-server@3.0.4 --readOnly --telemetry disabled
Gemini CLI
gemini mcp add mongodb -e 'MDB_MCP_CONNECTION_STRING=$MDB_MCP_CONNECTION_STRING' npx -y mongodb-mcp-server@3.0.4 --readOnly --telemetry disabled
Only agents whose command syntax has been verified are listed. A missing agent is one nobody has confirmed, not one that does not work.