Feedback

MCP Server with MongoDB Integration

@sven-olding Claim

Basic information

Runtime
python
Category
License
Not specified
Transports
stdio
Author
sven-olding
Submitted by
Community
Quality
10
Stars
1

About MCP Server with MongoDB Integration

# MCP Server with MongoDB Integration

MCP Server with MongoDB Integration is a MCP server in the Databases category listed in the AddMCP.net directory, published by sven-olding. Supported transport: stdio. Runtime: python. The repository has 1 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "mcp-server-mongo": {
            "command": "uv",
            "args": [
                "pip",
                "install",
                "-e",
                "."
            ]
        }
    }
}

MCP Server with MongoDB Integration config

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

{
    "mcpServers": {
        "mcp-server-mongo": {
            "command": "uv",
            "args": [
                "pip",
                "install",
                "-e",
                "."
            ]
        }
    }
}

MCP Server with MongoDB Integration 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 MCP Server with MongoDB Integration?

This MCP server provides tools for querying MongoDB data. It connects to a MongoDB instance, allowing users to run queries and list collections through the Model Context Protocol.

How to use MCP Server with MongoDB Integration?

Install dependencies with uv pip install -e ., then run python main.py. The server connects to mongodb://localhost:27017 by default; override the connection using environment variables MONGODB_URI and MONGODB_DATABASE. Two tools are available: query_mongodb and list_collections.

Key features of MCP Server with MongoDB Integration

  • Query MongoDB collections with a filter and optional limit.
  • List all collections in the database.
  • Default connection to localhost:27017.
  • Customizable MongoDB URI and database via environment variables.
  • Simple command-line invocation with minimal setup.

Use cases of MCP Server with MongoDB Integration

  • Retrieve documents from a MongoDB collection using a query filter.
  • List all collections in a database to explore its structure.
  • Integrate MongoDB queries into an MCP-driven AI agent workflow.
  • Prototype and test MongoDB queries without a full application.

Frequently asked questions

1 What is the default MongoDB connection?

The server connects to mongodb://localhost:27017 by default. You can change the URI and database name by setting the MONGODB_URI and MONGODB_DATABASE environment variables.

2 What tools does the server provide?

It provides two tools: query_mongodb (requires collection and query parameters, optional limit) and list_collections (no parameters required).

3 How do I install and run the server?

Install dependencies with uv pip install -e ., then run python main.py. Ensure uv and Python are installed.

4 Can I limit the number of results returned?

Yes, the query_mongodb tool accepts an optional limit parameter (default 10).

Comments

No comments yet

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

Sign In

Feedback 💬