MCP.so
登录

MCP Server with MongoDB Integration

@sven-olding

基本信息

分类

数据库

最近更新

传输方式

stdio

作者

sven-olding

关于 MCP Server with MongoDB Integration

暂无概览

MCP Server with MongoDB Integration 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

MCP Server with MongoDB Integration 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

常见问题

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).

评论

数据库 分类下的更多 MCP 服务器