MCP MongoDB Server
A community MCP server, published on npm as mcp-mongo-server, that gives an AI client access to a MongoDB database from a connection string.
このサーバーについて
A community MCP server, published on npm as mcp-mongo-server, that gives an AI client access to a MongoDB database from a connection string. It lists collections, samples documents to infer their schemas, runs queries and aggregation pipelines with optional explain plans, counts documents, and can insert and update documents and create indexes. A read-only flag blocks every write path, including $out and $merge stages, and named connections can each carry their own database list and read-only setting. It runs over stdio by default or as an HTTP endpoint with an optional bearer token. Node.js 20 or newer is needed.
できること
- Infer collection schemas from sample documents
- Run queries and aggregation pipelines with explain plans
- Insert and update documents and create indexes
- Restrict all writes with a read-only mode
- Serve several named MongoDB connections
概要
- 公開元
- kiliczsh
- ツール
- MongoDB
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx -y mcp-mongo-server mongodb://localhost:27017/mydatabase --read-only
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
出典
- README(README.md)github.com/kiliczsh/mcp-mongo-server · 根拠となる項目:データの変更, 接続方式, APIキーまたはサインインが必要2026年11月12日
- ライセンスファイル(LICENSE)github.com/kiliczsh/mcp-mongo-server · 根拠となる項目:ライセンス2026年11月12日
- GitHubリポジトリgithub.com/kiliczsh/mcp-mongo-server · 根拠となる項目:公式かどうか, 公開元, 活動状況, ライセンス2026年11月10日
- npmのパッケージ情報npmjs.com/package/mcp-mongo-server2026年11月14日