Mongo MCP logo

Mongo MCP

by QuantGeekDev

Connects an MCP client to MongoDB for schema inspection, queries, index management, and document changes.

Install Mongo MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "quantgeekdev-mongo-mcp": {
      "command": "npx",
      "args": [
        "mongo-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx mongo-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

QuantGeekDev/mongo-mcp MCP server lets MCP-compatible clients inspect and modify MongoDB databases through natural-language requests. It exposes collection discovery, schema inspection, document queries, CRUD operations, and index management, using a MongoDB connection URL supplied at launch. Reach for it when an agent needs controlled access to MongoDB collections and indexes.

Use cases

  • Inspect MongoDB collections and schemas
  • Query documents with filters and projections
  • Insert, update, or delete individual documents
  • Create, list, or remove collection indexes

Key features

  • Collection schema inspection
  • Filtered document queries
  • Single-document CRUD operations
  • Index creation and removal
  • Collection and index listing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

20/21 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · mongo-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars176Stargazers on the source repository.
npm downloads101Package downloads in the last 30 days.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Mongo MCP works

What QuantGeekDev/mongo-mcp MCP server does

QuantGeekDev/mongo-mcp MCP server connects an MCP client to a MongoDB database and exposes database operations as agent tools. It supports listing collections, inspecting collection schemas, filtering and projecting documents, and performing single-document inserts, updates, and deletions.

The server also covers index administration. An agent can list indexes for a collection, create an index, or remove one. Example tasks include finding users by location, filtering products by price and stock status, updating an order status, and removing matching documents.

How it works

The server receives a MongoDB connection URL as a command-line argument. The URL can include the host, port, database, username, password, and authentication source. MCP clients then expose the server’s tools to a language model, which can translate natural-language requests into MongoDB operations.

The available query and data tools are find, listCollections, insertOne, updateOne, and deleteOne. Index-related tools are createIndex, dropIndex, and indexes.

Setup and configuration

QuantGeekDev/mongo-mcp MCP server requires Node.js 18 or newer and npx. A MongoDB connection URL is also required. For Claude Desktop, add an mcpServers entry to the platform’s configuration file and set the command to npx, with mongo-mcp and the connection URL in the arguments.

On macOS, the documented Claude Desktop path is ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, it is %APPDATA%/Claude/claude_desktop_config.json.

A Docker Compose sandbox is available for testing. It can start a local MongoDB instance, after which npm run seed creates sample Users, Products, and Orders collections. Docker and Docker Compose are prerequisites for this sandbox only, not for connecting to an existing MongoDB deployment.

Tools and capabilities

QuantGeekDev/mongo-mcp MCP server provides:

  • Collection listing and schema inspection
  • Filtered document queries with projection support
  • Single-document insertion, updates, and deletion
  • Collection index creation, removal, and listing
  • Natural-language access through an MCP client such as Claude Desktop

Limitations and notes

Database credentials are supplied through the MongoDB connection URL, so configuration should protect that value. The examples include destructive actions such as deleting documents and dropping indexes; use appropriate database permissions and review agent-generated operations before applying them.

QuantGeekDev/mongo-mcp MCP server is licensed under MIT and is presented as a Node.js project intended to run locally through an MCP client.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mongo MCP

Configure an MCP client such as Claude Desktop to run the server with Node.js 18+ and npx, passing the MongoDB connection URL as an argument.

Yes. The README provides Claude Desktop configuration paths and an mcpServers entry using npx or a local dist/index.js build.

It supports collection listing, schema inspection, filtered queries with projection, single-document inserts, updates and deletions, plus index creation, removal, and listing.

The documented prerequisite is Node.js 18 or newer.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMongo MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/quantgeekdev-mongo-mcp?style=directory)](https://allmcps.com/mcp/quantgeekdev-mongo-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/quantgeekdev-mongo-mcp"><img src="https://allmcps.com/api/badge/quantgeekdev-mongo-mcp?style=directory" alt="Mongo MCP on AllMCPs" /></a>