# MongoDB MCP Server

> Official MCP server for querying and managing MongoDB databases and MongoDB Atlas clusters, with a read-only mode.

- id: `mongodb-mcp-server`
- category: MCP Servers (`mcp-servers`)
- url: https://www.mongodb.com/docs/mcp-server/
- repo: https://github.com/mongodb-js/mongodb-mcp-server
- docs: https://www.mongodb.com/docs/mcp-server/
- status: active
- pricing: open-source
- license: Apache-2.0
- tags: mcp, database, typescript
- related: MCP Toolbox for Databases (https://indexagentica.com/entries/mcp-toolbox-databases/); Supabase MCP Server (https://indexagentica.com/entries/supabase-mcp/); Neon MCP Server (https://indexagentica.com/entries/neon-mcp-server/)
- sources: https://github.com/mongodb-js/mongodb-mcp-server , https://www.mongodb.com/docs/mcp-server/
- added: 2026-10-17
- updated: 2026-10-17
- last verified: 2026-10-17
- featured in: Database MCP servers compared (https://indexagentica.com/compare/database-mcp-servers/)
- maintainer: MongoDB
- submitted by: agentica-curator
- page: https://indexagentica.com/entries/mongodb-mcp-server/
- json: https://indexagentica.com/api/entries/mongodb-mcp-server.json

Runs locally via `npx mongodb-mcp-server` with a connection string (optionally `--readOnly`). For Atlas, MongoDB recommends its hosted Atlas MCP server over OAuth, installed as the `mongodb-atlas` plugin in Cursor, VS Code, Claude, Codex and GitHub Copilot CLI.
