MongoDB MCP Server
Lets agents query and manage MongoDB databases and administer MongoDB Atlas.
Claude Code
/plugin install mongodb@claude-plugins-official
Codex
codex plugin marketplace add mongodb/agent-skills
Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.
MongoDB MCP Server is MongoDB’s official server for databases and MongoDB Atlas.
The MongoDB MCP server lets agents query and manage MongoDB databases and administer MongoDB Atlas. MongoDB publishes it under the Apache-2.0 license. Run locally with npx mongodb-mcp-server, it connects to any deployment through a connection string, and Atlas service-account credentials add cluster, user and access-list management. MongoDB also hosts an Atlas-managed remote server that uses OAuth. The steps below cover Claude Code and Codex.
Database tools find, aggregate, insert, update and inspect schemas and indexes, and the examples start in --readOnly mode.
Questions
How does the MongoDB MCP server connect to a database?
Is there a hosted MongoDB MCP server?
Can the MongoDB MCP server run read-only?
How do I install the MongoDB MCP server in Claude Code?
/plugin install mongodb@claude-plugins-official.Sources
Checked October 2, 2026.
Databases
View all- MCP Toolbox for DatabasesConnects agents to BigQuery, Cloud SQL, AlloyDB, Spanner, Postgres, MySQL and many other databases.Official
- Neon MCP ServerLets agents manage Neon Postgres projects and branches, run SQL, and handle schema migrations.Official
- Prisma MCPLets agents run Prisma migrations locally and manage Prisma Postgres databases remotely.Official
- Redis MCP ServerLets agents store, search and manage data in Redis using natural language.Official
