Skip to content
← Back to Skills & MCP

MongoDB MCP

🔌 MCP Server

Connect and query MongoDB and Atlas from AI

Open Source No Ads No Tracking Self-hostable Cross-platform

MongoDB's official open-source MCP server that lets the model connect to a local MongoDB or an Atlas cluster to run queries and aggregations, manage collections and indexes, and administer Atlas resources. Runs locally via npx and needs a connection string or Atlas credentials.

Install / Add

npx -y @mongodb-js/mongodb-mcp-server

Why we picked it

MongoDB MCP is an open-source Model Context Protocol (MCP) server built for modern AI-assisted development workflows. MongoDB's official open-source MCP server that lets the model connect to a local MongoDB or an Atlas cluster to run queries and aggregations, manage collections and indexes, and administer Atlas resources. Runs locally via npx and needs a connection string or Atlas credentials.

Released under the Apache-2.0 license, it works across Claude, Claude Code, Cursor, Cline, Any MCP client. You can set it up quickly via npx -y @mongodb-js/mongodb-mcp-server, and it ships with zero ads or vendor lock-in, making it a reliable addition to your local agent stack.

Frequently Asked Questions

Which AI clients support MongoDB MCP and how do I install it?
MongoDB MCP works with Claude, Claude Code, Cursor, Cline, Any MCP client. Install or launch it via `npx -y @mongodb-js/mongodb-mcp-server`.
Is MongoDB MCP free and open source?
Yes, MongoDB MCP is released for free under the Apache-2.0 license with no ads.
What are some related MCP servers or Agent Skills to MongoDB MCP?
Related free and open-source options include MetaMCP, shadcn/ui Official & Community MCP, 21st.dev Magic UI MCP.