MongoDB Atlas MCP Server
OfficialProvides tools for managing MongoDB Atlas projects, including creating and configuring clusters, managing database users, setting up network access, and retrieving connection strings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MongoDB Atlas MCP Server create a new cluster in my analytics project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MongoDB Atlas MCP Server
An MCP (Model Context Protocol) server for managing MongoDB Atlas projects. This package provides tools for creating and managing MongoDB Atlas clusters, users, and network access through the MCP interface.
Demo Video

Watch the demonstration video to see MongoDB Atlas MCP Server in action.
Related MCP server: MongoDB MCP Server
Features
MCP Tools
create_atlas_cluster- Create a new MongoDB Atlas cluster in an existing projectsetup_atlas_network_access- Configure network access for an Atlas projectcreate_atlas_user- Create a new database user with atlasAdmin roleget_atlas_connection_strings- Retrieve connection strings for a clusterlist_atlas_projects- List all Atlas projects accessible with the provided API keylist_atlas_clusters- List all clusters in a specific Atlas project
Installation
npm install mcp-mongodb-atlasUsage
As a Command Line Tool
You can run the Atlas Project Manager directly from the command line:
# Using environment variables
export ATLAS_PUBLIC_KEY="your-public-key"
export ATLAS_PRIVATE_KEY="your-private-key"
npx mcp-mongodb-atlas
# Or passing keys as arguments
npx mcp-mongodb-atlas "your-public-key" "your-private-key"With Cline (VSCode Extension)
To use with Cline in VSCode, add the server config to your MCP settings file:
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
},
"disabled": false,
"autoApprove": []
}
}
}The MCP settings file is located at:
macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonWindows:
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.jsonLinux:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
With Cursor
To use with Cursor, go to "Cursor settings" > "MCP" in the settings and add a new server with the following configuration:
Name:
atlas(or any name you prefer)Command:
npx mcp-mongodb-atlasArguments: provide your API keys as arguments
## Suggested Command
npx mcp-mongodb-atlas <public_key> <private_key>Newer versions can set the ~/.cursor/mcp.json file with:
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
},
"disabled": false,
"autoApprove": []
}
}
}Environment Variables (Optional):
ATLAS_PUBLIC_KEY: Your MongoDB Atlas public keyATLAS_PRIVATE_KEY: Your MongoDB Atlas private key
With Claude Desktop
To use with Claude Desktop, add the server config:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
}
}
}
}API Keys
You need MongoDB Atlas API keys to use this tool. To create API keys:
Log in to your MongoDB Atlas account
Go to Access Manager > API Keys
Create a new API key with the appropriate permissions
Save the public and private keys
Development
Clone the repository and install dependencies:
git clone https://github.com/mongodb-developer/mcp-mongodb-atlas.git
cd mcp-mongodb-atlas
npm installBuild the project:
npm run buildFor development with auto-rebuild:
npm run watchDebugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
License
MIT
Available Tools
6 toolscreate_atlas_clusterC
Creates a new Atlas cluster in an existing Atlas project.
Inputs: projectId (required), clusterName (required), region (required), cloudProvider (required), +1 more.
create_atlas_userB
Creates a new database user for an existing Atlas project. User will have atlasAdmin role.
Inputs: projectId (required), username (required), password (required), roles.
get_atlas_connection_stringsC
Retrieves connection strings for a cluster in an existing Atlas project.
Inputs: projectId (required), clusterName (required).
list_atlas_clustersC
Lists all clusters in an Atlas project.
Inputs: projectId (required).
list_atlas_projectsB
Lists all Atlas projects that the API key has access to.
Inputs: no named parameters.
setup_atlas_network_accessC
Sets up network access for an existing Atlas project. Accepts list of IP addresses or CIDR blocks.
Inputs: projectId (required), ipAddresses (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting specific Atlas resources: clusters, users, connection strings, projects, and network access. There is no overlap in functionality, making it easy for an agent to select the correct tool for any given task.
All tools follow a consistent verb_noun pattern with 'atlas' as a prefix (e.g., create_atlas_cluster, list_atlas_projects). The naming is uniform and predictable, using snake_case throughout without any deviations.
With 6 tools, the count is reasonable for managing MongoDB Atlas resources, covering key operations like creation, listing, and setup. It is slightly lean but sufficient for core tasks, though additional tools for updates or deletions could enhance coverage.
The tools provide good coverage for core Atlas operations, including creation and listing of clusters and projects, user management, and network setup. However, there are minor gaps, such as missing update or delete operations for clusters and users, which agents might need to work around.
Maintenance
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables large language models to interact directly with MongoDB databases, allowing them to query collections, inspect schemas, and manage data through natural language.MIT

MongoDB MCP Serverofficial
AlicenseBqualityAmaintenanceA Model Context Protocol server that enables AI assistants to interact with MongoDB Atlas resources through natural language, supporting database operations and Atlas management functions.281,163Apache 2.0- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables interaction with MongoDB databases and MongoDB Atlas, allowing users to perform database operations and manage Atlas resources through natural language.22Apache 2.0
- AlicenseCqualityDmaintenanceA Model Context Protocol server that provides access to the MongoDB Atlas API, enabling management of clusters, users, projects, backups, and more through MCP tools.7656 npm3MIT