Mcp Mongodb
@nan-qin
Mcp Mongodb について
MCP Server
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mongodb": {
"command": "node",
"args": [
"E:\\project\\mongodb\\build\\index2.js"
],
"env": {
"MONGO_URI": "mongodb://localhost:27017/"
},
"disabled": false,
"autoApprove": []
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Mcp Mongodb?
Mcp Mongodb is an MCP server that enables interaction with MongoDB databases through the Model Context Protocol. It provides tools and resources for reading and writing data, executing aggregation pipelines, and performing multi‑collection queries. It is intended for developers who want to integrate MongoDB with AI‑powered MCP clients.
How to use Mcp Mongodb?
Configure the server by setting the MONGO_URI environment variable (e.g., mongodb://localhost:27017/). Launch the server with Node.js, then use MCP tools such as read_resource to read resources and multi_collection_query to perform aggregation queries across collections.
Key features of Mcp Mongodb
- Supports read and write operations via resources and tools.
- Enables multi‑collection aggregation using MongoDB’s
$lookup. - Provides a clear separation between
CallToolandReadResourceschemas. - Configurable connection URI via environment variable.
- Built on Node.js for lightweight deployment.
Use cases of Mcp Mongodb
- Querying documents from a MongoDB collection.
- Performing complex aggregation pipelines that join multiple collections.
- Reading database status or metadata as a resource.
- Inserting, updating, or deleting data through tool calls.
FAQ from Mcp Mongodb
How do I configure the Mcp Mongodb server?
Set the MONGO_URI environment variable in the MCP server configuration to your MongoDB connection string. The example uses mongodb://localhost:27017/.
What tools and resources are available?
The server provides read_resource for reading resources (e.g., collection documents) and multi_collection_query for aggregation pipelines. The README distinguishes between CallToolRequestSchema (for active operations) and ReadResourceRequestSchema (for read‑only access).
What are the runtime requirements?
The server requires Node.js to run, as the command is node with a JavaScript entry point.
Can I perform multi‑table joins?
Yes. The server supports multi‑collection queries using MongoDB’s $lookup stage in an aggregation pipeline, as shown in the multi‑collection query example.
Is authentication handled?
The README does not specify authentication. The connection is defined solely by the MONGO_URI string, so any authentication must be included in that URI (e.g., mongodb://user:pass@host).
「データベース」の他のコンテンツ
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation

Sqlite
modelcontextprotocolModel Context Protocol Servers
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
コメント