Basic information

Runtime
python
Category
License
MIT
Transports
stdio
Author
441126098
Submitted by
Community
Quality
15
Stars
3

About Mongo Mcp Server

A project to be pushed from local to GitHub using MCP service.

Mongo Mcp is a MCP server in the Databases category listed in the AddMCP.net directory, published by 441126098. Supported transport: stdio. Runtime: python. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: mongo.

Setup

{
    "mcpServers": {
        "mongo-mcp": {
            "command": "uvx",
            "args": [
                "mongo-mcp"
            ],
            "env": {
                "MONGODB_URI": "mongodb://localhost:27017",
                "MONGODB_DEFAULT_DB": "MONGODB_DEFAULT_DB",
                "LOG_LEVEL": "INFO"
            }
        }
    }
}

Mongo Mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mongo-mcp": {
            "command": "uvx",
            "args": [
                "mongo-mcp"
            ],
            "env": {
                "MONGODB_URI": "mongodb://localhost:27017",
                "MONGODB_DEFAULT_DB": "MONGODB_DEFAULT_DB",
                "LOG_LEVEL": "INFO"
            }
        }
    }
}

Mongo Mcp tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Mongo Mcp?

Mongo Mcp is a Model Context Protocol (MCP) service that provides a comprehensive set of tools for Large Language Models (LLMs) to interact with MongoDB databases. It supports complete CRUD operations, administrative tasks, and advanced features like aggregation and index management. It is designed for developers who want to enable AI assistants to manage and query MongoDB instances through a standardized MCP interface.

How to use Mongo Mcp?

Run the server directly with uvx run mongo-mcp (requires Python 3.10+, a running MongoDB, and the uv package manager). Configure connection via environment variables such as MONGODB_URI (default mongodb://localhost:27017). The server uses stdio transport, so it integrates with any MCP client that supports that transport, e.g., Cursor by adding a JSON configuration to .cursor/mcp.json.

Key features of Mongo Mcp

  • Full database and collection management tools
  • Document CRUD with batch operations
  • Index management including text and compound indexes
  • Aggregation pipeline and distinct value queries
  • Monitoring and admin tools (server status, replica set)
  • Configurable connection pooling, timeouts, and security

Use cases of Mongo Mcp

  • Using an LLM-powered code editor to query and update MongoDB collections
  • Automating database administration tasks through natural language prompts
  • Building AI assistants that can create, drop, or rename databases and collections
  • Enabling LLMs to run aggregation pipelines and analyze data in MongoDB

Frequently asked questions

1 What dependencies does Mongo Mcp require?

Python 3.10 or above, a running MongoDB database service, and it is recommended to use uv to run the program.

2 How do I connect to a MongoDB instance?

Set the MONGODB_URI environment variable to your MongoDB connection string (default mongodb://localhost:27017). You can optionally set MONGODB_DEFAULT_DB for the default database.

3 Is there any security or TLS support?

Yes. You can enable TLS by setting MONGODB_TLS_ENABLED to true, and configure authentication via MONGODB_AUTH_SOURCE, MONGODB_AUTH_MECHANISM, etc.

4 Can I enable dangerous administrative operations?

Yes. Set ENABLE_DANGEROUS_OPERATIONS to true (default false). Administrative operations are enabled by default (ENABLE_ADMIN_OPERATIONS defaults to true).

5 What transport method does the server use?

The server uses the stdio transport method, making it suitable for integration with MCP clients that support this transport method, such as Cursor.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬