MCP Mongodb Atlas MCP Server

MCP Tool to operate and integrate MongoDB Atlas projects into an AI developed project

Local serverstdioGo

What is the MCP Mongodb Atlas MCP server?

Mcp mongodb atlas mcp server lets Claude, Cursor and other MCP clients work with MCP Mongodb Atlas directly. MCP Tool to operate and integrate MongoDB Atlas projects into an AI developed project.

What MCP Mongodb Atlas does

Tools it exposes

Once connected, the assistant can call these 7 tools directly:

  • create_atlas_cluster — Create a new MongoDB Atlas cluster in an existing project
  • setup_atlas_network_access — Configure network access for an Atlas project
  • create_atlas_user — Create a new database user with atlasAdmin role
  • get_atlas_connection_strings — Retrieve connection strings for a cluster
  • list_atlas_projects — List all Atlas projects accessible with the provided API key
  • list_atlas_clusters — List all clusters in a specific Atlas project
  • Debugging — Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

Installing the mcp mongodb atlas mcp server

The server is distributed via npm as mcp-mongodb-atlas, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 2 environment variables: ATLAS_PUBLIC_KEY, ATLAS_PRIVATE_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. MCP Mongodb Atlas sits in that group, and the shape of its toolset — create_atlas_cluster, setup_atlas_network_access, create_atlas_user among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • With 7 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use MCP Mongodb Atlas.
  • Maintained by mongodb-developer, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp mongodb atlas mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
create_atlas_clusterCreate a new MongoDB Atlas cluster in an existing project
setup_atlas_network_accessConfigure network access for an Atlas project
create_atlas_userCreate a new database user with atlasAdmin role
get_atlas_connection_stringsRetrieve connection strings for a cluster
list_atlas_projectsList all Atlas projects accessible with the provided API key
list_atlas_clustersList all clusters in a specific Atlas project
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

How to install the MCP Mongodb Atlas MCP server

{
  "mcpServers": {
    "mongodb-atlas": {
      "command": "npx",
      "args": ["-y", "mcp-mongodb-atlas"],
      "env": {
        "ATLAS_PUBLIC_KEY": "your-value",
        "ATLAS_PRIVATE_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
ATLAS_PUBLIC_KEYCredential the server authenticates with.Yes
ATLAS_PRIVATE_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP Mongodb Atlas to create atlas cluster.
  • Use MCP Mongodb Atlas to setup atlas network access.
  • Use MCP Mongodb Atlas to create atlas user.

Frequently asked questions

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