CuratedMCP
⌨️
Cursor
Free

How to Install MongoDB MCP in Cursor

MongoDB's official MCP server for databases and Atlas.

What MongoDB MCP does

MongoDB's official MCP server. Runs locally with npx and a connection string (or Atlas API credentials), and lets an agent query and manage databases and collections and, with Atlas credentials, clusters and users. A read-only mode is available.

mongodb
database
atlas
nosql
documents

Installation steps

  1. 1Copy the config below
  2. 2Open or create .cursor/mcp.json
  3. 3Paste inside "mcpServers": {}
  4. 4Restart Cursor or reload the window

Configuration

File location: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

.cursor/mcp.jsonjson
{
  "mongodbMcp": {
    "command": "npx",
    "args": [
      "-y",
      "mongodb-mcp-server"
    ],
    "env": {
      "MDB_MCP_CONNECTION_STRING": "mongodb+srv://<user>:<password>@<cluster>/"
    }
  }
}
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain MongoDB MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://www.curatedmcp.com/api/badge/mongodb-mcp)](https://www.curatedmcp.com/marketplace/mongodb-mcp)

Related servers