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/`.
@nan-qin
Basic information
MCP Server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongodb": {
"command": "node",
"args": [
"E:\\project\\mongodb\\build\\index2.js"
],
"env": {
"MONGO_URI": "mongodb://localhost:27017/"
},
"disabled": false,
"autoApprove": []
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
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.
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.
$lookup.CallTool and ReadResource schemas.Set the `MONGO_URI` environment variable in the MCP server configuration to your MongoDB connection string. The example uses `mongodb://localhost:27017/`.
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).
The server requires Node.js to run, as the command is `node` with a JavaScript entry point.
Yes. The server supports multi‑collection queries using MongoDB’s `$lookup` stage in an aggregation pipeline, as shown in the multi‑collection query example.
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`).
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Model Context Protocol Servers

Verified golf club data for AI agents: holes, par, address, phone, booking links, facilities, visitor rules and green fees for golf clubs in Spain (Canary Islands and mainland), expanding across Europe. Every fact comes
Comments