Skip to main content
Glama
FoundZiGu

ragflow-mcp-server-fixed

by FoundZiGu

ragflow-mcp-server-fixed

中文说明

stdio MCPクライアント向けの修正版RAGFlow MCPサーバーです。

実行ファイル名 ragflow-mcp-server を維持しているため、クライアントはパッケージソースを変更するだけで元のパッケージから切り替えることができます。

この修正の内容

一部のRAGFlowデプロイメントでは、レガシーチャットエンドポイントからエラーが返されることがあります。例:

'NoneType' object is not subscriptable
required argument are missing: messages

このサーバーは以下の方法でこれを処理します:

  • RAGFlow HTTP APIを直接呼び出す

  • ストリームレスポンスを防御的に解析する

  • 必要に応じてOpenAI互換のRAGFlowエンドポイントへフォールバックする

  • RAGFlowからのエラーメッセージをより明確に返す

ツール

ツール

目的

list_datasets

RAGFlowのデータセットを一覧表示する。

create_chat

データセット用のチャットアシスタントとセッションを作成する。

chat

create_chat で返されたセッションで質問する。

ask_configured_chat

サーバーで設定されたRAGFlowチャットアシスタントに直接質問する。

retrieve

データセットから一致するチャンクを直接取得する。

ほとんどの用途では、 --default-chat-name または --default-chat-id を設定し、 ask_configured_chat を使用してください。

クイックスタート

{
  "command": "uvx",
  "args": [
    "--from",
    "git+https://github.com/FoundZiGu/ragflow-mcp-server-fixed.git@v0.1.2",
    "ragflow-mcp-server",
    "--api-key",
    "ragflow-REPLACE_WITH_YOUR_KEY",
    "--base-url",
    "http://<RAGFLOW_HOST>:9380",
    "--default-chat-name",
    "<CHAT_NAME>"
  ]
}

MCPクライアントが環境変数をサポートしている場合:

{
  "command": "uvx",
  "args": [
    "--from",
    "git+https://github.com/FoundZiGu/ragflow-mcp-server-fixed.git@v0.1.2",
    "ragflow-mcp-server"
  ],
  "env": {
    "RAGFLOW_API_KEY": "ragflow-REPLACE_WITH_YOUR_KEY",
    "RAGFLOW_BASE_URL": "http://<RAGFLOW_HOST>:9380",
    "RAGFLOW_DEFAULT_CHAT_NAME": "<CHAT_NAME>"
  }
}

可能な場合は名前の代わりにチャットIDを使用してください:

{
  "command": "uvx",
  "args": [
    "--from",
    "git+https://github.com/FoundZiGu/ragflow-mcp-server-fixed.git@v0.1.2",
    "ragflow-mcp-server",
    "--api-key",
    "ragflow-REPLACE_WITH_YOUR_KEY",
    "--base-url",
    "http://<RAGFLOW_HOST>:9380",
    "--default-chat-id",
    "<CHAT_ID>"
  ]
}

サーバーオプション

オプション

環境変数

説明

--api-key

RAGFLOW_API_KEY

RAGFlow APIキー。

--base-url

RAGFLOW_BASE_URL

RAGFlowのベースURL。

--default-chat-id

RAGFLOW_DEFAULT_CHAT_ID

ask_configured_chat 用の既存のRAGFlowチャットアシスタントID。

--default-chat-name

RAGFLOW_DEFAULT_CHAT_NAME

ask_configured_chat 用の既存のRAGFlowチャットアシスタント名。

--default-session-name

RAGFLOW_DEFAULT_SESSION_NAME

設定されたチャット用に作成されるセッション名。

ローカル開発

uv run ragflow-mcp-server --help
export RAGFLOW_API_KEY="ragflow-REPLACE_WITH_YOUR_KEY"
export RAGFLOW_BASE_URL="http://<RAGFLOW_HOST>:9380"
export RAGFLOW_DEFAULT_CHAT_NAME="<CHAT_NAME>"
uv run python tests/smoke_test.py

セキュリティ

  • APIキーをコミットしないでください。

  • シークレットには環境変数を使用することを推奨します。

  • ログ、スクリーンショット、公開されたIssue、またはチャットのトランスクリプトに表示されたキーはローテーションしてください。

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FoundZiGu/ragflow-mcp-server-fixed'

If you have feedback or need assistance with the MCP directory API, please join our Discord server