MCP server

MongoDB

MCP

Documents the agent can query without a second console.

MongoDB’s official MCP. Find, aggregate, and — if you allow it — update.

latest·Apache-2.0·Updated this quarter·github.com/mongodb-js/mongodb-mcp-server·Transport: stdio

Claude CodeDesktop
Scanned

claude_desktop_config.json

{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb://…"
      }
    }
  }
}

By MongoDB

Spec

What the server actually exposes.

  • find

    read

    Query a collection.

  • aggregate

    read

    Run a pipeline.

  • insert-many

    write

    Write documents after you confirm.

Guardrails

  • Connection string in env
  • Prefer a read user
  • Writes are named tools

mongodb-mcp.mcp/tools

Tools

  • find

    Query a collection.

    read
  • aggregate

    Run a pipeline.

    read
  • insert-many

    Write documents after you confirm.

    write

Last call

{ "ok": true,
  "tool": "find",
  "rows": 12 }

Other servers worth installing

Discussion

No notes yet. Be the first hunter to report back.