MCP Catalogs
首页

knowledge-rag

by lyonzin·79·综合分 48

Knowledge RAG 是一个本地优先的检索增强生成系统,提供 12 个 MCP 工具,支持 20+ 种文件格式的文档搜索和检索。

developer-toolssearchai-llm
14
Forks
6
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Knowledge RAG 是一个完整的本地优先检索增强生成系统,能够在不依赖任何外部服务器或 API 密钥的情况下,即时搜索各种格式的文档。它实现了混合搜索,结合 BM25 关键词搜索、语义向量和交叉编码器重排序,以提供高精度结果。该系统使用 Python 和 FastMCP 框架构建,提供 12 个 MCP 工具,用于完整的 CRUD 操作、搜索、评估和文档管理。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:在代码仓库、研究论文和知识库中进行本地文档搜索
:开发人员的知识管理工具,可实时搜索项目文件
:研究工具,可分析大量文档而无需依赖云端
:支持哪些文件格式?
:它是否真的完全本地运行,没有云依赖?

什么时候选它

选择它用于本地优先的文档搜索,当您需要隐私、无网络连接或想避免API费用时。

什么时候不要选它

避免使用此工具,如果您需要实时协作功能或需要搜索存储在云服务中的文档。

此 server 暴露的工具

从 README 抽取出 11 个工具
  • searchquery: str

    Search through indexed documents using hybrid search with semantic and keyword matching

  • getdoc_id: str

    Retrieve a specific document by its ID

  • addpath: str

    Add a new document to the index

  • updatepath: str

    Update an existing document in the index

  • removepath: str

    Remove a document from the index

  • reindex

    Rebuild the entire index from scratch

  • list

    List all documents in the index

  • stats

    Get statistics about the index

  • urlurl: str

    Index content from a web URL

  • similardoc_id: str

    Find documents similar to a reference document

  • evaluate

    Evaluate retrieval performance with MRR@5 and Recall@5 metrics

可对比工具

semantic-search-mcplocal-mcp-serverllamaindex-mcp

安装

通过 pip 安装 knowledge-rag:

pip install knowledge-rag

对于 Claude Desktop,添加到你的 claude_desktop_config.json 中:

{
  "mcpServers": {
    "knowledge-rag": {
      "command": "python",
      "args": ["-m", "knowledge_rag.server"],
      "env": {}
    }
  }
}

也通过 NPM、Docker 和单行安装程序提供。

FAQ

支持哪些文件格式?
Knowledge RAG 支持 20+ 种格式,包括 PDF、Markdown、Python 代码、Word 文档、Excel 文件、Jupyter 笔记本以及各种编程语言(C++、JavaScript、TypeScript 等)。
它是否真的完全本地运行,没有云依赖?
是的,所有处理都通过 ONNX 在本地运行。无需服务器、API 密钥,数据也不会离开您的机器。

Hacker News 讨论

开发者社区最近的相关讨论。

knowledge-rag 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。