AI Index

MongoDB

Official MongoDB Data & databases

MongoDB Model Context Protocol Server

Official

The company’s official documentation names this server (MongoDB MCP Server).

Registry name
io.github.mongodb-js/mongodb-mcp-server
Version
2.1.0
Transports
stdio
Packages
npm mongodb-mcp-serveroci docker.io/mongodb/mongodb-mcp-server:2.1.0
Repository
github.com/mongodb-js/mongodb-mcp-server
First published
Aug 10, 2026
Updated
Aug 10, 2026

GitHub stars · Downloads

as of Oct 4, 2026
GitHub stars
1,140
npm downloads
477,237 last month

Add it to a client

Commands and config follow each client’s own MCP docs. Some servers also need an API key or environment variables; see the server’s documentation.

claude mcp add mongodb -- npx -y mongodb-mcp-server
Format from Claude Code’s docs
Codex
codex mcp add mongodb -- npx -y mongodb-mcp-server
Format from Codex’s docs
Cursor mcp.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}
Format from Cursor’s docs
Gemini CLI settings.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}
Format from Gemini CLI’s docs
VS Code .vscode/mcp.json
{
  "servers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}
Format from VS Code’s docs

Client compatibility

By transport: whether the client’s docs list a transport this server offers. It doesn’t cover sign-in or other requirements.

Sources

This data comes from the Official MCP Registry.