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.
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.
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.
Use natural language prompts with Claude to query data, inspect schemas, manage indexes, and perform document operations.
Licensed under the MIT License.
QuantGeekDev/mongo-mcp
December 5, 2024
March 28, 2025
TypeScript