The MongoDB MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your MongoDB account. It provides structured and secure access to your MongoDB Atlas resources, databases, collections, documents, indexes, and performance data, so your agent can explore data, run queries, manage collections, optimize indexes, and administer Atlas resources on your behalf.
- Database exploration and analysis: Have your agent list databases and collections, inspect schemas and storage use, count documents, and review database statistics.
- Document queries and data changes: Direct your agent to find or aggregate documents, insert multiple records, or delete records that match a filter.
- Collection and index management: Let the agent create, rename, or drop collections, inspect existing indexes, and create or remove indexes.
- Query and performance optimization: Instruct your agent to explain query execution and retrieve Atlas performance recommendations for indexes, schemas, and recent operations.
- Atlas resource administration: Have your agent create and inspect projects, clusters, database users, and network access lists, list alerts, load sample data, or pause, resume, and upgrade supported clusters.