Feedback

MongoDB MCP Server — by mongodb-developer

@mongodb-developer Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
mongodb-developer
Submitted by
Community
Quality
40
Stars
27

About MongoDB MCP Server

<h2 align="center">

MongoDB MCP Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by mongodb-developer. Supported transport: stdio. Runtime: node. The repository has 27 GitHub stars. Source code is hosted on github.com. Related topics: aggregation-pipeline, anthropic, javascript, mcp, mongodb.

Setup

{
    "mcpServers": {
        "mongodb": {
            "command": "npx",
            "args": [
                "-y",
                "@pash1986/mcp-server-mongodb"
            ],
            "env": {
                "MONGODB_URI": ""
            }
        }
    }
}

MongoDB MCP Server — by mongodb-developer 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 — by mongodb-developer 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 community-maintained Model Context Protocol (MCP) server that provides read-only access to MongoDB databases. It enables LLMs to inspect collection schemas and execute aggregation pipelines safely.

How to use MongoDB MCP Server?

Install via npm and configure the server in your claude_desktop_config.json using the npx command. Set the MONGODB_URI environment variable to your MongoDB connection string, then invoke the aggregate or explain tools as needed.

Key features of MongoDB MCP Server

  • Execute aggregation pipelines with configurable options.
  • Retrieve execution plans using different verbosity levels.
  • Automatic limit of 1000 documents if no limit is specified.
  • Default 30-second timeout on all operations.
  • Read-only access – no write operations are permitted.
  • Schema inference from sampled collection documents.

Use cases of MongoDB MCP Server

  • Query and summarize large collections with aggregation pipelines.
  • Inspect database schemas to understand field types and structures.
  • Analyze query performance by viewing execution plans.
  • Ask natural-language questions about MongoDB data through an LLM.
  • Explore database contents without risking accidental modifications.

Frequently asked questions

1 Is this server read-only?

Yes. All operations are strictly read-only. No write or delete actions are allowed.

2 What safety limits are in place?

A default limit of 1000 documents is applied to any aggregation pipeline that does not include its own limit stage, and all operations time out after 30 seconds.

3 How do I connect to my MongoDB instance?

Set the MONGODB_URI environment variable to your connection string (e.g., mongodb://localhost:27017 or mongodb+srv://<cluster>) before starting the server.

4 What tools does it provide?

Two tools: aggregate (run aggregation pipelines) and explain (get execution plans with optional verbosity levels).

5 Is this an official MongoDB MCP Server?

No. This is a community-maintained server. The official server is maintained by MongoDB at mongodb-js/mongodb-mcp-server.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬