mongodb-mcp-server

mongodb-mcp-server is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from mongodb-js/mongodb-mcp-server. Its token cost is not measured, scanned A, original, Apache-2.0.

A local connection service for MongoDB, a database that stores data in flexible document-shaped records, using the Model Context Protocol (MCP) to make database tools available to an AI assistant. It runs from an npm package and requires many environment settings.

In plain words
What is it for?
Use it when setting up a local AI-assisted workflow around MongoDB. The input does not specify which database operations it supports.
Why use it?
It provides a configured way for an assistant to work with MongoDB from a local setup. Running it requires supplying the necessary connection, access, and server configuration values.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Written for no agent in particular: it speaks MCP, so any client can run it.

Good fit Use it when setting up a local AI-assisted workflow around MongoDB. The input does not specify which database operations it supports.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server
About the project

MongoDB MCP Server connects AI agents to MongoDB databases and MongoDB Atlas clusters through the Model Context Protocol. It lets agents interact with self-managed MongoDB deployments locally or use the hosted Atlas MCP server through the official plugins. The catalogue entries provide agent integrations and guidance for using the server.

mongodb-js/mongodb-mcp-server · 1,124 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mongodb-js/mongodb-mcp-server

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mongodb-mcp-server

README.md
[![agentmods](https://agentmods.dev/badge/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server/github.svg)](https://agentmods.dev/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server)
Your own site
<a href="https://agentmods.dev/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server"><img src="https://agentmods.dev/badge/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mongodb-mcp-server

Your own site · 80×15
<a href="https://agentmods.dev/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server"><img src="https://agentmods.dev/badge/mcp/mongodb-js/mongodb-mcp-server/mongodb-mcp-server-mongodb-mcp-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits How audits are shown
Origin original No closer match found in the catalogue.
Security

Grade A, and why

mongodb-mcp-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/mongodb-mcp-server/server.json · 53 lines

What it actually says

{
  "mongodb-mcp-server": {
    "command": "npx",
    "args": [
      "-y",
      "mongodb-mcp-server"
    ],
    "env": {
      "MDB_MCP_ALLOW_REQUEST_OVERRIDES": "",
      "MDB_MCP_API_CLIENT_ID": "",
      "MDB_MCP_API_CLIENT_SECRET": "",
      "MDB_MCP_ASSISTANT_BASE_URL": "",
      "MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS": "",
      "MDB_MCP_CONFIRMATION_REQUIRED_TOOLS": "",
      "MDB_MCP_CONNECTION_SCOPE": "",
      "MDB_MCP_CONNECTION_STRING": "",
      "MDB_MCP_DISABLE_SERVER_SIDE_JS": "",
      "MDB_MCP_DISABLED_TOOLS": "",
      "MDB_MCP_DRY_RUN": "",
      "MDB_MCP_ELICITATION_TIMEOUT_MS": "",
      "MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS": "",
      "MDB_MCP_EXPORT_TIMEOUT_MS": "",
      "MDB_MCP_EXPORTS_PATH": "",
      "MDB_MCP_EXTERNALLY_MANAGED_SESSIONS": "",
      "MDB_MCP_HEALTH_CHECK_HOST": "",
      "MDB_MCP_HEALTH_CHECK_PORT": "",
      "MDB_MCP_HTTP_BODY_LIMIT": "",
      "MDB_MCP_HTTP_HEADERS": "",
      "MDB_MCP_HTTP_HOST": "",
      "MDB_MCP_HTTP_PORT": "",
      "MDB_MCP_HTTP_RESPONSE_TYPE": "",
      "MDB_MCP_IDLE_TIMEOUT_MS": "",
      "MDB_MCP_INDEX_CHECK": "",
      "MDB_MCP_LOG_PATH": "",
      "MDB_MCP_LOGGERS": "",
      "MDB_MCP_MAX_ACTIVE_CONNECTIONS": "",
      "MDB_MCP_MAX_BYTES_PER_QUERY": "",
      "MDB_MCP_MAX_DOCUMENTS_PER_QUERY": "",
      "MDB_MCP_MAX_SESSIONS": "",
      "MDB_MCP_MAX_TIME_M_S": "",
      "MDB_MCP_MCP_CLIENT_LOG_LEVEL": "",
      "MDB_MCP_MONITORING_SERVER_FEATURES": "",
      "MDB_MCP_MONITORING_SERVER_HOST": "",
      "MDB_MCP_MONITORING_SERVER_PORT": "",
      "MDB_MCP_NOTIFICATION_TIMEOUT_MS": "",
      "MDB_MCP_PREVIEW_FEATURES": "",
      "MDB_MCP_READ_ONLY": "",
      "MDB_MCP_TELEMETRY": "",
      "MDB_MCP_TRANSPORT": "",
      "MDB_MCP_VOYAGE_API_KEY": ""
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 53 lines scan A a35e02faad42

Subscribe to this mod's changes

mongodb-mcp-server is an MCP server published in the GitHub repository mongodb-js/mongodb-mcp-server (1,124 stars, last pushed yesterday), licensed Apache-2.0. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.