The MCP MongoDB Server provides LLMs access to MongoDB databases, enabling schema inspection and operation execution through a Model Context Protocol, and supports read-only mode for enhanced safety.
The MCP MongoDB Server is a Model Context Protocol server that grants Large Language Models access to MongoDB databases, enabling schema inspection and operation execution. It features a read-only mode for enhanced safety, preventing write operations and optimizing read performance.
Key features include resource access via mongodb://
URIs, providing collection names, descriptions, and schemas in JSON format. It offers tools like query
, aggregate
, update
, serverInfo
, insert
, createIndex
, and count
for various MongoDB operations. The analyze_collection
prompt analyzes collection structure and content.
For development, use npm install
, npm run build
, and npm run watch
. It supports integration with Claude Desktop via configuration and offers debugging with the MCP Inspector (npm run inspector
). Installation is possible via Smithery or mcp-get. The server is licensed under the MIT License.
kiliczsh/mcp-mongo-server
December 4, 2024
March 28, 2025
JavaScript