Connector guide2-minute read5 MCP toolsEN · DE · IT

MongoDB を Claude に接続する方法 — MCP 経由

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

HCBy HelpCode team更新日 2 min read GitHub でオープンソース

クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり

MongoDB

MongoDB

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

ツール

5

地域

INTL

カテゴリー

Databases

認証

Connection string

必要な環境変数

MONGODB_HOSTMONGODB_PORTMONGODB_DATABASEMONGODB_USERMONGODB_PASSWORDMONGODB_AUTH_SOURCE
Cloud にワンクリックでインストール

7日間無料トライアル · クレジットカード不要

  • 7日間の無料トライアル
    クレジットカード不要
  • GDPR & SOC 2 ready
    EU データ保管、監査ログ
  • GitHub でオープンソース
    オープンソース · AGPL-3.0
  • ChatGPT、Claude、Gemini に対応
    MCP 対応クライアントすべて

インストール不要。2分以内に動きます。

cloud.anythingmcp.com で無料トライアルを開始し、MongoDB をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。

無料トライアルを開始

Summary

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

こう聞いてみよう

MongoDB のサンプルプロンプト

プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。

MongoDB · MCP 経由でライブ
共有
Opus 4.7

Claude は AI のため誤ることがあります。回答をご確認ください。

💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → MongoDB をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も git clone もローカルサーバーも不要。

MongoDB + Claude

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

前提条件

完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:

MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD, MONGODB_AUTH_SOURCE

ステップ 1 — 認証情報を取得

Setup

  1. Create a user with only read on the database the agent should see:
    use admin
    db.createUser({
      user: "amcp_reader",
      pwd: "change-me",
      roles: [{ role: "read", db: "shop" }]
    })
    
  2. Set MONGODB_HOST, MONGODB_PORT (27017), MONGODB_DATABASE, MONGODB_USER and MONGODB_PASSWORD.

MONGODB_AUTH_SOURCE is the field that decides whether this works at all. MongoDB authenticates a user against the database the user was created in, not the one you want to read. A root or admin account created the usual way lives in admin, so MONGODB_AUTH_SOURCE must be admin even though MONGODB_DATABASE is shop.

ステップ 2 — アダプターをインストール

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

ステップ 3 — Claude にコネクタを追加

推奨ルート — 設定ファイルを触らずに claude.ai web で動作します。

  1. claude.ai/customize/connectors を開きます。
  2. "Add custom connector" をクリック。
  3. 入力:
    • Name: MongoDB
    • URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → MCP API キーを貼り付け (AnythingMCP → Profile → MCP API Keys → New Key)
  4. Connect をクリックして認可。

下記のすべてのツールがチャットに表示されます — プロンプトを入力し始めてください。

利用可能なツール

ToolWhat it does
mongodb_schemaIntrospect the database: every collection, its estimated document count and the field names and types inferred from a sampled document
mongodb_findRun a read-only find
mongodb_find_recentRead the most recent documents of one collection, newest first by a timestamp field
mongodb_matchingReturn the documents of one collection matching a filter, projecting only their ids, so a population can be sized without transferring it
mongodb_query_examplesShow worked MongoDB query specs for this connector: filters, operators, projection, sort and the limits that apply

FAQ

Claude Code は Claude Desktop と同じように動作しますか? はい — 両方を https://cloud.anythingmcp.com/mcp に向けてください。

次のステップ

このガイドは役に立ちましたか?

Your MongoDB agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

関連ガイド

connectors

MongoDB を ChatGPT に接続する方法 — MCP 経由

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

MongoDB を Cursor に接続する方法 — MCP 経由

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

MongoDB を Gemini に接続する方法 — MCP 経由

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

databases

AIエージェントのためのMongoDBとMCPの接続方法

MongoDBデータベースをMCPを介してAIエージェントに直接接続します。AnythingMCPの読み取り専用データベースコネクタを使用して、自然言語でコレクションをクエリします。

connectors

AFAS Profit を Claude に接続する方法 — MCP 経由

AFAS Profit — Dutch ERP and HR: read any published GetConnector, list what is available, and inspect a connector's metadata. Token auth with AFAS's base64-wrapped XML token.

connectors

Aruba Fatturazione Elettronica を Claude に接続する方法 — MCP 経由

Aruba Fatturazione Elettronica: send and track Italian e-invoices through the Sistema di Interscambio, read received invoices and their SDI notifications. Token auth against Aruba's B2B gateway.