Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

mcp-mongodb-atlas

MCP.Pizza Chef: mongodb-developer

The mcp-mongodb-atlas is a community-maintained MCP server that enables management of MongoDB Atlas projects. It provides structured tools to create and manage Atlas clusters, configure network access, and create database users through the Model Context Protocol interface, facilitating seamless integration with LLMs and AI workflows.

Use This MCP server To

Create new MongoDB Atlas clusters within existing projects Configure network access rules for MongoDB Atlas projects Create and manage MongoDB Atlas database users Integrate MongoDB Atlas management into AI-driven workflows Automate cluster provisioning and user setup via MCP Enable real-time control of Atlas resources from LLM-powered apps

README

📢 COMMUNITY SERVER NOTICE
This is a community-maintained MCP Server.
👉 For the official MongoDB MCP Server, visit mongodb-js/mongodb-mcp-server

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

MongoDB Atlas MCP Server Demo

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-atlas

Usage

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-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": []
    }
  }
}
  1. Environment Variables (Optional):
    • ATLAS_PUBLIC_KEY: Your MongoDB Atlas public key
    • ATLAS_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:

  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 install

Build the project:

npm run build

For development with auto-rebuild:

npm run watch

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

License

MIT

mcp-mongodb-atlas FAQ

How do I authenticate the mcp-mongodb-atlas server with MongoDB Atlas?
Authentication typically uses MongoDB Atlas API keys or service accounts configured in the MCP server settings.
Can I manage multiple MongoDB Atlas projects simultaneously?
Yes, the server supports managing multiple projects by specifying project IDs in requests.
Is this MCP server officially maintained by MongoDB?
No, this is a community-maintained server; the official server is available at mongodb-js/mongodb-mcp-server.
What operations can I perform with this MCP server?
You can create clusters, configure network access, and manage database users in MongoDB Atlas.
Does this server support role-based access control for users?
Yes, you can create users with specific roles such as atlasAdmin through the MCP interface.
How can I watch a demo of this MCP server?
A demonstration video is available on YouTube showcasing its features and usage.
Can this MCP server be integrated with different LLM providers?
Yes, it is designed to work with any MCP-compatible LLM provider like OpenAI, Claude, and Gemini.
What network configurations can I manage with this server?
You can set up IP whitelisting and other network access rules for Atlas projects.