mongodb-mcp MCP Server

A Model Context Protocol server that provides read-only access to MongoDB databases through standardized MCP tools and resources.

Local serverstdioMIT

What is the mongodb-mcp Server?

mongodb-mcp is an MCP project maintained in the jonfreeland/mongodb-mcp repository. The maintainer describes its purpose as “A Model Context Protocol server that provides read-only access to MongoDB databases through standardized MCP tools and resources”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/mongodb-server/build/index.js. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MONGODB_URI, MONGODB_DEFAULT_DATABASE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the mongodb-mcp Server

{
  "mcpServers": {
    "mongodb": {
      "command": "/path/to/mongodb-server/build/index.js",
      "env": {
        "MONGODB_URI": "mongodb://username:password@hostname:port/database",
        "MONGODB_DEFAULT_DATABASE": "your_default_db"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MONGODB_URIDeclared in the maintainer’s client configuration.Yes
MONGODB_DEFAULT_DATABASEDeclared in the maintainer’s client configuration.Optional