ragflow-mcp-server-fixed
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からのエラーメッセージをより明確に返す
ツール
ツール | 目的 |
| RAGFlowのデータセットを一覧表示する。 |
| データセット用のチャットアシスタントとセッションを作成する。 |
|
|
| サーバーで設定されたRAGFlowチャットアシスタントに直接質問する。 |
| データセットから一致するチャンクを直接取得する。 |
ほとんどの用途では、 --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>"
]
}サーバーオプション
オプション | 環境変数 | 説明 |
|
| RAGFlow APIキー。 |
|
| RAGFlowのベースURL。 |
|
|
|
|
|
|
|
| 設定されたチャット用に作成されるセッション名。 |
ローカル開発
uv run ragflow-mcp-server --helpexport 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、またはチャットのトランスクリプトに表示されたキーはローテーションしてください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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