RAGFlow Knowledge MCP Server

RAGFlow Knowledge MCP Server

ragflow-knowledge-mcp-server•bylumerix7

A Python-based Model Context Protocol server that provides tools to search and inspect RAGFlow knowledge bases.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides dynamic per-dataset knowledge search tools configurable with custom names and descriptions.
  • •Can list knowledge bases with pagination, when enabled.
  • •Can retrieve information about a specified knowledge base ID, when enabled.
  • •Supports both stdio and SSE transports.

BEST FOR

  • •Agents needing to search the contents of specific RAGFlow knowledge bases.
  • •Users who want to browse or inspect RAGFlow knowledge bases through an MCP client.

ABOUT RAGFLOW-KNOWLEDGE-MCP-SERVER

RAGFlow Knowledge MCP Server is cataloged as an MCP server attributed to lumerix7. A Python-based Model Context Protocol server that provides tools to search and inspect RAGFlow knowledge bases. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for RAGFlow Knowledge MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which RAGFlow versions does this server support?

It lists support for RAGFlow versions 0.17.2 through 0.19.0.

Which transports can the server use?

It can use stdio or SSE, with stdio as the default.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 13beab5187a6 · 采集于 2026-11-13 11:35:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

ragflow-knowledge-mcp-server

Project Overview:

A simple MCP server of knowledge base for RAGFlow.

This project is a Python-based MCP (Model Context Protocol) server for RAGFlow knowledge bases. It provides a set of tools to interact with RAGFlow, allowing users to search for knowledge, list available knowledge bases, and retrieve information about specific knowledge bases. The server is built using the mcp library and can be configured to use either stdio or sse for transport. The server is configured through a YAML file (config.yaml) and environment variables.

Supported RAGFlow versions: 0.17.2 ~ 0.19.0

See also infiniflow/ragflow/blob/main/mcp/server/server.py

1. Available tools

1. Dynamic knowledge base searching tools

Enable dynamic knowledge base searching tools in config.yaml, see also Server configurations:

datasets:
  - dataset-id: 00000000000000000000000000000000
    search-tool-name: search_xxx_knowledge
    #search-tool-description: "Search knowledge about XXX(中文说明)."
    #search-tool-result: simple
    search-tool-description: "Search knowledge about XXX(中文说明). Results in JSON format, knowledge in the 'content' property."
    search-tool-result: json

2. list_knowledge_bases (default disabled)

Enable list_knowledge_bases tool in config.yaml:

list-bases-enabled: true
  • Default description: List knowledge bases.

  • Input properties:

    • page, str: The page number to list the bases for, optional, defaults to 1.
    • limit, str: The maximum number of knowledge bases to list, optional, defaults to 20.
    • timeout, int: Dynamic timeout parameter, enabled by timeout-param-enabled, optional, defaults to 60 seconds.

3. get_knowledge_base_info (default disabled)

Enable get_knowledge_base_info tool in config.yaml:

get-base-enabled: true
  • Default description: Get information of the specified knowledge base ID, results including the knowledge base name, description, and other information.

  • Input properties:

    • knowledge_base_id, str: The ID of the knowledge base to query.
    • timeout, int: Dynamic timeout parameter, enabled by timeout-param-enabled, optional, defaults to 60 seconds.

2. Install and run

2.1. Install using pip

# Uninstall the previous version
pip uninstall --yes ragflow-knowledge-mcp-server

pip install ragflow-knowledge-mcp-server --upgrade --force-reinstall --extra-index-url http://127.0.0.1:8081/repository/pypi-group/simple --trusted-host 127.0.0.1

2.2. Install from source

cd /path/to/project

pip install .

# Or install using pytools.sh
./pytools.sh reinstall-system

2.3. Run

export SIMP_LOGGER_LOG_FILE=/path/to/mcp.log
export SIMP_LOGGER_LOG_LEVEL=DEBUG

# This server can be run directly from the command line:
ragflow-knowledge-mcp-server --config=/path/to/config.yaml

# Alternatively, it can be run as a Python module:
python -m ragflow_knowledge_mcp_server --config=/path/to/config.yaml

# This server can also be run using `uv`:
uv run ragflow-knowledge-mcp-server --config=/path/to/config.yaml

2.4. Run with Docker or Docker Compose

  1. Docker

  2. Docker Compose

    • Modify the .env file.
    • Modify the config.yaml file.
    • Run docker/0.1.0/docker-compose-up-d.sh to start the container, modifying the startup script as needed or running manually.

2.4. Testing

# The project uses `pytest` for testing. To run the tests, first install the test dependencies:
python -m venv .venv
. .venv/bin/activate
uv sync --no-install-project --extra test

# Then run pytest:
pytest

3. Server configurations

  • YAML:

Example configurations yaml, for full configuration, see MCPServerProperties.py:

server-name: ragflow-knowledge-base

default-base-url: http://127.0.0.1:9388/api/v1
default-api-key: ragflow-00000000000000000000000000000000

timeout: 60
timeout-param-enabled: false

# SSE
transport: sse # Defaults to stdio
sse-port: 41106

list-bases-enabled: false
get-base-enabled: false

datasets:
  - dataset-id: 00000000000000000000000000000000
    search-tool-name: search_xxx_knowledge
    search-tool-description: "Search knowledge about XXX(中文说明). Results in JSON format, knowledge in the 'content' property."

  - enabled: false
    id-param-enabled: true
    search-tool-name: search_knowledge
    search-tool-description: "Search knowledge from specified knowledge base('knowledge_base_id')."

Or configures the base URL and API key for each dataset and tools:

server-name: ragflow-knowledge-base

timeout: 60
timeout-param-enabled: false

# SSE
transport: sse # Defaults to stdio
sse-port: 41106

list-bases-enabled: false
list-bases-base-url: http://127.0.0.1:9388/api/v1
list-bases-api-key: ragflow-00000000000000000000000000000000

get-base-enabled: false

datasets:
  - dataset-id: 00000000000000000000000000000000
    base-url: http://127.0.0.1:9388/api/v1
    api-key: ragflow-00000000000000000000000000000000
    # Other properties...
  • Available environment variables:
YamlEnvironment variable nameDefault valueDescription
RAGFLOW_KNOWLEDGE_MCP_SERVER_CONFIGconfig.yamlThe config file path, also available in CLI option --config=/path/to/config.yaml.
default-base-urlDEFAULT_RAGFLOW_KNOWLEDGE_BASE_URL-The default base URL for the knowledge base.
default-api-keyDEFAULT_RAGFLOW_KNOWLEDGE_API_KEY-The default API key for the knowledge base.
server-nameRAGFLOW_KNOWLEDGE_MCP_SERVER_NAMERAGFlow Knowledge BaseThe name of the MCP server.
transportRAGFLOW_KNOWLEDGE_MCP_SERVER_TRANSPORTstdioThe transport type. Can be stdio or sse.
sse-transport-endpointRAGFLOW_KNOWLEDGE_MCP_SERVER_SSE_TRANSPORT_ENDPOINT/messages/The SSE transport endpoint.
sse-bind-hostRAGFLOW_KNOWLEDGE_MCP_SERVER_SSE_BIND_HOST0.0.0.0The host to bind the SSE transport.
sse-portRAGFLOW_KNOWLEDGE_MCP_SERVER_SSE_PORT41106The port for the SSE transport.
sse-debug-enabledRAGFLOW_KNOWLEDGE_MCP_SERVER_SSE_DEBUG_ENABLEDFalseWhether to enable debug mode for SSE.
timeoutRAGFLOW_KNOWLEDGE_MCP_SERVER_TIMEOUT60The timeout for the server.
timeout-param-enabledRAGFLOW_KNOWLEDGE_MCP_SERVER_TIMEOUT_PARAM_ENABLEDFalseWhether to enable the timeout parameter.
timeout-param-descriptionRAGFLOW_KNOWLEDGE_MCP_SERVER_TIMEOUT_PARAM_DESCRIPTIONThe total timeout for one calling, in seconds, optional, defaults to {self.timeout} seconds.The description of the timeout parameter.
  • Available environment variables of simp-logger:
Variable nameDefault valueDescription
SIMP_LOGGER_LOG_FILE_ENABLEDTrueWhether to enable logging to file.
SIMP_LOGGER_LOG_CONSOLE_ENABLEDTrueWhether to enable logging to console.
SIMP_LOGGER_LOG_LEVELINFOThe log level.
SIMP_LOGGER_LOG_FILE~/logs/simp-logger.logThe log file path.
SIMP_LOGGER_LOG_PATTERN%(asctime)s %(levelname)s [%(threadName)s]: %(message)sThe log pattern.
SIMP_LOGGER_LOG_MAX_BYTES10485760 (10MB)The maximum size of the log file.
SIMP_LOGGER_LOG_BACKUP_COUNT5The number of backup files to keep.
SIMP_LOGGER_LOG_ROTATION_TYPEsizeThe type of log rotation. Can be size or time.
SIMP_LOGGER_LOG_ROTATION_WHENmidnightThe time of day to rotate the log file.
SIMP_LOGGER_LOG_ROTATION_INTERVAL1The interval for log rotation.
SIMP_LOGGER_LOG_CLEANUP_DISABLEDFalseWhether to disable logger cleanup.

4. MCP configurations

4.1. SSE

Example endpoint: http://127.0.0.1:41106/sse

4.2. stdio

Simple command line:

uv run ragflow-knowledge-mcp-server --config=/path/to/config.yaml

JSON:

{
  "ragflow-knowledge-base": {
    "type": "stdio",
    "command": "uv",
    "args": [
      "run",
      "ragflow-knowledge-mcp-server",
      "--config=/path/to/config.yaml"
    ],
    "env": {
      "SIMP_LOGGER_LOG_CONSOLE_ENABLED": false,
      "SIMP_LOGGER_LOG_FILE": "/path/to/mcp.log",
      "SIMP_LOGGER_LOG_LEVEL": "DEBUG"
    }
  }
}

YAML:

ragflow-knowledge-base:
  type: stdio
  command: uv
  args:
    - run
    - ragflow-knowledge-mcp-server
    - "--config=/path/to/config.yaml"
  env:
    SIMP_LOGGER_LOG_CONSOLE_ENABLED: false
    SIMP_LOGGER_LOG_FILE: /path/to/mcp.log
    SIMP_LOGGER_LOG_LEVEL: DEBUG

5. Development Conventions

  • The project follows the standard Python packaging conventions.
  • The code is organized into modules within the src/ragflow_knowledge_mcp_server directory.
  • The server logic is in server.py, configuration properties are defined in properties/MCPServerProperties.py, and the services for interacting with the RAGFlow API are in the service directory.
  • The project uses setuptools for building and setuptools_scm for versioning.
  • The project uses simp-logger for logging, which can be configured through environment variables.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for RAGFlow Knowledge MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ragflow-knowledge-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research