Today, MongoDB is pleased to share the MongoDB Model Context Protocol (MCP) Server in public preview. The MongoDB MCP Server enables AI-powered development by connecting MongoDB deployments—whether they’re on MongoDB Atlas, MongoDB Community Edition, or MongoDB Enterprise Advanced—to MCP-supported clients like Windsurf, Cursor, GitHub Copilot in Visual Studio Code, and Anthropic’s Claude. Using MCP as the two-way communication protocol, the MongoDB MCP Server makes it easy to interact with your data using natural language and perform database operations with your favorite agentic AI tools, assistants, and platforms.
Originally introduced by Anthropic, the Model Context Protocol has been gaining traction as an open standard for connecting AI agents and diverse data systems. The growing popularity of MCP comes at a pivotal moment as LLMs and agentic AI are reshaping how we build and interact with applications. MCP unlocks new levels of integrated functionality, ensuring that the LLMs behind agentic workflows have access to the most recent and contextually relevant information. And it makes it easier than ever for developers to take advantage of the fast-growing and fast-changing ecosystem of AI technologies.
The MongoDB MCP Server: Connecting to the broader AI ecosystem
The MongoDB MCP Server enables developer tools with MCP clients to interact directly with a MongoDB database and to handle a range of administrative tasks, such as managing cluster resources, as well as data-related operations like querying and indexing.

Forget separate tools, custom integrations, and manual querying. With the MongoDB MCP Server, developers can leverage the intelligence of LLMs to perform crucial database tasks directly within their development environments, with access to the most recent and contextually relevant data.
The MongoDB MCP Server enables:
Effortless data exploration: Ask your AI to “show the schema of the ‘users’ collection” or “find the most active users in the collection.”
Streamlined database management: Use natural language to perform database administration tasks like “create a new database user with read-only access” or “list the current network access rules.”
Context-aware code generation: Describe the data you need, and let your AI generate the MongoDB queries and even the application code to interact with it.
AI-powered software development with Windsurf and MongoDB
To make it easier for developers everywhere to use the MongoDB MCP Server right away, we’ve made it available out of the box in Windsurf, an AI code editor used by over a million developers and counting. Developers building with MongoDB can leverage Windsurf’s agentic AI capabilities to streamline their workflows and accelerate application development.
“MongoDB is aligned with Windsurf’s mission of empowering everyone to continuously dream bigger,” said Rohan Phadte, Product Engineer at Windsurf. “Through our integration with the MongoDB MCP Server, we’re helping innovators to create, transform, and disrupt industries with software in this new age of development. Developers can get started today by accessing the MongoDB MCP Server through our official server templates, and take advantage of the combined power of Windsurf and MongoDB for building their next project.”

The MongoDB MCP Server in action
Check out the videos below to see how to use the MongoDB MCP Server with popular tools like Claude, Visual Studio Code, and Windsurf.
Using the MongoDB MCP Server for data exploration
With an AI agent capable of directly accessing and exploring your database guided by natural language prompts, you can minimize context switching and stay in the flow of your work.
Using the MongoDB MCP Server for database management
The MongoDB MCP Server enables AI agents to interact directly with MongoDB Atlas or self-managed MongoDB databases, making it easier to automate manual tasks around cluster and user management.
Using the MongoDB MCP Server for code generation
Using LLMs and code agents has become a core part of developers’ workflows. Providing context, such as schemas and data structures, enables more accurate code generation, reducing hallucinations and enhancing agent capabilities.
The future of software development is agentic
The MongoDB MCP Server is a step forward in MongoDB’s mission to empower developers with advanced technologies to effortlessly bring bold ideas to life. By providing an official MCP server release, we’re meeting developers in the workflows and tools they rely on to build the future on MongoDB.
As MCP adoption continues to gain momentum, we’ll continue to actively listen to developer feedback and to prioritize enhancements to our MCP implementation. If you have input on the MongoDB MCP Server, please create an issue on GitHub. And to stay abreast of the latest news and releases from MongoDB, make sure you check out the MongoDB blog.
Check out the MongoDB MCP Server on GitHub and give it a try—see how it can accelerate your development workflow!
Source: Read More