mcp-mongodb

mcp-mongodb

3.1

If you are the rightful owner of mcp-mongodb 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.

This document provides a configuration and usage guide for a Model Context Protocol (MCP) server setup with MongoDB.

The Model Context Protocol (MCP) server is designed to facilitate communication and operations between different components of a system, particularly in environments where model-based interactions are required. This setup specifically focuses on integrating MongoDB as a backend service, allowing for operations such as reading resources and executing multi-collection queries. The configuration file specifies the server details, including the command to run the server, environment variables, and operational parameters. The MCP server supports different schemas for executing commands and reading resources, providing flexibility in how data is accessed and manipulated.

Features

  • Flexible Configuration: Easily configure server commands, arguments, and environment variables.
  • Resource Access: Supports reading resources with ReadResourceRequestSchema for read-only access.
  • Command Execution: Utilize CallToolRequestSchema for executing specific operations like data insertion.
  • Multi-Collection Queries: Perform complex queries across multiple collections using aggregation pipelines.
  • Auto-Approval: Configure auto-approval settings for seamless operation without manual intervention.

Tools

  1. read_resource

    Used to read resource content in MongoDB database

  2. multi_collection_query

    Used to perform multi-table joint search operations