Skip to main content
Glama
mongodb-developer

MongoDB Atlas MCP Server

Official

MongoDB Atlas MCP Server

Ein MCP-Server (Model Context Protocol) zur Verwaltung von MongoDB Atlas-Projekten. Dieses Paket bietet Tools zum Erstellen und Verwalten von MongoDB Atlas-Clustern, Benutzern und Netzwerkzugriff über die MCP-Schnittstelle.

Demo-Video

MongoDB Atlas MCP Server-Demo

Sehen Sie sich das Demonstrationsvideo an, um den MongoDB Atlas MCP Server in Aktion zu sehen.

Related MCP server: MongoDB MCP Server

Merkmale

MCP-Tools

  • create_atlas_cluster – Erstellen Sie einen neuen MongoDB Atlas-Cluster in einem vorhandenen Projekt

  • setup_atlas_network_access - Netzwerkzugriff für ein Atlas-Projekt konfigurieren

  • create_atlas_user – Erstellen Sie einen neuen Datenbankbenutzer mit der Rolle „atlasAdmin“.

  • get_atlas_connection_strings - Verbindungszeichenfolgen für einen Cluster abrufen

  • list_atlas_projects – Listet alle Atlas-Projekte auf, auf die mit dem bereitgestellten API-Schlüssel zugegriffen werden kann

  • list_atlas_clusters – Listet alle Cluster in einem bestimmten Atlas-Projekt auf

Installation

npm install mcp-mongodb-atlas

Verwendung

Als Befehlszeilentool

Sie können den Atlas Project Manager direkt von der Befehlszeile aus ausführen:

# 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"

Mit Cline (VSCode-Erweiterung)

Um es mit Cline in VSCode zu verwenden, fügen Sie die Serverkonfiguration zu Ihrer MCP-Einstellungsdatei hinzu:

{
  "mcpServers": {
    "atlas": {
      "command": "npx",
      "args": ["mcp-mongodb-atlas"],
      "env": {
        "ATLAS_PUBLIC_KEY": "your-public-key",
        "ATLAS_PRIVATE_KEY": "your-private-key"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Die MCP-Einstellungsdatei befindet sich unter:

  • 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

Mit Cursor

Zur Verwendung mit Cursor gehen Sie in den Einstellungen zu „Cursor-Einstellungen“ > „MCP“ und fügen Sie einen neuen Server mit der folgenden Konfiguration hinzu:

  1. Name : atlas (oder ein beliebiger Name Ihrer Wahl)

  2. Befehl : npx mcp-mongodb-atlas

  3. Argumente : Geben Sie Ihre API-Schlüssel als Argumente an

## Suggested Command
npx mcp-mongodb-atlas <public_key> <private_key>

Neuere Versionen können die Datei ~/.cursor/mcp.json mit Folgendem festlegen:

{
  "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. Umgebungsvariablen (optional):

    • ATLAS_PUBLIC_KEY : Ihr öffentlicher MongoDB Atlas-Schlüssel

    • ATLAS_PRIVATE_KEY : Ihr privater MongoDB Atlas-Schlüssel

Mit Claude Desktop

Zur Verwendung mit Claude Desktop fügen Sie die Serverkonfiguration hinzu:

Unter macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Unter 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-Schlüssel

Sie benötigen MongoDB Atlas API-Schlüssel, um dieses Tool zu verwenden. So erstellen Sie API-Schlüssel:

  1. Melden Sie sich bei Ihrem MongoDB Atlas-Konto an

  2. Gehen Sie zu Access Manager > API-Schlüssel

  3. Erstellen Sie einen neuen API-Schlüssel mit den entsprechenden Berechtigungen

  4. Speichern Sie die öffentlichen und privaten Schlüssel

Entwicklung

Klonen Sie das Repository und installieren Sie Abhängigkeiten:

git clone https://github.com/mongodb-developer/mcp-mongodb-atlas.git
cd mcp-mongodb-atlas
npm install

Erstellen Sie das Projekt:

npm run build

Für die Entwicklung mit automatischem Rebuild:

npm run watch

Debuggen

Da MCP-Server über stdio kommunizieren, kann das Debuggen eine Herausforderung darstellen. Wir empfehlen die Verwendung des MCP Inspector:

npm run inspector

Der Inspector stellt eine URL für den Zugriff auf Debugging-Tools in Ihrem Browser bereit.

Lizenz

MIT

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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.
    27
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    A Model Context Protocol server that enables AI assistants to interact with MongoDB Atlas resources through natural language, supporting database operations and Atlas management functions.
    28
    74,685
    1,108
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    A 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.
    22
    74,685
    Apache 2.0
  • A
    license
    C
    quality
    D
    maintenance
    A Model Context Protocol server that provides access to the MongoDB Atlas API, enabling management of clusters, users, projects, backups, and more through MCP tools.
    76
    15
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • GibsonAI MCP server: manage your databases with natural language

  • An MCP server that integrates with Discord to provide AI-powered features.

  • Cloud-hosted MCP server for durable AI memory

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-developer/mcp-mongodb-atlas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server