MCP.so
登录

MongoDB MCP Server

@PrashantSedhain

基本信息

分类

数据库

许可证

MIT

传输方式

stdio

作者

PrashantSedhain

关于 MongoDB MCP Server

MCP Server for MongoDB

MongoDB MCP Server 配置

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

{
  "mcpServers": {
    "mongo-db-mcp": {
      "command": "node",
      "args": [
        "dist/client/client.js",
        "dist/index.js"
      ]
    }
  }
}

MongoDB MCP Server 工具

工具列表暂未提供

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

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

概览

What is MongoDB MCP Server?

MongoDB MCP Server is a Model Context Protocol (MCP) server that connects to MongoDB and exposes a query tool to retrieve data from collections via a simple interface. It currently supports read-only transactions and is intended for local integrations and command line tools.

How to use MongoDB MCP Server?

Clone the repository, install dependencies with npm install, and create a .env file with your MONGO_CONNECTION_STRING. Build the TypeScript code with npm run build, then run the client with node dist/client/client.js dist/index.js.

Key features of MongoDB MCP Server

  • Exposes a query tool for MongoDB collections
  • Read‑only transactions only
  • Connects to local or cloud MongoDB databases
  • Built with Node.js and TypeScript
  • Includes a client application for interaction

Use cases of MongoDB MCP Server

  • Querying MongoDB collections from an MCP‑compatible tool
  • Exploring database contents without write access
  • Integrating MongoDB data into local command‑line workflows

常见问题

1

What does MongoDB MCP Server do?

It provides an MCP server that allows you to query MongoDB collections using a simple `query` tool. It only supports read operations.

2

What are the prerequisites?

Node.js v16 or higher, npm, and a MongoDB database (local or cloud).

3

How do I configure the MongoDB connection?

Create a `.env` file in the root directory and set `MONGO_CONNECTION_STRING` to your MongoDB connection string.

4

Is this server write‑capable?

No. The server currently supports only read‑only transactions.

5

What transports or authentication are supported?

The README does not specify transport or authentication details beyond the MongoDB connection string.

评论

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