Skip to content

MongoDB Read-Only MCP for Grok

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

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

client:Grok transport:stdio runtime:npm

Install MongoDB Read-Only MCP in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

MongoDB Read-Only MCP in other clients