mongo-mcp
0
This project is a Model Context Protocol server designed to integrate with MongoDB databases and facilitate interaction using natural language. It supports schema inspections, document queries, and index management, making it a powerful tool for databases.
🗄️ MongoDB MCP Server for LLMS
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.
✨ Features
- Collection schema inspection
- Document querying and filtering
- Index management
- Document operations (insert, update, delete)
🚀 Quick Start
To get started, find your MongoDB connection URL and add this configuration to your Claude Desktop config file:
Prerequisites
- Node.js 18+
- npx
- Docker and Docker Compose (for local sandbox testing only)
- MCP Client (Claude Desktop App for example)
Test Sandbox Setup
Start MongoDB using Docker Compose and seed with test data.
🎯 Example Prompts
- "What collections are available in the database?"
- "Find all electronics products that are in stock and cost less than $1000"
📝 Available Tools
find
: Query documents with filtering and projectioninsertOne
: Insert a single documentcreateIndex
: Create a new index
📜 License
Licensed under the MIT License.