RAGFlow MCP服务器

一个简单的RAGFlow MCP服务器,用于在官方MCP服务器发布前提供临时解决方案。

  • by oraichain
  • Python
  • 本地部署
  • 16 星标
  • 更新于
在 GitHub 查看 oraichain/ragflow-mcp

使用说明

ragflow mcp

简单的RAGFlow MCP。仅在RAGFlow团队发布官方MCP服务器之前有用

安装

我们提供两种安装方法。建议使用方法2(使用uv)来更快地安装和更好地管理依赖关系。

方法1:使用conda

  1. 创建一个新的conda环境:
conda create -n ragflow_mcp python=3.12
conda activate ragflow_mcp
  1. 克隆存储库:
git clone https://github.com/oraichain/ragflow-mcp.git
cd ragflow-mcp
  1. 安装依赖项:
pip install -r requirements.txt

方法2:使用紫外线(推荐)

  1. 安装uv(一个快速的Python包安装程序和解析器):
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. 克隆存储库:
git clone https://github.com/oraichain/ragflow-mcp.git
cd ragflow-mcp
  1. 创建一个新的虚拟环境并激活它:
uv venv --python 3.12
source .venv/bin/activate  # On Unix/macOS
# Or on Windows:
# .venv\Scripts\activate
  1. 安装依赖项:
uv pip install -r pyproject.toml

运行MCP服务器检查器进行调试

  1. 启动MCP服务器

  2. 使用以下命令启动检查器:

# you can choose a different server
SERVER_PORT=9000 npx @modelcontextprotocol/inspector```