Basic information
About MongoDB MCP Server
Mirror of
MongoDB MCP Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by MCP-Mirror. Supported transport: stdio. Source code is hosted on github.com. Related topics: database-access, mcp-server, mongodb.
Setup
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"@pash1986/mcp-server-mongodb"
],
"env": {
"MONGODB_URI": ""
}
}
}
}
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"@pash1986/mcp-server-mongodb"
],
"env": {
"MONGODB_URI": ""
}
}
}
}
{
"servers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"@pash1986/mcp-server-mongodb"
],
"env": {
"MONGODB_URI": ""
}
}
}
}
MongoDB MCP Server (MCP-Mirror/mongodb-developer_mongodb-mcp-server) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"@pash1986/mcp-server-mongodb"
],
"env": {
"MONGODB_URI": ""
}
}
}
}
MongoDB MCP Server (MCP-Mirror/mongodb-developer_mongodb-mcp-server) tools
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.
Overview
What is MongoDB MCP Server?
A Model Context Protocol server that provides read-only access to MongoDB databases. It enables LLMs to inspect collection schemas and execute aggregation pipelines.
How to use MongoDB MCP Server?
Add the server configuration to the mcpServers section of your claude_desktop_config.json, using npx -y @pash1986/mcp-server-mongodb and setting the MONGODB_URI environment variable to your connection string.
Key features of MongoDB MCP Server
- Execute MongoDB aggregation pipelines against connected databases
- Get execution plans for aggregation pipelines
- Automatic limit of 1000 documents if no limit stage is specified
- Default timeout of 30 seconds for all operations
- Provides inferred JSON schema information for each collection
- Read‑only operations only for safety
Use cases of MongoDB MCP Server
- LLMs querying MongoDB collections using aggregation pipelines
- Inspecting collection schemas to understand database structure
- Analyzing query performance with execution plan explanations
Frequently asked questions
1 What tools does the server provide?
The server provides two tools: aggregate (execute aggregation pipelines) and explain (get execution plans).
2 What is the default document limit?
A limit of 1000 documents is applied automatically if no limit stage is specified in the pipeline.
3 What are the runtime requirements?
The server requires Node.js and is run via npx. It connects to any MongoDB instance via a connection string.
4 How is schema information obtained?
Schemas are derived by sampling collection documents and inferring field names and data types.
5 Is the connection read‑only?
Yes, all operations are read‑only. No write or update operations are supported.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In