Integrations
Provides read-only access to MongoDB databases, enabling inspection of collection schemas and execution of aggregation pipelines with safety features like document limits and query timeouts.
MongoDB MCP サーバー
MongoDBデータベースへの読み取り専用アクセスを提供するモデルコンテキストプロトコルサーバー。このサーバーにより、LLMはコレクションスキーマを検査し、集計パイプラインを実行できます。
コンポーネント
ツール
- 集計
- 接続されたデータベースに対してMongoDB集計パイプラインを実行する
- 入力:
collection
(文字列): クエリするコレクションpipeline
(配列):MongoDB 集約パイプラインのステージoptions
(オブジェクト): オプションの集計設定allowDiskUse
(boolean): ディスク使用を必要とする操作を許可するmaxTimeMS
(数値): 最大実行時間(ミリ秒)comment
(文字列): 操作を識別するためのコメント
- 制限ステージが指定されていない場合、デフォルトの制限は 1000 ドキュメントです
- デフォルトのタイムアウトは30秒です
- 説明する
- 集計パイプラインの実行プランを取得する
- 入力:
collection
(文字列):分析するコレクションpipeline
(配列):MongoDB 集約パイプラインのステージverbosity
(文字列):説明の詳細レベル- オプション: 「queryPlanner」、「executionStats」、「allPlansExecution」
- デフォルト: "queryPlanner"
リソース
サーバーは、データベース内の各コレクションのスキーマ情報を提供します。
- コレクションスキーマ(
mongodb://<host>/<collection>/schema
)- 各コレクションの推論されたJSONスキーマ情報
- フィールド名とデータ型が含まれます
- スキーマはサンプルコレクション文書から派生されます
Claude Desktopでの使用
このサーバーを Claude Desktop アプリで使用するには、 claude_desktop_config.json
の「mcpServers」セクションに次の構成を追加します。
mydb
データベース名に置き換え、必要に応じて接続文字列を調整します。
使用例
基本的な集計
クエリの説明
安全機能
- パイプラインで制限が指定されていない場合は、1000 ドキュメントの自動制限が適用されます。
- すべての操作のデフォルトのタイムアウトは30秒です
- 読み取り専用操作のみ
- コレクションサンプルからの安全なスキーマ推論
ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
LLM がコレクション スキーマを検査し、集約パイプラインを実行するために、MongoDB データベースへの読み取り専用アクセスを提供します。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute read-only queries.Last updated 3 days ago81,087174TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.Last updated 2 months ago340TypeScriptMIT License
- -securityFlicense-qualityA protocol server that enables LLMs like Claude to interact with MongoDB databases, providing tools for schema exploration, aggregation queries, and data analysis through natural language in Cursor.Last updated 2 months ago115TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.Last updated a month ago340MIT License