MongoDB MCP Server

MongoDB MCP servers enable AI models to interact with MongoDB databases and MongoDB Atlas, providing capabilities for document operations, aggregation pipelines, and cloud database management.

{
  "mcpServers": {
    "MongoDB": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "mongodb+srv://username:[email protected]/myDatabase"
      ]
    }
  }
}

Overview

The MongoDB MCP Server enables AI models to interact with MongoDB databases and MongoDB Atlas cloud services. It provides a standardized interface for document operations, aggregation pipelines, and cloud database management through the Model Context Protocol (MCP).[^1]

Tools

Sources

https://github.com/mongodb-js/mongodb-mcp-server