MCP Agentic Rag
M

MCP Agentic Rag

This project implements an MCP server and client for building intelligent agent applications based on Retrieval Augmented Generation (RAG). The server provides tools such as entity extraction, query optimization, and relevance checking, and the client demonstrates how to connect to the server and use these tools to enhance the performance of the RAG system.
2.5 points
8.7K

What is the MCP Agentic RAG Server?

This is a backend service for an intelligent Q&A system that can understand user questions and automatically optimize the search process. It improves the quality of answers by extracting key information from questions, optimizing query statements, and filtering out irrelevant content.

How to use the MCP Agentic RAG Server?

Simply start the server and send questions through the client, and the system will automatically handle the optimization process. You can also directly call specific functions such as entity extraction or relevance checking.

Use Cases

Suitable for scenarios that require precise answers to complex questions, such as customer service systems, knowledge base queries, and research material retrieval.

Main Features

Intelligent Entity Extraction
Automatically identify key entities (such as people's names, organizations, and times) in questions to help retrieve relevant information more accurately
Query Optimization
Rewrite and optimize the user's original query to make it more suitable for the information retrieval system
Relevance Checking
Evaluate the relevance of retrieval results to the question and filter out irrelevant content
Advantages
Improve the accuracy of the Q&A system
Reduce irrelevant retrieval results
Support multiple natural language queries
Easy to integrate into existing systems
Limitations
Dependent on the OpenAI API service
More time is required to process complex queries
Support for Chinese needs to be improved

How to Use

Install Dependencies
Ensure that Python 3.7+ and the required dependency packages are installed
Configure the Environment
Copy the .env.sample file to .env and set your OpenAI API key
Start the Server
Run server.py to start the MCP service
Use the Client
Run mcp-client.py to test the service or integrate it into your application

Usage Examples

Academic Research Query
Search for academic materials in a specific field
Business Information Retrieval
Obtain company financial and market information

Frequently Asked Questions

What kind of hardware configuration is required?
Which languages are supported?
How to handle private data?

Related Resources

GitHub Repository
Project source code and latest updates
OpenAI Documentation
OpenAI API usage guide
MCP Protocol Description
Official documentation of the Model Context Protocol

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
5.9K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
4.5K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
6.2K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.4K
5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
9.1K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
10.6K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
20.6K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.3K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.4K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.3K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.3K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
47.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase