Skip to main content
Glama

MongoDB Atlas MCP Server

Official
MIT License
74
10
  • Apple
  • Linux

MongoDB Atlas MCP サーバー

MongoDB Atlasプロジェクトを管理するためのMCP(Model Context Protocol)サーバー。このパッケージは、MongoDB Atlasクラスター、ユーザー、およびMCPインターフェースを介してネットワークアクセスを作成および管理するためのツールを提供します。

デモビデオ

MongoDB Atlas MCP Server の動作を確認するには、デモ ビデオをご覧ください。

特徴

MCPツール

  • create_atlas_cluster - 既存のプロジェクトに新しい MongoDB Atlas クラスターを作成する
  • setup_atlas_network_access - Atlas プロジェクトのネットワーク アクセスを構成する
  • create_atlas_user - atlasAdmin ロールを持つ新しいデータベース ユーザーを作成します
  • get_atlas_connection_strings - クラスターの接続文字列を取得する
  • list_atlas_projects - 提供された API キーでアクセス可能なすべての Atlas プロジェクトを一覧表示します
  • list_atlas_clusters - 特定の Atlas プロジェクト内のすべてのクラスターを一覧表示します

インストール

npm install mcp-mongodb-atlas

使用法

コマンドラインツールとして

Atlas プロジェクト マネージャーをコマンド ラインから直接実行できます。

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

Cline(VSCode拡張機能)を使用

VSCode で Cline を使用するには、MCP 設定ファイルにサーバー構成を追加します。

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

MCP 設定ファイルは次の場所にあります。

  • 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

カーソル付き

カーソルで使用するには、設定で「カーソル設定」>「MCP」に移動し、次の構成で新しいサーバーを追加します。

  1. 名前: atlas (または任意の名前)
  2. コマンド: npx mcp-mongodb-atlas
  3. 引数: APIキーを引数として指定します
## Suggested Command npx mcp-mongodb-atlas <public_key> <private_key>

新しいバージョンでは、次のように~/.cursor/mcp.jsonファイルを設定できます。

{ "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. 環境変数(オプション):
    • ATLAS_PUBLIC_KEY : MongoDB Atlasの公開鍵
    • ATLAS_PRIVATE_KEY : MongoDB Atlasの秘密鍵

クロード・デスクトップ

Claude Desktop で使用するには、サーバー設定を追加します。

macOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json 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キー

このツールを使用するには、MongoDB Atlas APIキーが必要です。APIキーを作成するには、以下の手順を実行してください。

  1. MongoDB Atlasアカウントにログインする
  2. アクセスマネージャー > APIキーに移動します
  3. 適切な権限を持つ新しいAPIキーを作成する
  4. 公開鍵と秘密鍵を保存する

発達

リポジトリをクローンし、依存関係をインストールします。

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

プロジェクトをビルドします。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

ユーザーが自然言語コマンドを使用して MongoDB Atlas クラスター、ユーザー、およびネットワーク アクセスを作成および管理できるようにする MCP サーバー。

  1. デモビデオ
    1. 特徴
      1. MCPツール
    2. インストール
      1. 使用法
        1. コマンドラインツールとして
        2. Cline(VSCode拡張機能)を使用
        3. カーソル付き
        4. クロード・デスクトップ
      2. APIキー
        1. 発達
          1. デバッグ
        2. ライセンス

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. Query collections, inspect schemas, and manage data seamlessly through natural language.
            Last updated -
            340
            75
            TypeScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            Full featured MCP Server for MongoDB database analysis.
            Last updated -
            334
            108
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            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.
            Last updated -
            340
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases, allowing them to query collections, inspect schemas, and manage data seamlessly through natural language.
            Last updated -
            340
            MIT License
            • Apple

          View all related MCP servers

          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