OfficialDatabaseslocal stdio / remote HTTP

MongoDB MCP Server

Lets agents query and manage MongoDB databases and administer MongoDB Atlas.

Install

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?
Through a connection string to any deployment; Atlas service-account credentials add Atlas cluster, user and access-list management.
Is there a hosted MongoDB MCP server?
Yes. MongoDB hosts an Atlas-managed remote server that uses OAuth.
Can the MongoDB MCP server run read-only?
Yes. The examples start in --readOnly mode.
How do I install the MongoDB MCP server in Claude Code?
Run /plugin install mongodb@claude-plugins-official.

Sources

Checked October 2, 2026.

Databases

View all
Aftergradient

What are you looking for?

Search commands, errors, tools