Agentic RAG MCP Server

Agentic RAG MCP Server

mcp-agentic-rag•byrukshannet

An MCP server exposing RAG-enhancement tools such as entity extraction, query refinement, and relevance checking, with a demonstration client.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Extracts entities from a text query using OpenAI to identify key entities that can improve document retrieval.
  • •Refines a text query using OpenAI to improve query quality and retrieval results.
  • •Checks the relevance of a text chunk to a question using an LLM to filter out irrelevant retrieved documents.
  • •Returns the current date and time with a prefix.

BEST FOR

  • •Developers building agentic RAG pipelines who want query refinement and entity extraction as callable tools.
  • •Filtering retrieval results by judging whether each text chunk is relevant to the user's question.

ABOUT MCP-AGENTIC-RAG

Agentic RAG MCP Server is cataloged as an MCP server attributed to rukshannet. An MCP server exposing RAG-enhancement tools such as entity extraction, query refinement, and relevance checking, with a demonstration client. It is categorized under ai agents-models. 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: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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 Agentic RAG 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

What tools does the server expose?

It exposes get_time_with_prefix, extract_entities_tool, refine_query_tool, and check_relevance.

Does the repository include a client for the server?

Yes, it includes a client that demonstrates connecting to the server, listing tools, calling a tool with arguments, and processing a query using OpenAI and available MCP tools.

Upstream README

View this exact version on GitHub

README.md · a4a4e0926df8 · Fetched 2026-11-13 10:37:31 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-agentic-rag

Overview

This project implements an MCP (Model Context Protocol) server and client for building agentic RAG (Retrieval-Augmented Generation) applications. The server provides a set of tools that can be used to enhance the performance of RAG systems, such as entity extraction, query refinement, and relevance checking. The client demonstrates how to connect to the server and use its tools.

Server (server.py)

The server is implemented using the FastMCP class from the mcp library. It exposes the following tools:

  • get_time_with_prefix: Returns the current date and time.
  • extract_entities_tool: Extracts entities from a given text query using OpenAI. This tool can be used to identify key entities in a user's query, which can then be used to improve the retrieval of relevant documents.
  • refine_query_tool: Refines a given text query using OpenAI. This tool can be used to improve the quality of a user's query, which can then be used to improve the retrieval of relevant documents.
  • check_relevance: Checks the relevance of a text chunk to a given question using an LLM. This tool can be used to filter out irrelevant documents from the retrieval results.

Client (mcp-client.py)

The client demonstrates how to connect to the MCP server and use its tools. It uses the ClientSession class from the mcp library to establish a connection with the server. The client provides examples of how to:

  • Connect to the server
  • List available tools
  • Call a specific tool with arguments
  • Process a query using OpenAI and available MCP tools

Requirements

  • Python 3.7+
  • openai
  • mcp
  • dotenv

Installation

  1. Clone the repository:

    git clone https://github.com/rukshanet/mcp-agentic-rag.git
    
  2. Install the dependencies:

    pip install -r requirements.txt
    
  3. Configure the environment variables:

    • Create a .env file based on the .env.sample file.
    • Set the OPENAI_MODEL_NAME environment variable to the name of the OpenAI model you want to use.

Usage

  1. Start the MCP server:

    python server.py
    
  2. Run the MCP client:

    python mcp-client.py
    

License

MIT

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 Agentic RAG 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/mcp-agentic-rag)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent