Skip to content
Conduit

mcp server

MongoDB MCP Server

MongoDB's MCP server for querying and indexing collections, with optional MongoDB Atlas admin tools.

mongodb-js/mongodb-mcp-serverofficiallistedunreviewednot running here yet

Set up

Runs on your computer. Pick your agent and operating system.

Before you start

  • Node.js 20 or newer
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}

same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12

Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs

Tools provided

As listed by the project. Your agent asks before calling them, depending on its settings.

  • findQuery documents
  • aggregateRun an aggregation pipeline
  • insert-manyInsert documents
  • update-manyUpdate documents
  • collection-indexesList indexes
  • atlas-create-clusterCreate an Atlas cluster (Atlas tools)

README

synced Oct 13, 2026

MongoDB MCP Server

MongoDB's MCP server for querying and indexing collections, with optional MongoDB Atlas admin tools.

Install

npx -y mongodb-mcp-server

Configuration

VariableRequiredDescription
MDB_MCP_CONNECTION_STRINGNoMongoDB connection string
MDB_MCP_API_CLIENT_IDNoAtlas API service account client ID (for Atlas tools)
MDB_MCP_API_CLIENT_SECRETNoAtlas API service account client secret
MDB_MCP_READ_ONLYNoRestrict the server to read, connect and metadata operations
MDB_MCP_TRANSPORTNostdio (default) or http

Tools

  • find — Query documents
  • aggregate — Run an aggregation pipeline
  • insert-many — Insert documents
  • update-many — Update documents
  • collection-indexes — List indexes
  • atlas-create-cluster — Create an Atlas cluster (Atlas tools)

About this listing

Details were gathered from the project's public pages on 2026-10-13 and have not been reviewed by a person yet. Read the project's own documentation before giving it access to anything sensitive.

Sources:

↑↓ navigate openesc close