Mongodb MCP Server

A mongodb atlas api client for nodejs.

Local serverstdio

What is the Mongodb MCP server?

Mongodb MCP server exists for a simple reason — assistants are far more useful when they can act on Mongodb directly instead of describing what you should do. A mongodb atlas api client for nodejs.

What you get

This package is also available as a Model Context Protocol (MCP) server that provides AI assistants with direct access to MongoDB Atlas APIs. The MCP server enables AI agents to manage Atlas resources like clusters, users, and databases through natural language interactions.

What the assistant can call

Once Mongodb is connected, these are the calls the assistant has available:

  • User — The User tool exposed by this server
  • CloudBackup — The CloudBackup tool exposed by this server
  • Cluster — The Cluster tool exposed by this server
  • CustomDbRole — The CustomDbRole tool exposed by this server
  • ProjectWhitelist — The ProjectWhitelist tool exposed by this server

Setting it up

mongodb-atlas-api-client on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Choosing this one

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Mongodb's toolset — User, CloudBackup, Cluster and 2 more — is a fair guide to whether it matches your workflow. It is maintained by montumodi; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mongodb mcp server does with a few real requests.

Available tools

ToolWhat it does
UserThe User tool exposed by this server.
CloudBackupThe CloudBackup tool exposed by this server.
ClusterThe Cluster tool exposed by this server.
CustomDbRoleThe CustomDbRole tool exposed by this server.
ProjectWhitelistThe ProjectWhitelist tool exposed by this server.

How to install the Mongodb MCP server

{
  "mcpServers": {
    "mongodb-js-mongodb": {
      "command": "npx",
      "args": ["-y", "mongodb-atlas-api-client"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Mongodb to User.
  • Use Mongodb to CloudBackup.
  • Use Mongodb to Cluster.

Frequently asked questions

It connects Mongodb to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (User, CloudBackup, Cluster, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mongodb directly.