mongo-mcp
If you are the rightful owner of mongo-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
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.
The MongoDB MCP Server for LLMs is a powerful tool that allows language models to interact with MongoDB databases using natural language commands. This server facilitates the querying of collections, inspection of schemas, and management of data, making it easier for users to perform database operations without needing extensive knowledge of MongoDB's query language. The server supports a range of operations including document querying, filtering, and index management, as well as basic document operations like insert, update, and delete. It is designed to work seamlessly with platforms like Claude Desktop, providing a user-friendly interface for database interaction. The server can be installed via Smithery, and it requires Node.js 18+ and npx for operation. For local testing, Docker and Docker Compose can be used to set up a sandbox environment. The server also includes tools for creating and managing indexes, making it a comprehensive solution for database management through natural language.
Features
- Collection schema inspection
- Document querying and filtering
- Index management
- Document operations (insert, update, delete)
Tools
find
Query documents with filtering and projection
listCollections
List available collections
insertOne
Insert a single document
updateOne
Update a single document
deleteOne
Delete a single document
createIndex
Create a new index
dropIndex
Remove an index
indexes
List indexes for a collection