BACK TO MCP SERVERS
dataclaude-codecursorclinewindsurf

MongoDB MCP Server

Connects AI coding agents to MongoDB databases and Atlas for natural language querying, schema inspection, and document operations.

MongoDB MCP Server

Connect MongoDB local instances and Atlas cloud databases directly to AI assistants for natural language queries and schema management.

Capabilities

  • Document Operations: Find, insert, update, and delete documents across collection databases.
  • Schema & Index Inspection: Inspect collection structures, data types, and index performance metrics.
  • Atlas Cloud Tools: Interact with Atlas APIs, manage service accounts, and track deployment costs.
  • Read-Only Protection: Pass --readOnly flag to prevent unauthorized write and delete operations.

Configuration

Configure your client with your MongoDB connection string:

{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
      }
    }
  }
}
GitHub SourceGitHub Stars
Last verified 2026-07-26