# QuantGeekDev/mongo-mcp [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/QuantGeekDev/mongo-mcp  
**GitHub Stars:** 176  
**npm Downloads (last month):** 101  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/quantgeekdev-mongo-mcp

## Description
MongoDB integration that enables LLMs to interact directly with databases.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mongo-mcp": {
    "command": "npx",
    "args": ["mongo-mcp"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/quantgeekdev-mongo-mcp/readme_

