MongoDB MCP Server

Query collections and run aggregations on MongoDB and Atlas.

Databases Apache-2.0 license Added Jul 13, 2026 Self-hosted

MongoDB is a Databases MCP (Model Context Protocol) server: Query collections and run aggregations on MongoDB and Atlas. It is Apache-2.0-licensed and self-hosted from its source repository. Listed on MCP Collection since July 2026.

About MongoDB

MongoDB's official MCP server: CRUD, aggregation pipelines, and Atlas administration with your own connection string.

How to connect MongoDB to Claude, Cursor or VS Code

MongoDB is self-hosted. Install it from the source repository, then register its start command in your MCP client's config (Claude Code, Cursor, Windsurf or VS Code).

{
  "mcpServers": {
    "mongodb": {
      "command": "<start command from the README>",
      "args": []
    }
  }
}

The exact command (often npx, uvx or docker) is in the project README at github.com/mongodb-js/mongodb-mcp-server.

MongoDB FAQ

What is MongoDB?

MongoDB is a Model Context Protocol (MCP) server in the Databases category. Query collections and run aggregations on MongoDB and Atlas. MCP servers expose tools that AI assistants like Claude can call during a conversation.

How do I use MongoDB with Claude or Cursor?

MongoDB is self-hosted. Install it from the source repository, then register its start command in your MCP client's config (Claude Code, Cursor, Windsurf or VS Code).

Is MongoDB free to use?

MongoDB is published under the Apache-2.0 license, so the software itself is free to run. Hosted or API-backed servers may have their own usage tiers; check the project homepage.

Where is the source code for MongoDB?

The source is at github.com/mongodb-js/mongodb-mcp-server.

More Databases MCP servers