mcp-mongodb-atlas
MCP (Model Context Protocol) server for managing MongoDB Atlas projects — create and manage clusters, database users, and network access via MCP tools.
Documentation
📢 COMMUNITY SERVER NOTICE
This is a community-maintained MCP Server.
👉 For the official MongoDB MCP Server, visit
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.
Features
MCP Tools
- `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
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.json`
- Windows: `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
- Linux: `~/.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:
1. Name: `atlas` (or any name you prefer)
2. Command: `npx mcp-mongodb-atlas`
3. Arguments: provide your API keys as arguments
## Suggested Command
npx mcp-mongodb-atlasNewer 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": []
}
}
}4. Environment Variables (Optional):
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:
1. Log in to your MongoDB Atlas account
2. Go to Access Manager > API Keys
3. Create a new API key with the appropriate permissions
4. 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
Frequently asked questions
What is mcp-mongodb-atlas?
mcp-mongodb-atlas is MCP (Model Context Protocol) server for managing MongoDB Atlas projects — create and manage clusters, database users, and network access via MCP tools.
How do I install mcp-mongodb-atlas?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-mongodb-atlas open source?
Yes — it is hosted on GitHub at https://github.com/mongodb-developer/mcp-mongodb-atlas and has 14 stars.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
This is a 12306 ticket search server based on the Model Context Protocol (MCP).
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP