MCP.so
登录

MCP Agentic Rag

@rukshannet

基本信息

分类

推理

传输方式

stdio

作者

rukshannet

关于 MCP Agentic Rag

MCP Server for Agentic RAG applications

MCP Agentic Rag 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-agentic-rag": {
      "command": "python",
      "args": [
        "server.py"
      ]
    }
  }
}

MCP Agentic Rag 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-agentic-rag?

mcp-agentic-rag is an MCP server and client implementation for building agentic Retrieval-Augmented Generation (RAG) applications. It exposes tools that enhance RAG performance, such as entity extraction, query refinement, and relevance checking.

How to use mcp-agentic-rag?

Clone the repository, install dependencies (pip install -r requirements.txt), configure the OPENAI_MODEL_NAME environment variable in a .env file, then start the server with python server.py and run the client with python mcp-client.py.

Key features of mcp-agentic-rag

  • Exposes tools for entity extraction, query refinement, and relevance checking.
  • Uses OpenAI models for LLM-based operations.
  • Built with FastMCP from the mcp library.
  • Client demonstrates connection, tool listing, and tool invocation.
  • Supports environment-based configuration via .env file.

Use cases of mcp-agentic-rag

  • Improve document retrieval by extracting key entities from user queries.
  • Enhance query quality before retrieval with LLM-based refinement.
  • Filter irrelevant documents by checking relevance of text chunks to the question.
  • Build a complete agentic RAG pipeline with tool orchestration.

常见问题

1

What are the dependencies of mcp-agentic-rag?

The server requires Python 3.7+ and the packages `openai`, `mcp`, and `dotenv`.

2

How do I configure the server?

Create a `.env` file based on the provided `.env.sample` and set the `OPENAI_MODEL_NAME` environment variable to the desired OpenAI model.

3

What tools does the server provide?

The server provides four tools: `get_time_with_prefix`, `extract_entities_tool`, `refine_query_tool`, and `check_relevance`.

4

How do I start and interact with the server?

Start the server with `python server.py`. Run the client with `python mcp-client.py` to connect, list tools, and call them with arguments.

5

Does the server require an OpenAI API key?

Yes, the tools that use OpenAI (entity extraction, query refinement, relevance checking) require the `OPENAI_MODEL_NAME` environment variable to be set, which implies an OpenAI API key must be configured in the environment or `.env` file.

评论

推理 分类下的更多 MCP 服务器