Model Context Protocol Server
🚀 MCP サーバーを使用した Agentic RAG 
✨ 概要

Agentic RAG with MCP Server は、 Agentic RAG (Retrieval-Augmented Generation) アプリケーションを構築するために MCP (Model Context Protocol) サーバーとクライアントを統合する強力なプロジェクトです。
このセットアップにより、次のような高度なツールが RAG システムに導入されます。
🕵️♂️エンティティ抽出
🔍クエリの絞り込み
✅関連性チェック
サーバーはこれらのインテリジェント ツールをホストし、クライアントはそれらをシームレスに接続して活用する方法を示します。
Related MCP server: MCP-RAGNAR
🖥️ サーバー — server.py
mcpライブラリのFastMCPクラスを活用したこのサーバーは、次のような便利なツールを公開します。
ツール名 | 説明 | アイコン |
| 現在の日付と時刻を返します | ⏰ |
| OpenAIを使用してクエリからエンティティを抽出し、ドキュメント検索の関連性を高めます。 | 🧠 |
| OpenAIを活用した改良によりユーザークエリの品質を向上 | ✨ |
| LLMでチャンクの関連性をチェックして無関係なコンテンツを除外します | ✅ |
🤝 クライアント — mcp-client.py
クライアントは、MCP サーバーに接続して対話する方法を示します。
mcpライブラリからClientSessionとの接続を確立する利用可能なすべてのサーバーツールを一覧表示する
カスタム引数で任意のツールを呼び出す
OpenAI または Geminiと MCP ツールを連携して活用してクエリを処理する
⚙️ 要件
Python 3.9以上
openaiPythonパッケージmcpライブラリ環境変数管理のための
python-dotenv
🛠️ インストールガイド
# Step 1: Clone the repository
git clone https://github.com/ashishpatel26/Agentic-RAG-with-MCP-Server.git
# Step 2: Navigate into the project directory
cd Agentic-RAG-with-MCP-Serve
# Step 3: Install dependencies
pip install -r requirements.txt🔐 構成
.envファイルを作成する (.env.sampleをテンプレートとして使用).envで OpenAI モデルを設定します。
OPENAI_MODEL_NAME="your-model-name-here"
GEMINI_API_KEY="your-model-name-here"🚀 使い方
MCP サーバーを起動します。
python server.pyMCP クライアントを実行します。
python mcp-client.py📜 ライセンス
このプロジェクトはMIT ライセンスに基づいてライセンスされています。
読んでくれてありがとう🙏
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Ingest, manage, and retrieve documents for RAG-powered AI applications
The CustomGPT.ai MCP server is a fully managed, RAG-powered endpoint that connects large language models with private knowledge bases and external data sources. It provides tools for retrieval-augmented generation queries (send_message), data ingestion (upload_file), and source listing, enabling AI agents to query private documents like PDFs with high accuracy and real-time citations.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn intelligent codebase processing server that provides agentic RAG capabilities for code repositories, enabling semantic search and contextual understanding through self-evaluating retrieval loops.2MIT
- AlicenseNot gradedqualityDmaintenanceA local RAG server that enables document indexing and sentence window retrieval across multiple file formats like PDF, MD, and DOCX. It supports both local Hugging Face models and OpenAI embeddings for efficient context-aware querying through the Model Context Protocol.GPL 3.0
- FlicenseNot gradedqualityDmaintenanceThe MCP server provides tools for entity extraction, query refinement, and relevance checking to enhance RAG applications by integrating with OpenAI and Gemini.-
- AlicenseNot gradedqualityDmaintenanceRAGX MCP Server enables retrieval-augmented generation with document ingestion, hybrid search, and agentic answering using Claude, exposing tools for querying, searching, and managing documents.2MIT