MongoDB リモートMCPを Cursor にMCP接続する方法(設定手順)

MongoDB のリモートMCPサーバーを Cursor に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~1112 tok36 tools
Streamable HTTPhttps://mcp.mongodb.com/mcp
Install in Cursor →

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mongodb": {
      "url": "https://mcp.mongodb.com/mcp"
    }
  }
}

接続手順

  1. MCP 設定を開く — Cursor → Settings → MCP。またはグローバル ~/.cursor/mcp.json / プロジェクト .cursor/mcp.json を直接編集。
  2. サーバーを追加 — ワンクリック deeplink を使うか、mcpServers に "mongodb": { "url": https://mcp.mongodb.com/mcp } を追加します。
  3. 認証を完了 — 初回呼び出し時に MongoDB の OAuth 認可画面が開きます。許可するとツールが有効になります。
  4. 検証 — オンライン Inspector に https://mcp.mongodb.com/mcp を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(36)

ToolSafetyDescriptionParameters
list-connections
~32 tok
🟢 ReadList configured MongoDB connections.—
connect
~33 tok
🟢 ReadConnect to a MongoDB instance or Atlas cluster.—
list-databases
~31 tok
🟢 ReadList databases of a connection.—
list-collections
~31 tok
🟢 ReadList collections of a database.—
collection-indexes
~31 tok
🟢 ReadList indexes of a collection.—
collection-schema
~32 tok
🟢 ReadInfer the schema of a collection.—
collection-storage-size
~33 tok
🟢 ReadGet storage size of a collection.—
db-stats
~27 tok
🟢 ReadGet database statistics.—
count
~29 tok
🟢 ReadCount documents matching a filter.—
find
~29 tok
🟢 ReadRun a find query on a collection.—
aggregate
~29 tok
🟢 ReadRun an aggregation pipeline.—
explain
~31 tok
🟢 ReadExplain a find or aggregate query plan.—
insert-one
~28 tok
🟠 WriteInsert a single document.—
insert-many
~29 tok
🟠 WriteInsert multiple documents.—
update-one
~28 tok
🟠 WriteUpdate a single document.—
update-many
~29 tok
🟠 WriteUpdate multiple documents.—
rename-collection
~29 tok
🟠 WriteRename a collection.—
delete-one
~28 tok
🔴 DestructiveDelete a single document.—
delete-many
~29 tok
🔴 DestructiveDelete multiple documents.—
drop-collection
~28 tok
🔴 DestructiveDrop a collection.—
drop-database
~27 tok
🔴 DestructiveDrop a database.—
create-index
~30 tok
🟠 WriteCreate an index on a collection.—
export
~29 tok
🟢 ReadExport query results to a file.—
mongodb-logs
~30 tok
🟢 ReadRetrieve MongoDB server logs.—
atlas-list-orgs
~31 tok
🟢 ReadList MongoDB Atlas organizations.—
atlas-list-projects
~29 tok
🟢 ReadList Atlas projects.—
atlas-list-clusters
~29 tok
🟢 ReadList Atlas clusters.—
atlas-inspect-cluster
~31 tok
🟢 ReadInspect an Atlas cluster.—
atlas-create-cluster
~30 tok
🟠 WriteCreate an Atlas cluster.—
atlas-create-free-cluster
~34 tok
🟠 WriteCreate a free-tier Atlas cluster.—
atlas-list-db-users
~31 tok
🟢 ReadList Atlas database users.—
atlas-create-db-user
~32 tok
🟠 WriteCreate an Atlas database user.—
atlas-list-access-list
~33 tok
🟢 ReadList Atlas IP access list entries.—
atlas-create-access-list
~33 tok
🟠 WriteAdd an Atlas access list entry.—
atlas-inspect-access-list
~33 tok
🟢 ReadInspect the Atlas access list.—
atlas-connect-cluster
~34 tok
🟢 ReadGet connection details for a cluster.—

その他の接続ガイド