Mongo MCP
A Mongo DB server for the Model Context Protocol (MCP)
🗄️ Data
Overview
Mongo-MCP
Description: A MongoDB server that enables direct database interactions through natural language commands.
Category: Database Tools
Overview: This MCP server provides a bridge between LLMs and MongoDB databases, allowing natural language interactions for database operations. Key capabilities include:
- Collection schema inspection
- Document querying and filtering
- Index management
- CRUD operations (Create, Read, Update, Delete)
Requirements:
- Node.js 18+
- MongoDB instance
- Claude Desktop App
Quick Start Setup:
Add this configuration to your Claude Desktop config file:
For MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration JSON:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["mongo-mcp", "mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin"]
}
}
}
Available Tools:
- Query Operations: find, listCollections, insertOne, updateOne, deleteOne
- Index Management: createIndex, dropIndex, indexes
Sample Collections:
- Users: Personal info, addresses, interests
- Products: Details, specifications, inventory
- Orders: Order details, shipping info, status
Testing: Local sandbox environment available through Docker Compose with pre-configured test data and collections.