Databases - official MongoDB server
MongoDB MCP server
Self-run MCP server for querying and managing MongoDB databases (Atlas, Atlas Local, Community and Enterprise) and, with Atlas service account credentials, administering Atlas clusters, users, access lists and stream processing. Runs via npx or Docker. It runs locally from mongodb-mcp-server (npm) with API key auth.
Last verified 15 tools6 sources
Install
Claude Code
About Claude Code/plugin install mongodb@claude-plugins-officialCodex
About Codexcodex plugin marketplace add mongodb/agent-skillsGeneric
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
}
}
}
}Tools
find- Run a find query against a MongoDB collection.
aggregate- Run an aggregation against a MongoDB collection.
collection-schema- Describe the schema for a collection.
collection-indexes- Describe the indexes for a collection.
create-index- Create an index for a collection.
insert-many- Insert an array of documents into a MongoDB collection.
update-many- Updates all documents that match the specified filter for a collection.
delete-many- Removes all documents that match the filter from a MongoDB collection.
explain- Returns statistics describing the execution of the winning query plan.
list-databases- List all databases for a MongoDB connection.
export- Export a query or aggregation results in the specified EJSON format.
atlas-list-clusters- List MongoDB Atlas clusters.
atlas-create-free-cluster- Create a free MongoDB Atlas cluster.
atlas-get-performance-advisor- Get Atlas Performance Advisor recommendations and recent slow query logs.
search-knowledge- Search the MongoDB Assistant knowledge base of official documentation and expert guidance.
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- Latest npm release 3.1.0 published 2026-10-15.
- Requires Node.js 22.12 or later per the docs (README says 22.13; Node 20 support deprecated).
- Auth is a MongoDB connection string and/or Atlas service account client ID and secret (Atlas tools only appear when Atlas credentials are set).
- Default examples use --readOnly.
- Transport defaults to stdio; --transport http is also supported.
- Interactive setup: npx -y mongodb-mcp-server@latest setup.
- Claude Code and Codex entries are the documented plugin installs (Claude Code then runs the /mongodb:mongodb-mcp-setup skill; Codex then installs mongodb from /plugins).
- Cursor and VS Code are documented as marketplace or one-click installs, not config snippets.
- Atlas Local tools need Docker.
- Not supported on Atlas Infinite clusters during that product's public preview.
- Originally announced in public preview (2025); current docs carry no lifecycle label, so status is left unknown.
More MCP servers for databases
- MongoDB
MongoDB Atlas Managed MCP server
MCP server hosted and operated by MongoDB in Atlas that gives AI clients access to Atlas deployments without running local infrastructure. Interactive clients authorize through OAuth with Atlas App Connections; programmatic agents use service account client credentials from an Atlas MCP configuration.
Transport: Streamable HTTP, stdioAuth: OAuth - AirtableStatus: GA
Airtable MCP server
Airtable's official hosted MCP server lets AI tools list and create bases, change table and field schema, read and write records, build interfaces, submit forms and draft automations, all within the user's existing permissions.
Transport: Streamable HTTPAuth: OAuth or API key - Chroma
Chroma MCP server
Self-hosted MCP server that lets agents create and manage Chroma collections and add, query, update and delete documents. It supports vector search, full-text search and metadata filtering against ephemeral, persistent, self-hosted HTTP or Chroma Cloud clients.
Transport: stdioAuth: Other - ClickHouseStatus: Beta
ClickHouse Cloud remote MCP server
A fully managed remote MCP endpoint for ClickHouse Cloud services that lets agents list databases and tables, run read-only SELECT queries, and inspect organizations, services, backups, ClickPipes and billing. All 13 tools are read-only.
Transport: Streamable HTTPAuth: OAuth or API key - ClickHouse
ClickHouse MCP server
Open-source MCP server from ClickHouse that lets AI assistants list databases and tables and run SQL against any ClickHouse instance, self-hosted or Cloud. It also has an optional chDB embedded engine. It runs locally over stdio by default, and can also serve Streamable HTTP.
Transport: stdio, Streamable HTTP, SSEAuth: Other - CockroachDBStatus: GA
CockroachDB Cloud MCP server
Managed MCP server built into CockroachDB Cloud that lets AI tools list clusters, explore live schemas and run SQL against clusters in a CockroachDB Cloud organization. Connections can cover every cluster the user or service account can access, or be scoped to one cluster with an mcp-cluster-id header.
Transport: Streamable HTTPAuth: OAuth or API key
Related reading
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
- Pi 1.0 Release Guide: MCP, Codemode and Pi DurablePi 1.0 adds built-in MCP through Codemode, a fullscreen TUI by default and Pi Durable. What changed, how to install it, and what breaks on upgrade.
FAQ
What does the MongoDB MCP server do?
Self-run MCP server for querying and managing MongoDB databases (Atlas, Atlas Local, Community and Enterprise) and, with Atlas service account credentials, administering Atlas clusters, users, access lists and stream processing. Runs via npx or Docker. The vendor documents 15 tools, including find, aggregate, collection-schema and collection-indexes.
How do I add the MongoDB MCP server to Claude Code?
Run /plugin install mongodb@claude-plugins-official, copied from MongoDB's docs. This page also has snippets for Codex and Generic.
Does the MongoDB MCP server need authentication?
Yes, API key. Transport: stdio, Streamable HTTP. Status: Unlabelled, last checked October 17, 2026.
Sources
Last verified against 6 MongoDB pages, then re-checked independently.
- mongodb.comhttps://www.mongodb.com/docs/mcp-server/overview/
- mongodb.comhttps://www.mongodb.com/docs/mcp-server/get-started/?ai-client=claude-code
- mongodb.comhttps://www.mongodb.com/docs/mcp-server/get-started/?ai-client=cursor
- github.comhttps://github.com/mongodb-js/mongodb-mcp-server
- raw.githubusercontent.comhttps://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/LICENSE
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.