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
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
- MCP Client Features: Sampling, Elicitation and Roots ExplainedMCP sampling, elicitation and roots explained against the 2026-07-28 spec, with JSON-RPC examples and which of 24 clients support each one.
- REA vs leanrea: Skill or MCP for Reverse Engineering Agents?leanrea is an 8 KB skill pitched as a replacement for the REA (Reverse Engineer Anything) MCP server. What its benchmark shows, what it skips, and which to install.
- How to Publish a Plugin to the Claude Directory (Developer Portal Guide)Submit a plugin to the Claude directory: validate it, clear the security scan, publish, and read 90 days of usage analytics. Needs a paid plan.
- ChatGPT Plugin Extensions: Sidebar Apps, Panels and File EditorsChatGPT plugins can now add sidebar apps, side panels, file editors and native forms. How openai/ui entrypoints work, with type-checked code.
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.