Skip to main content
Glama
Sujith29k

MCP RAG Server

by Sujith29k

MCP Platform — Retrieval-Augmented Q&A

End-to-end RAG over local PDFs using FAISS, an MCP retrieval server, a FastAPI MCP client, OpenAI, and a small web UI.

Architecture

PDFs in /docs
    │
    ▼
MCP server (:8001/mcp)
  - embed + FAISS index (cached under /data/faiss_index)
  - tools: ensure_index, search_documents, list_documents, index_status
    │  Streamable HTTP (MCP)
    ▼
FastAPI backend (:8000)
  - on boot: ensure_index via MCP
  - LangGraph: retrieve → generate (OpenAI)
  - HTTP API for the UI
    │
    ▼
Frontend (/)

Related MCP server: ragi

Requirements

  • Python 3.10+ (3.12 recommended; MCP does not support 3.9)

  • An OpenAI API key

Setup

python -m venv .venv

# Windows
.venv\Scripts\activate

# macOS / Linux
source .venv/bin/activate

pip install -r requirements.txt
copy .env.example .env   # or: cp .env.example .env

Put your OpenAI key in .env, then generate sample PDFs (optional):

python scripts/make_sample_pdfs.py

Drop any other .pdf files into docs/.

Run

Start the MCP server first:

python -m mcp_server.server

In a second terminal (venv activated):

python -m backend.main

Open http://127.0.0.1:8000.

API

Method

Path

Purpose

GET

/api/health

Backend + MCP status

GET

/api/documents

List PDFs

POST

/api/reindex?force=true

Rebuild FAISS index

POST

/api/ask

{"question":"..."} → answer + sources

Notes

  • Indexing runs automatically on MCP/backend startup when the PDF fingerprint changes; otherwise the on-disk FAISS index is reused.

  • Answers are grounded in retrieved chunks; the model is instructed to say it does not know when context is insufficient.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    MCP server for document ingestion and semantic search on Qdrant. Enables ingesting local documents, generating embeddings with OpenAI, and performing vector search with metadata filters.
    Last updated
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Local-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.
    Last updated
    3
    25
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).
    Last updated
    37
    36
    MIT

View all related MCP servers

Related MCP Connectors

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

  • Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.

  • Remote ChromaDB vector database MCP server with streamable HTTP transport

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sujith29k/MCP-RAG'

If you have feedback or need assistance with the MCP directory API, please join our Discord server