Mongo MCP Server

MCP server for interacting with MongoDB databases

Local serverstdio

What is the Mongo MCP Server?

MCP server for interacting with MongoDB databases.

What Mongo MCP does

A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. Query collections, inspect schemas, and manage data seamlessly through natural language.

Requirements

  • Node.js 18+ - npx - Docker and Docker Compose (for local sandbox testing only) - MCP Client (Claude Desktop App for example)

Practical notes

  • Maintained by QuantGeekDev.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
findQuery documents with filtering and projection
listCollectionsList available collections
insertOneInsert a single document
updateOneUpdate a single document
deleteOneDelete a single document
createIndexCreate a new index
dropIndexRemove an index
indexesList indexes for a collection

How to install the Mongo MCP Server

{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "mongo-mcp",
        "mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18+ - npx - Docker and Docker Compose (for local sandbox testing only) - MCP Client (Claude Desktop App for example)

Example prompts to try

  • “Use Mongo MCP to find.”
  • “Use Mongo MCP to listCollections.”
  • “Use Mongo MCP to insertOne.”

Frequently asked questions

MCP server for interacting with MongoDB databases Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.