mcp-mongo-server

214

The MCP MongoDB Server is designed to facilitate LLMs' interactions with MongoDB by providing a standardized interface for database operations. Key features include smart handling of ObjectId, flexible configuration, and a read-only mode for secure production use.

MCP MongoDB Server

A Model Context Protocol server enabling LLMs to interact with MongoDB databases, providing capabilities such as collection schema inspection and execution of MongoDB operations.

Demo

Key Features

  • Smart ObjectId Handling: Converts string IDs to MongoDB ObjectId.
  • Flexible Configuration: Configure through environment variables and command-line options.
  • Read-Only Mode: Prevents write operations and uses MongoDB's secondary read preference.
  • MongoDB Operations: Supports read/write operations with enhanced LLM integration.

Installation

  • Install globally with npm or setup for development.

Usage

  • Start server with MongoDB URI, support for read-only mode.
  • Can be integrated with tools like Claude Desktop, Windsurf, and Cursor.

Integration

  • Supports manual and automated configurations with tools like Smithery and mcp-get.