MCP-RAG: a modular RAG pipeline with an MCP server

MCP-RAG: a modular RAG pipeline with an MCP server

mcp-rag-sujithadr•bysujithadr

An MCP server that orchestrates GroundX semantic search, PDF ingestion, and OpenAI-based response generation for a retrieval-augmented generation pipeline.

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

WHAT IT DOES

  • •Offers document and search tools discoverable and invocable through the MCP server interface.
  • •Ingests PDF files into a GroundX vector store.
  • •Performs semantic search through the GroundX Search Tool and generates responses with OpenAI.
  • •Renders retrieved snippets through YAML-based Jinja2 prompt templates.

BEST FOR

  • •Teams building AI-driven applications that need reusable, modular RAG components.
  • •Searchers wanting to ingest a PDF and query its content through MCP tools.

ABOUT MCP-RAG-SUJITHADR

MCP-RAG: a modular RAG pipeline with an MCP server is cataloged as an MCP server attributed to sujithadr. An MCP server that orchestrates GroundX semantic search, PDF ingestion, and OpenAI-based response generation for a retrieval-augmented generation pipeline. 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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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 MCP-RAG: a modular RAG pipeline with an 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

How does a query flow through the system?

The MCP server receives the query, routes it to the Search Tool, which queries GroundX; snippets are rendered via a YAML prompt and OpenAI generates the final response.

What external services does it rely on?

It uses GroundX for semantic search, ingestion and vector store operations, and OpenAI GPT-4 for response generation.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8e4390a73cff · 采集于 2026-11-13 11:03:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP-RAG: Modular RAG Pipeline using MCP & GroundX

A production-ready Retrieval-Augmented Generation setup

License Python

🚀 Overview

MCP-RAG is a modular, production-grade implementation of a Retrieval-Augmented Generation (RAG) system, powered by:

  • 🧠 MCP (Model Context Protocol) for standardized tool orchestration
  • 🔍 GroundX for semantic search, ingestion, and vector store operations
  • 🤖 OpenAI GPT-4 for LLM-powered contextual response generation

It allows clean separation of responsibilities across ingestion, search, generation, and tool discovery — making it scalable, flexible, and enterprise-ready.

📌 Developed by Sujith Somanunnithan for teams building AI-driven applications with reusable components.


📦 Features

  • 🔧 Modular Tool Design using MCP server interface
  • 🧩 YAML-Based Prompt Templates with Jinja2 rendering
  • 📂 PDF File Ingestion into GroundX vector store
  • 🔍 Real-Time Semantic Search via GroundX Search Tool
  • 🤝 Plug-and-Play API Integration for new tools and services

📁 Project Structure

mcp-rag/
├── server.py                     # MCP Server initialization
├── config.py                     # Environment and config management
├── ingestion.py                  # File ingestion tool logic
├── search.py                     # Search + LLM generation logic
├── prompts.yaml                  # Prompt template in Jinja2
├── models.py                     # Pydantic models for configs
├── .env                          # API keys (excluded from version control)
├── pyproject.toml                # Project config for uv / MCP
├── README.md                     # This file

🧠 Architectural Flow

  1. User query arrives at the MCP server
  2. Server routes it to the Search Tool
  3. Search Tool queries GroundX API
  4. Snippets are rendered via YAML prompt
  5. OpenAI API generates final LLM response

🔄 All tools are discoverable and invocable via MCP dynamically.


🔑 Environment Setup

Create .env with your keys:

OPENAI_API_KEY=your-openai-key
GROUNDEX_API_KEY=your-groundx-key

Install using uv:

uv pip install -r pyproject.toml

⚙️ Usage

Start the server:

mcp dev server.py

Ingest a PDF:

mcp call ingest_documents --args '{"file_path": "data/sample.pdf"}'

Search with a query:

mcp call process_search_query --args '{"query": "What is explained in section 3?"}'

📌 Clean Separation of Concerns

RoleComponent
Tool discovery/invokeMCP Server
Search executionGroundX API
Response generationOpenAI API
File uploadIngest Tool (MCP)

📚 License

This project is licensed under the MIT License.


👨‍💻 Author

Sujith Somanunnithan
Cloud & AI Architect | sujith.de


💬 Feedback & Contributions

Feel free to raise issues, pull requests, or connect with the author for improvements or extensions (like multi-file ingestion, RAG fallback chains, etc).

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 MCP-RAG: a modular RAG pipeline with an 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-rag-sujithadr)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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