mongodb-mcp-server

Level ALocal

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

Overview

MongoDB MCP Server is a Model Context Protocol server that connects AI agents to MongoDB databases and MongoDB Atlas clusters. It provides Atlas tools, database tools, and assistant tools, connecting via a MongoDB connection string or Atlas API credentials, and ships with official plugins for AI agents such as Cursor, VS Code, and Claude.

⭐ 1.2kDatabaseTypeScriptRepo ↗Updated 2026-11-20

Installation

MCP client config (paste into mcp.json)

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

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/mongodb-js/mongodb-mcp-server

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "mongodb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers