Mongo MCP Server

MCP server for interacting with MongoDB databases

Local serverstdio

What is the Mongo MCP MCP server?

If you want an AI assistant working directly with Mongo MCP, the mongo mcp mcp server is the bridge. 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.

Tools it exposes

Once connected, the assistant can call these 12 tools directly:

  • find — Query documents with filtering and projection
  • listCollections — List available collections
  • insertOne — Insert a single document
  • updateOne — Update a single document
  • deleteOne — Delete a single document
  • createIndex — Create a new index
  • dropIndex — Remove an index
  • indexes — List indexes for a collection
  • Prerequisites — The Prerequisites tool exposed by this server
  • Users — The Users tool exposed by this server
  • Products — The Products tool exposed by this server
  • Orders — The Orders tool exposed by this server

Installing the mongo mcp mcp server

The server is distributed via npm as @smithery/cli, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Requirements

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

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Mongo MCP sits in that group, and the shape of its toolset — find, listCollections, insertOne among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • With 12 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Mongo MCP.
  • Maintained by QuantGeekDev.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mongo mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

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
PrerequisitesThe Prerequisites tool exposed by this server.
UsersThe Users tool exposed by this server.
ProductsThe Products tool exposed by this server.
OrdersThe Orders tool exposed by this server.

How to install the Mongo MCP 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

It connects Mongo MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 12 tools (find, listCollections, insertOne, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mongo MCP directly.