mcp-mongo-server

mcp-mongo-server

4.0

If you are the rightful owner of mcp-mongo-server 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@mcpreview.com.

A Model Context Protocol server that enables LLMs to interact with MongoDB databases, providing capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface.

The MCP MongoDB Server is a specialized server designed to facilitate the interaction between Large Language Models (LLMs) and MongoDB databases. It provides a standardized interface for executing MongoDB operations, including both read and write functionalities, while also offering schema inspection capabilities. The server is equipped with smart ObjectId handling, allowing for intelligent conversion between string IDs and MongoDB ObjectId, which can be configured through various modes. It supports flexible configuration through environment variables and command-line options, making it adaptable to different deployment environments. The server also features a read-only mode, which is ideal for safely connecting to production databases by preventing write operations and optimizing performance through MongoDB's secondary read preference. Additionally, the server integrates with LLMs to enhance interaction through collection completions, schema inference, and data insights. It is compatible with various platforms and can be easily integrated into development workflows using tools like Docker, Claude Desktop, Windsurf, and Cursor.

Features

  • Smart ObjectId Handling: Intelligent conversion between string IDs and MongoDB ObjectId with configurable modes.
  • Flexible Configuration: Supports environment variables and command-line options for easy setup.
  • Read-Only Mode: Prevents write operations and uses secondary read preference for safe production use.
  • MongoDB Operations: Supports both read and write operations, including query, aggregation, update, insert, and index creation.
  • LLM Integration: Enhances interaction with LLMs through collection completions and schema inference.

Tools