agentduck
SkillsMCP serversArtifactsCategoriesGuides
SubmitSign in
SkillsMCP serversArtifactsCategoriesGuidesSearchSubmit a listing
agentduck

A directory of agent skills, MCP servers and Claude artifacts. Listings are made by their publishers.

Browse

  • Skills
  • MCP servers
  • Artifacts
  • Guides
  • Newest

Categories

  • Coding
  • Documents
  • Data
  • Design
  • Research

Agents

  • Claude Code
  • Claude app
  • Codex
  • Gemini CLI
  • OpenClaw

Publish

  • Submit a listing
  • How we check
  • Your shelf
  • Privacy
Directory/MCP servers/MongoDB

MongoDB

Query and manage MongoDB and Atlas from your agent.

MongoDB 1.2KUpdated 9 days agoApache-2.0No reviews yet
MCP serverDataOfficial
InstallView source

How to install MongoDB

Pick your agent.

How to install MongoDB in Claude Code

  1. 1

    Run in your terminal:

    terminal
    claude mcp add mongodb -e MDB_MCP_CONNECTION_STRING=<your value> -- npx -y mongodb-mcp-server
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

How to install MongoDB in Claude app

  1. 1

    Open Settings, then Developer, then Edit Config, and add:

    claude_desktop_config.json
    {
      "mcpServers": {
        "mongodb": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server"
          ],
          "env": {
            "MDB_MCP_CONNECTION_STRING": "<your value>"
          }
        }
      }
    }
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

How to install MongoDB in Codex

  1. 1

    Add to your Codex config:

    ~/.codex/config.toml
    [mcp_servers.mongodb]
    command = "npx"
    args = ["-y", "mongodb-mcp-server"]
    env = { MDB_MCP_CONNECTION_STRING = "<your value>" }
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

How to install MongoDB in Gemini CLI

  1. 1

    Add to your settings:

    ~/.gemini/settings.json
    {
      "mcpServers": {
        "mongodb": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server"
          ],
          "env": {
            "MDB_MCP_CONNECTION_STRING": "<your value>"
          }
        }
      }
    }
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

How to install MongoDB in Cursor

  1. 1

    Add to your project:

    .cursor/mcp.json
    {
      "mcpServers": {
        "mongodb": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server"
          ],
          "env": {
            "MDB_MCP_CONNECTION_STRING": "<your value>"
          }
        }
      }
    }
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

How to install MongoDB in VS Code

  1. 1

    Add to your project:

    .vscode/mcp.json
    {
      "servers": {
        "mongodb": {
          "command": "npx",
          "args": [
            "-y",
            "mongodb-mcp-server"
          ],
          "env": {
            "MDB_MCP_CONNECTION_STRING": "<your value>"
          }
        }
      }
    }
  2. 2

    Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.

What MongoDB can do

From reading the source. Check it yourself before you trust it.

  • Ships scripts that run on your machineShow whereHide

Reviews

  • .github/scripts/verify-npm-version.mjs
  • eslint-rules/enforce-zod-v4.js
  • eslint-rules/enforce-zod-v4.test.js
  • eslint.config.js
  • knip.ts
  • packages/accuracy-tests/runAccuracyTests.sh
  • Runs shell commandsShow whereHide
    • knip.ts:68 "vite", // Invoked via execSync in generateUI.ts, not imported
  • Talks to the internetShow whereHide
    • .github/scripts/verify-npm-version.mjs:19 return fetch(url, { headers: { accept: "application/json" } });
  • Reads environment variablesShow whereHide
    • packages/accuracy-tests/src/aggregate.autoEmbeddings.test.ts:71 mongotPassword: process.env.MDB_MONGOT_PASSWORD as string,
    • packages/accuracy-tests/src/aggregate.autoEmbeddings.test.ts:72 voyageIndexingKey: process.env.MDB_VOYAGE_API_KEY as string,
    • packages/accuracy-tests/src/aggregate.autoEmbeddings.test.ts:73 voyageQueryKey: process.env.MDB_VOYAGE_API_KEY as string,
    • packages/accuracy-tests/src/createIndex.autoEmbeddings.test.ts:78 mongotPassword: process.env.MDB_MONGOT_PASSWORD as string,
    • packages/accuracy-tests/src/createIndex.autoEmbeddings.test.ts:79 voyageIndexingKey: process.env.MDB_VOYAGE_API_KEY as string,
    • packages/accuracy-tests/src/createIndex.autoEmbeddings.test.ts:80 voyageQueryKey: process.env.MDB_VOYAGE_API_KEY as string,
  • Writes, moves or deletes filesShow whereHide
    • packages/accuracy-tests/src/generateTestSummary.ts:333 await writeFile(HTML_TEST_SUMMARY_FILE, htmlReport, "utf8");
    • packages/accuracy-tests/src/generateTestSummary.ts:341 await writeFile(MARKDOWN_TEST_BRIEF_FILE, markdownBrief, "utf8");
    • packages/accuracy-tests/src/sdk/accuracyResultStorage/diskStorage.ts:38 await fs.writeFile(
    • packages/accuracy-tests/src/sdk/accuracyResultStorage/diskStorage.ts:58 await fs.unlink(latestResultFilePath);
    • packages/accuracy-tests/src/sdk/accuracyResultStorage/diskStorage.ts:128 await fs.writeFile(resultFilePath, JSON.stringify(accuracyResult, null, 2));
    • packages/accuracy-tests/src/sdk/accuracyResultStorage/diskStorage.ts:156 await fs.writeFile(filePath, initialData, { flag: "wx" });
  • No eval or encoded code
  • No hide-from-user wording
  • Read 60 of 823 files 8 days ago. This is a plain read of the source, not a promise that it is safe. How we check

    About MongoDB

    Run queries, look at collections and indexes, and manage Atlas clusters.

    Good for

    • query my database
    • check my MongoDB indexes

    Works with

    As listed by the publisher.

    Claude CodeClaude appCodexGemini CLICursorVS Code
    Type
    MCP server
    Runs
    On your machine
    License
    Apache-2.0
    Listed
    8 days ago
    Tags
    mongodb, database

    In our guides

    • The best MCP servers for Claude Code and Cursor

    No reviews yet. Be the first to say how it went.

    Used it?

    Sign in to rate it and help the next person.

    Sign in to review

    More in Data

    View all →

    Spreadsheets

    Anthropic

    Skill

    Build and edit Excel files with formulas, formatting and charts.

    200.7K

    Supabase

    Supabase

    MCP server

    Manage Supabase projects, tables and queries from your agent.

    3K