TL;DR

MongoDB is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent mongoDB Atlas database operations. Install in 1 minute with mcpizy install mongodb.

๐Ÿƒ

MongoDB

Install verified 7 tools

Databases

Last updated September 4, 2026 ยท By MCPizy team

MongoDB Atlas database operations

Official homepage
A

Repo audit: 94/100 โ€” actively maintained, documented and licensed

Scored on licence, adoption, maintenance and documentation of mongodb-js/mongodb-mcp-server. We show the grade whether it flatters the server or not.

last commit today ยท 1,106 stars ยท Apache-2.0 licence ยท 33 open issues

Read the full audit on CheckMCP

Install MongoDB

Via MCPizy CLI (recommended):
mcpizy install mongodb
Or run directly:
npx -y mongodb-mcp-server

Tools exposed

7 tools available
find

Run a find query on a collection

Inputs

  • databasestringrequired
  • collectionstringrequired
  • filterobjectoptional
aggregate

Run an aggregation pipeline on a collection

Inputs

  • databasestringrequired
  • collectionstringrequired
  • pipelineobject[]required
insert_many

Insert multiple documents into a collection

Inputs

  • databasestringrequired
  • collectionstringrequired
  • documentsobject[]required
update_many

Update documents that match a filter

Inputs

  • filterobjectrequired
  • updateobjectrequired
delete_many

Delete documents that match a filter

Inputs

  • filterobjectrequired
list_databases

List all databases on the cluster

list_collections

List collections in a database

Inputs

  • databasestringrequired

Configuration

Works identically across clients. Only the config file path differs.

Claude Code~/.claude.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "${MDB_MCP_CONNECTION_STRING}"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
      }
    }
  }
}
Cursor.cursor/mcp.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "${MDB_MCP_CONNECTION_STRING}"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
      }
    }
  }
}
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "${MDB_MCP_CONNECTION_STRING}"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
      }
    }
  }
}

Authentication setup

  1. 1

    Create a database user with readWrite access

    Get it MDB_MCP_CONNECTION_STRING
  2. 2

    Add your IP (or 0.0.0.0/0 for dev) to the Network Access allowlist

What you can do with MongoDB MCP

Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.

โ€œShow me the 10 most recent documents in the `users` collectionโ€

Uses: find

โ€œHow many orders were placed this month, grouped by status?โ€

Uses: aggregate

โ€œDelete all test documents where `env = 'staging'`โ€

Uses: delete_many

โ€œList every collection in the `production` databaseโ€

Uses: list_collections

Works with

Claude Code
Claude Desktop
Cursor
Windsurf
VS Code + Copilot
Any MCP Client

Alternatives to MongoDB

If MongoDB doesn't fit your stack, these Databases MCP servers solve similar problems.

Frequently asked questions

What is the MongoDB MCP server?

MongoDB is listed as an Databases Model Context Protocol server whose documented purpose is to let an MCP-compatible agent mongoDB Atlas database operations. Client support, permissions and authentication remain specific to the upstream project.

How do I install MongoDB MCP with Claude Code?

The fastest way is the MCPizy CLI: run `mcpizy install mongodb` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y mongodb-mcp-server` and restarting Claude Code.

Does MCPizy charge to view or install MongoDB MCP?

No. Reading this profile and copying its install guidance is free. Upstream software, API, account or usage costs are separate, and licence coverage should be checked from the linked source when available.

Does MongoDB MCP work with Cursor and Windsurf?

The MCP standard is supported by those clients, but a specific server can still have client-specific setup or transport limits. Use the configuration shown on this page when present and verify the upstream instructions before installation.

What can I do with MongoDB MCP?

Its documented purpose is to let an MCP-compatible agent mongoDB Atlas database operations. The exact tools, permissions and write capabilities depend on the server version and configuration shown by the upstream project.

Compare before you commit

Put this server beside an alternative, or return to the full evidence directory.

Compare MCP serversBack to directory