MongoDB Atlas MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides tools for managing MongoDB Atlas projects, including creating and configuring clusters, managing database users, setting up network access, and retrieving connection strings.
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 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
Usage
As a Command Line Tool
You can run the Atlas Project Manager directly from the command line:
With Cline (VSCode Extension)
To use with Cline in VSCode, add the server config to your MCP settings file:
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:
- Name:
atlas
(or any name you prefer) - Command:
npx mcp-mongodb-atlas
- Arguments: provide your API keys as arguments
Newer versions can set the ~/.cursor/mcp.json
file with:
- 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
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:
Build the project:
For development with auto-rebuild:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
The Inspector will provide a URL to access debugging tools in your browser.
License
MIT
This server cannot be installed
An MCP server that enables users to create and manage MongoDB Atlas clusters, users, and network access through natural language commands.