ragflow-mcp

ragflow-mcp is a skill for Claude Code from infiniflow/ragflow. It costs 79 tokens per session (855 once invoked), scanned A, original, Apache-2.0.

A bridge that lets a coding agent use RAGFlow through MCP, a standard way for applications to call tools. RAGFlow is a service that searches document collections and returns relevant passages.

In plain words
What is it for?
Use it when an agent needs grounded answers based on documents stored in RAGFlow.
Why use it?
It avoids writing a custom integration for each agent and explains how to connect securely to local or remote RAGFlow servers. The connection can expose dataset listing, chat listing, and retrieval tools.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ragflow plugin — 3 skills, 1 MCP server shipped together

Good fit Use it when an agent needs grounded answers based on documents stored in RAGFlow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infiniflow/ragflow/ragflow-mcp
About the project

RAGFlow is an open-source Retrieval-Augmented Generation engine that combines document retrieval, context management, and agent capabilities to help build AI applications. Developers use it to turn complex data into searchable, context-aware systems through workflows, datasets, and agent templates; the catalogue entries support working with RAGFlow.

infiniflow/ragflow · 95,209 stars · on GitHub · ragflow.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add infiniflow/ragflow --skill ragflow-mcp
Clone the repo
git clone --depth 1 https://github.com/infiniflow/ragflow

Made for: Claude Code.

Or install ragflow, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ragflow-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/infiniflow/ragflow/ragflow-mcp/github.svg)](https://agentmods.dev/skills/infiniflow/ragflow/ragflow-mcp)
Your own site
<a href="https://agentmods.dev/skills/infiniflow/ragflow/ragflow-mcp"><img src="https://agentmods.dev/badge/skills/infiniflow/ragflow/ragflow-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ragflow-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/infiniflow/ragflow/ragflow-mcp"><img src="https://agentmods.dev/badge/skills/infiniflow/ragflow/ragflow-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00855
Opus 5.5 $0.00032 $0.00342
Sonnet 5.5 $0.00016 $0.00171
Haiku 4.5 $0.00008 $0.00085

Measured 3d ago against content hash 28b03b49e35e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ragflow-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ragflow/skills/ragflow-mcp/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RAGFlow over MCP

References: docs/develop/mcp/use_ragflow_as_mcp_server.md, docs/develop/mcp/mcp_tools.md, docs/develop/mcp/mcp_client_example.md.

Endpoints

Endpoint Notes
POST http://<host>:9380/api/v1/mcp Always on with the Go API. Streamable HTTP. Each client sends Authorization: Bearer <RAGFlow API key>. No SSE.
http://<host>:9382/mcp (optional listener) Enable with mcp.enabled / RAGFLOW_MCP_ENABLED=true. Legacy SSE at /sse + /messages/ if enabled.

The plugin's .mcp.json points at http://127.0.0.1:9380/api/v1/mcp and reads the key from RAGFLOW_API_KEY. Change the URL for a remote server.

Listener auth modes

  • host: every request authenticates as its own client (Bearer, X-API-Key, Api-Key or api_key headers). Prefer this when several people connect.
  • self-host (default): all clients act as the user of RAGFLOW_MCP_HOST_API_KEY; startup fails if it is empty. Only for trusted clients.

In Docker, setting RAGFLOW_MCP_HOST=0.0.0.0 alone does not publish the listener. Ensure SVR_MCP_PORT=9382 is set in docker/.env (it is in the shipped file), then uncomment the MCP port mapping in docker/docker-compose.yml (127.0.0.1:${SVR_MCP_PORT}:${RAGFLOW_MCP_PORT:-9382}) so host port 9382 binds to localhost, and recreate the container (docker compose up -d --force-recreate). Connect locally at http://127.0.0.1:9382/mcp. In default self-host mode any client that can reach the published port acts as the configured user; a TLS proxy does not block that HTTP port. Only publish beyond localhost with network restrictions, and for remote clients terminate TLS with a reverse proxy or tunnel and point .mcp.json at an https:// URL. Keep keys out of command lines and committed files.

Tools

  • ragflow_list_datasets(page=1, page_size<=100): one JSON object per line with id, name, description.
  • ragflow_list_chats(page=1, page_size<=100): same shape for chat assistants.
  • ragflow_retrieval(question, dataset_ids?, document_ids?, page, page_size, similarity_threshold=0.2, vector_similarity_weight=0.3, keyword=false, top_k=1024, rerank_id?): omitting dataset_ids searches every accessible dataset. Returns JSON with chunks, pagination and query_info.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 71 lines · 79 tokens per session scan A 28b03b49e35e

Subscribe to this mod's changes

ragflow-mcp is a skill published in the GitHub repository infiniflow/ragflow (95,209 stars, last pushed today), licensed Apache-2.0. It adds 79 tokens to every session and 855 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

ragflow-mcp compared with skills from other repositories

ragflow-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ragflow-mcpinfiniflow/ragflowSkill95ktodayApache-2.0A79Claude Code
ragericrisco/rsc-harnessSkill7093d agoMITA79Claude Code, Codex
pinecone-quickstartpinecone-io/pinecone-cursor-pluginSkill323d agoMITA94Cursor
pinecone-n8npinecone-io/pinecone-cursor-pluginSkill323d agoMITA67Cursor
pinecone-full-text-searchpinecone-io/pinecone-cursor-pluginSkill323d agoMITA179Cursor
pinecone-clipinecone-io/pinecone-cursor-pluginSkill323d agoMITA74Claude Code, Cursor
pinecone-helppinecone-io/pinecone-cursor-pluginSkill323d agoMITA52Cursor