MCP Directory
Back

mongodb-mcp-server

by mongodb-js · TypeScript · ★ 1,012

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

#mcp#mcp-server#mongodb#mongodb-atlas#mongodb-database

Install

npx -y github:mongodb-js/mongodb-mcp-server

Claude Desktop config

Add this to your claude_desktop_config.json:

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

From the README

[](https://insiders.vscode.dev/redirect/mcp/install?name=mongodb&inputs=%5B%7B%22id%22%3A%22connection_string%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22MongoDB%20connection%20string%22%7D%5D&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22mongodb-mcp-server%22%2C%22--readOnly%22%5D%2C%22env%22%3A%7B%22MDB_MCP_CONNECTION_STRING%22%3A%22%24%7Binput%3Aconnection_string%7D%22%7D%7D) [](https://cursor.com/en-US/install-mcp?name=MongoDB&config=eyJjb21tYW5kIjoibnB4IC15IG1vbmdvZGItbWNwLXNlcnZlciAtLXJlYWRPbmx5In0%3D) A Model Context Protocol server for interacti…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related databases servers