mongo-mcp

This repository provides a Model Context Protocol (MCP) server, enabling Large Language Models to interact with MongoDB databases using natural language for querying, schema inspection, and data management.

124
16

MongoDB MCP Server for LLMs

Node.js 18+
License: MIT
smithery badge

This Model Context Protocol (MCP) server allows Large Language Models (LLMs) to interact with MongoDB databases using natural language. It enables querying, schema inspection, and data management.

Features

  • Collection schema inspection
  • Document querying and filtering
  • Index management
  • Document operations (insert, update, delete)

Quick Start

Configure the MCP server in your Claude Desktop config file (claude_desktop_config.json) with your MongoDB connection URL. Alternatively, install via Smithery using npx -y @smithery/cli install mongo-mcp --client claude.

Prerequisites: Node.js 18+, npx, Docker (optional for local testing), and an MCP Client (e.g., Claude Desktop).

For local testing, use docker-compose up -d to start MongoDB and npm run seed to populate the database.

Example Prompts

Use natural language prompts with Claude to query data, inspect schemas, manage indexes, and perform document operations.

License

Licensed under the MIT License.

Repository

QU
QuantGeekDev

QuantGeekDev/mongo-mcp

Created

December 5, 2024

Updated

March 28, 2025

Language

TypeScript

Category

Database