mongo-mcp
141
This project is a Model Context Protocol (MCP) server allowing large language models (LLMs) to smoothly interact with MongoDB databases using natural language communication. It offers features such as document querying, schema inspection, and index management.
🗄️ 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, add the MongoDB connection to your configuration file for Claude Desktop.
Prerequisites
- Node.js 18+
- npx
- Docker and Docker Compose (for local sandbox testing)
- MCP Client (e.g., Claude Desktop App)
Test Sandbox Setup
- Start MongoDB using Docker Compose
- Seed the database with test data
📝 Available Tools
find
: Query documents with filtering and projectioncreateIndex
: Create a new indexlistCollections
: List available collections
📜 License
This project is licensed under the MIT License.