Cover image
Try Now
2025-04-14

3 years

Works with Finder

2

Github Watches

2

Github Forks

2

Github Stars

HiRAG-MCP

Python server implementing Model Context Protocol (MCP) for HiRAG.

Features

  • Naive RAG retrieval
  • HiRAG RAG retrieval

API

Tools

  • naive_search

    • Perform a naive search over the knowledge base.
    • Inputs:
      • query: The search query text
      • max_tokens (optional): Optional maximum tokens for the response
  • hi_search

    • Perform a hybrid search combining both local and global knowledge over the knowledge base. (default to use)
    • Inputs:
      • query: The search query text
      • max_tokens (optional): Optional maximum tokens for the response

Test

uv (recommended)

Make sure uv is installed, if not:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then create the virtual environment and install dependencies using uv as below:

uv venv
source .venv/bin/activate
uv sync

Running the server

Note that we already have a test folder and test.txt file, which are the results after indexing test.txt with hi_indexing_openai.py. You can directly use the following command to run the MCP server and test the tools:

mcp dev server.py

You can also use hi_indexing_openai.py to index your own text files. Remember to adjust the working_dir in config.yaml accordingly.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • Byaidu
  • Traducción de papel científico en PDF con formatos preservados - 基于 Ai 完整保留排版的 PDF 文档全文双语翻译 , 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 等服务 等服务 等服务 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 cli/mcp/docker/zotero

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

    Reviews

    2.3 (3)
    Avatar
    user_G3Y9Kw3y
    2025-04-25

    As a dedicated user of the hirag_mcp, I can confidently say that this tool by Dormiveglia-elf is a game-changer. It offers seamless integration and exceptional performance, making complex tasks much simpler. The intuitive interface and responsive design enhance productivity in every project I undertake. Highly recommended for anyone looking to streamline their workflow!

    Avatar
    user_frcXOhbZ
    2025-04-25

    I've been using hirag_mcp for a while now and I am thoroughly impressed. Created by Dormiveglia-elf, this application has surpassed my expectations with its seamless functionality and user-friendly interface. It truly makes the most out of its capabilities, providing an excellent experience for all users. Highly recommended!

    Avatar
    user_YAghOTh0
    2025-04-24

    As a dedicated user of hirag_mcp, I must say this application by Dormiveglia-elf truly stands out. Its intuitive design and seamless integration make it a must-have for anyone in need of a reliable tool. The welcome information eases the onboarding process, making it user-friendly right from the start. Highly recommend!