About Ragflow Retrieval Mcp Server
Ragflow Retrieval Mcp Server connects MCP clients to RagFlow for content-based document retrieval from a knowledge base. It is intended for systems that need to search RagFlow datasets through MCP.
Key features
- 01Retrieve documents from RagFlow
- 02Search knowledge-base content
- 03Configure dataset and result count
- 04Set similarity threshold and timeout
Use cases
- 01Searching documents in a RagFlow dataset
- 02Retrieving knowledge-base content through an MCP client
MCP support
It exposes RagFlow content retrieval to MCP clients, using configured RagFlow connection and dataset settings.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMERAGFlow Retrieval MCP Server 🚀
该MCP Server用于对接RagFlow知识库系统,提供基于内容的文档检索能力。
前置要求
- Python 3.10+
- RagFlow
生产运行
export SERVER_HOST=http://localhost
export SERVER_PORT=80
export RAGFLOW_BASE_URL=http://localhost:80
export RAGFLOW_API_KEY=<your-api-key>
export RAGFLOW_DATASET_ID=<your-dataset-id>
export RAGFLOW_TOP_K=10
export RAGFLOW_SIMILARITY_THRESHOLD=0.2
export RAGFLOW_TIMEOUT=60
uvx ragflow-retrieval-mcp-server
开发调试
# 创建虚拟环境
uv venv
source .venv/bin/activate
# 安装依赖
uv pip install -e .
# 运行
uv run ragflow-retrieval-mcp-server
贡献指南 🤝
欢迎通过以下方式参与贡献:
- Fork仓库并创建特性分支
- 提交清晰的commit message
- 发起Pull Request并描述变更内容
请确保: ✅ 更新相关文档 ✅ 保持代码风格一致
许可证 📄
本项目采用 MIT License
遇到问题? 请提交 Issue 或联系 [email protected]
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.