MCP Server RAG
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Model Context Protocol Server for Retrieval-Augmented Generation (RAG).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| health_checkB | 检查 RAG MCP 服务基础运行状态。 |
| rag_list_kbsA | 枚举所有已创建的知识库清单及其文档数、切片统计与更新时间。 |
| rag_doctorA | 全维自检诊断探针,检查存储引擎连通性、本地模型配置、磁盘占用与系统环境。 |
| rag_searchA | 在指定知识库或跨多个知识库中执行向量语义检索与原生 FTS 倒排混合检索(RRF 融合)。 |
| rag_query_with_contextA | 检索知识库相关上下文并组装为带来源引用的 Markdown 增强提示词。 |
| rag_create_kbA | 创建新的知识库命名空间与底层向量存储集合。 |
| rag_clear_kbA | 清空指定知识库中的所有文档与切片数据,但保留知识库本身的基础配置与元数据。 |
| rag_delete_kbB | 物理销毁指定知识库及其关联的所有文档元数据与向量索引集合。 |
| rag_delete_documentA | 从指定知识库中物理删除特定文档及其所有切片与向量索引。 |
| rag_index_textA | 对单段纯文本内容进行切片、计算高维向量嵌入并持久化索引到指定知识库中。 |
| rag_index_fileA | 摄取本地单个文件,自动识别文件格式并进行结构感知切片、向量嵌入与持久化索引。 |
| rag_index_directoryA | 批量扫描并摄取本地目录下的所有文件,支持递归遍历与 max_files 超时防御截断。 |
| rag_index_urlA | 通过 HTTP 请求抓取在线网页或在线文档,清洗 HTML 视觉噪点并进行向量索引。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Most tools are clearly separated by resource and action, and the index_* family (text/file/url/directory) is well differentiated by input source. Two mild overlaps remain: health_check vs rag_doctor (the doctor is essentially a superset of the health check) and rag_clear_kb vs rag_delete_kb, though the descriptions do explain the clear-vs-destroy distinction.
Eleven of thirteen tools follow a predictable rag_ + verb_noun pattern (rag_create_kb, rag_index_file, rag_search, rag_delete_document), which makes the set easy to scan. The two outliers, health_check (noun_verb, no rag_ prefix) and rag_doctor (no verb at all), break the pattern but are memorable and unlikely to be misread.
Thirteen tools is squarely in the sweet spot for a RAG server, with each tool covering a distinct ingestion, retrieval, or KB-management operation. No obvious padding: even the health/diagnostic pair serves an operational purpose.
CRUD for knowledge bases and four ingestion paths plus retrieval are well covered, but there is no tool to list or read back documents in a KB (no rag_list_documents / rag_get_document) and no way to update KB metadata such as description or visibility. Agents can partially work around this via search, but inspection and update workflows hit dead ends.