RAG Query MCP Server
Provides document query capabilities using a hybrid retrieval RAG pipeline with Google's Gemini for generation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RAG Query MCP ServerWhat is the company's policy on remote work?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RAG Pipeline
Hybrid-retrieval RAG (dense + BM25 sparse fused in Pinecone, Jina reranking, Gemini generation) over a single document.
Setup
pip install -r requirements.txtCreate a .env in the project root:
GOOGLE_API_KEY=your_key
PINECONE_API_KEY=your_key
PINECONE_INDEX_NAME=rag-hybrid
JINA_API_KEY=your_key
API_KEY=your_choice # protects the FastAPI endpointRelated MCP server: PDF MCP Server
Ingest (run once before querying)
Chunks and embeds data/*.pdf into Pinecone, and fits the BM25 index.
python ingest.pyRun the endpoints
All three answer questions through the same pipeline.
1. CLI (ask.py)
python ask.py "What is the standard meal expense cap during business travel at Texazdi X?" # one-shot
python ask.py # interactive prompt2. HTTP API (app.py, FastAPI)
python -m uvicorn app:app --host 127.0.0.1 --port 8000Then query it (send the API_KEY from your .env as the x-api-key header):
curl -X POST http://127.0.0.1:8000/query \
-H "Content-Type: application/json" \
-H "x-api-key: your_choice" \
-d '{"question": " How many days of paid annual leave can be carried over to the next year, and what is the total annual leave allotment?"}'Health check: GET http://127.0.0.1:8000/health
3. MCP server (mcp_server.py)
Exposes a query_documents tool over MCP (stdio):
python mcp_server.pyEvaluation (optional)
python -m evals.evaluateThis server cannot be installed
Maintenance
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
- Alicense-qualityDmaintenanceEnables intelligent search and question-answering over PDF documents using semantic similarity and keyword search. Supports OCR for scanned PDFs, persistent vector storage with ChromaDB, and maintains source tracking with page numbers.Last updated5MIT
- Flicense-qualityDmaintenanceEnables AI-powered querying of PDF documents using hybrid retrieval (BM25 + vector search) and retrieval-augmented generation, returning structured answers with source citations and confidence scores.Last updated
- Flicense-qualityFmaintenanceEnables semantic search across documentation stored in Gemini FileSearchStores, returning AI-generated answers with source citations.Last updated1
- Flicense-qualityCmaintenanceEnables searching a knowledge base and asking grounded questions with hybrid retrieval, reranking, and cited answers.Last updated
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Query any docs site via MCP. Submit a URL, ask questions, get cited answers.
Semantic search across 50,000+ food recipes with hybrid retrieval and reranking.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Akashbakshi99/RAG-Using-LangChain-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server