Official MongoDB integration — query documents, manage clusters, and orchestrate database workflows through AI
The official MongoDB MCP server gives AI agents access to MongoDB Atlas and local clusters. It can query document collections, manage indexes, and explore schema patterns. Features: - Query documents with filters and aggregations - Inspect collections, indexes, and schema suggestions - Create and update documents and collections - Manage clusters, users, and roles - Monitor performance and slow queries - Support Atlas search and change streams MongoDB MCP is ideal for developers who want AI to work with NoSQL data fluently.
from agents import Agent
from agents.mcp import MCPServerStdio
mcp_server = MCPServerStdio(
command="npx",
args=["-y", "@mongodb/mcp"],
env={
"MONGODB_URI": "mongodb+srv://user:pass@cluster.mongodb.net/mydb",
},
)
agent = Agent(
name="My Agent",
model="gpt-4o",
mcp_servers=[mcp_server],
)If you maintain MongoDB MCP, add this badge to your README to show it's verified on CuratedMCP:
[](https://curatedmcp.com/marketplace/mongodb-mcp)