mongodb-mcp-server

general MCP Server

A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.

Install Ready
generalgeneralmongodb
10 views1,054 stars257 forksv1.11.0-prerelease.3Apache-2.0

Why This Matters

Discovered via unknown and last synced 3mo ago.

Install Ready
Source
unknown
Stars
1,054
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx -y mongodb-mcp-server@latest --readOnly

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "mongodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server@latest",
        "--readOnly"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

11
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (11)

3000

Port number for the HTTP server (only used when transport is 'http'). Use 0 for a random port.

false

When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations.

600000

Idle timeout for a client to disconnect (only applies to http transport).

102400

Maximum size of the HTTP request body in bytes (only used when transport is 'http'). This value is passed as the optional limit parameter to the Express.js json() middleware.

300000

Time in milliseconds after which an export is considered expired and eligible for cleanup.

540000

Notification timeout for a client to be aware of disconnect (only applies to http transport).

16777216

The maximum size in bytes for results from a find or aggregate tool call. This serves as an upper bound for the responseBytesLimit parameter in those tools.

Default

Description

14400000

Time in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted.

120000

Time in milliseconds between export cleanup cycles that remove expired export files.

100

The maximum number of documents that can be returned by a find or aggregate tool call. For the find tool, the effective limit will be the smaller of this value and the tool's limit parameter.