Skip to content
Cursor

MongoDB Read-Only MCP for Cursor

io.github.fean-developer/mongodb-readonly-mcp

Read-only MongoDB queries with database, collection and field policies.

client:Cursor transport:stdio runtime:npm

Install MongoDB Read-Only MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mongodb-readonly-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fean-developer/mongodb-readonly-mcp"
      ],
      "env": {
        "MONGODB_MCP_PROFILE": "<MONGODB_MCP_PROFILE>",
        "MONGODB_URI": "<MONGODB_URI>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

MongoDB Read-Only MCP in other clients