MCP.so
登录

MCP MongoDB Server

@SFBB

基本信息

分类

数据库

许可证

MIT

传输方式

stdio

作者

SFBB

关于 MCP MongoDB Server

A Model Context Protocol (MCP) server that provides an interface between LLMs and MongoDB databases, optimized for small context windows (3k tokens). Specially for novel.

MCP MongoDB Server 配置

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

{
  "mcpServers": {
    "mcp-mongodb-novel-server": {
      "command": "python",
      "args": [
        "src/scraper.py",
        "--config",
        "config/settings.json"
      ]
    }
  }
}

MCP MongoDB Server 工具

工具列表暂未提供

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

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

概览

What is MCP MongoDB Server?

MCP MongoDB Server is a high-performance Model Context Protocol (MCP) server that provides an efficient knowledge interface between Large Language Models (LLMs) and MongoDB. It is optimized for small context windows (3k tokens) and enables LLMs to retrieve and interact with domain-specific knowledge stored in MongoDB collections.

How to use MCP MongoDB Server?

Clone the repository with submodules, configure a .env file with MONGODB_URI, DATABASE_NAME, and PORT, then build and run with cargo build --release and cargo run --release. After startup, configure your MCP client (e.g., VSCode copilot) to connect via SSE at http://localhost:3000/sse.

Key features of MCP MongoDB Server

  • Dual‑server architecture: SSE‑based MCP and RESTful CRUD API
  • Token‑efficient responses for small LLM context windows
  • Integrated MongoDB query mechanisms and data models
  • Built‑in models for Novels, Chapters, Characters, and Q&A
  • Python scraper submodules for populating databases

Use cases of MCP MongoDB Server

  • Query character details from a novel database via LLM
  • Retrieve novel metadata and chapter summaries with regex search
  • Update chapter summaries using an MCP method with authentication
  • Populate MongoDB from Syosetu, 69Shu, Ximalaya, or Twitter/X timelines

常见问题

1

What ports does the server use?

The MCP SSE server runs on port 3000, and the CRUD API runs on port 3001 (PORT+1).

2

What data models are supported?

The server includes models for Novels, Chapters, Characters, and Q&A knowledge base entries.

3

How do I update database content?

You can use the RESTful CRUD API endpoints (`/api/novels`, `/api/chapters`, `/api/characters`, `/api/qa`) or MCP methods like `update_chapter_summary` (requires an auth token).

4

What are the runtime dependencies?

You need a Rust toolchain, a running MongoDB instance, and Python 3.7+ if you use the included data scrapers.

5

How does the server communicate with LLMs?

The server exposes an SSE endpoint (`/sse`) for streaming events and a POST endpoint (`/message`) for JSON‑RPC 2.0 commands, both over HTTP.

评论

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