MCP server for querying MongoDB data

MCP server for querying MongoDB data

mcp-server-mongo•bysven-olding

An MCP server that connects to MongoDB and exposes tools for filtering collection queries and listing collections.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides a query_mongodb tool that queries a named collection using a MongoDB query filter with an optional result limit.
  • •Provides a list_collections tool that lists all collections in the configured database.
  • •Connects to MongoDB using a configurable connection string and database name.

BEST FOR

  • •Querying MongoDB collections by filter from an MCP-compatible client.
  • •Discovering which collections exist in a MongoDB database through an MCP tool.

ABOUT MCP-SERVER-MONGO

MCP server for querying MongoDB data is cataloged as an MCP server attributed to sven-olding. An MCP server that connects to MongoDB and exposes tools for filtering collection queries and listing collections. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for querying MongoDB data are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How many results does query_mongodb return by default?

The query_mongodb tool returns 10 results by default unless a limit is provided.

Can the MongoDB connection target be changed?

Yes, connection details can be changed with the MONGODB_URI and MONGODB_DATABASE environment variables.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c2b2c0183f5c · 采集于 2026-11-13 13:59:16 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Server with MongoDB Integration

This is an MCP server that provides tools for querying MongoDB data.

Setup

  1. Install dependencies using uv:
uv pip install -e .
  1. Configure MongoDB connection:
    • The server will connect to MongoDB at mongodb://localhost:27017 by default
    • You can change the connection details by setting environment variables:
      • MONGODB_URI: MongoDB connection string
      • MONGODB_DATABASE: Database name

Running the Server

python main.py

Available Tools

1. query_mongodb

Query a MongoDB collection with a filter.

Parameters:

  • collection (string): Name of the collection to query
  • query (object): MongoDB query filter
  • limit (integer, optional): Maximum number of results to return (default: 10)

Example:

{
    "collection": "users",
    "query": {"age": {"$gt": 18}},
    "limit": 5
}

2. list_collections

List all collections in the database.

No parameters required.

Development

To add new dependencies:

uv pip install <package-name>

To update dependencies:

uv pip install --upgrade <package-name>

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for querying MongoDB data from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-mongo)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage