MongoDB · Official

MongoDB MCP server

Query and manage MongoDB databases and Atlas clusters.

Verified publisher namespaceLocalDatabases
Registry name
io.github.mongodb-js/mongodb-mcp-server
Latest version
2.1.0 · updated 2026-08-10
Links
Vendor docsSource

Install

Commands are generated from the registry record. Remote servers usually ask you to sign in with OAuth on first use.

Step-by-step guides

Claude Code

claude mcp add mongodb -- npx -y mongodb-mcp-server

Codex

# ~/.codex/config.toml
[mcp_servers.mongodb]
command = "npx"
args = ["-y", "mongodb-mcp-server"]

Gemini CLI

gemini mcp add mongodb npx -y mongodb-mcp-server

Cursor

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

VS Code (GitHub Copilot)

code --add-mcp '{"name":"mongodb","command":"npx","args":["-y","mongodb-mcp-server"]}'

Packages

  • npm mongodb-mcp-server
  • oci docker.io/mongodb/mongodb-mcp-server:2.1.0

More databases

Reviewed Oct 5, 2026. Official means published under MongoDB's namespace in the MCP registry. It is not a security audit.