Skip to main content
MCP Server

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

Share
1,040 stars TypeScript Apache-2.0 Updated: 2026-06-02

Send to Your Agent

Copy this prompt and paste it into Claude, Cursor, or any MCP client to install instantly.

Install the Mongodb MCP server for me.

Server: Mongodb
Description: A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Install command: npx -y mongodb-js/mongodb-mcp-server

GitHub: https://github.com/mongodb-js/mongodb-mcp-server

Please install this MCP server and confirm when ready.

Paste into any AI agent with MCP support — works with Claude Desktop, Cursor, Cline, and more.

Quick Install

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json

  1. Open Claude Desktop app
  2. Go to Settings → Developer → Edit Config
  3. Paste the config below into the file
  4. Restart Claude Desktop
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-js/mongodb-mcp-server"
      ]
    }
  }
}

Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json

Installation Methods

npx Run directly with npx
npx -y mongodb-js/mongodb-mcp-server
docker Run with Docker
docker run mongodb-js/mongodb-mcp-server

Tools (1)

execute

Execute mongodb operations

Compatibility

Claude Desktop
Cursor
Cline
VS Code
Devin (formerly Windsurf)

Related Resources

Compare LLM Pricing

This server works with Claude, GPT-4o, and other models. Compare API costs side-by-side to find the cheapest option for your workflow.