mcp_server
Click on "Deploy 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., "@mcp_serverWhat vector store does the RAG pipeline use?"
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 Assistant — Groq + LangChain + MCP (2026 architecture)
An AI Engineer reference project: a Retrieval-Augmented Generation app with a governance layer, MCP exposure, and CI/CD deployment to Azure App Service.
Stack
Layer | Choice |
LLM | Groq API ( |
Orchestration | LangChain |
Embeddings |
|
Vector store | FAISS, local file-based index (no SQL/DB server) |
Frontend | Streamlit |
Governance | Presidio (PII redaction) + moderation + JSONL audit log |
Agent interop | MCP server exposing |
CI/CD | GitHub Actions → Azure App Service (no Kubernetes) |
Related MCP server: consulting-mcp-server
Architecture
┌─────────────────────┐
│ Streamlit UI │
│ (app.py) │
└──────────┬───────────┘
│
┌───────────────▼────────────────┐
│ Governance Layer │
│ (PII redaction, moderation, │
│ audit logging) │
└───────────────┬────────────────┘
│
┌──────────────────────┼───────────────────────┐
│ │ │
┌──────────▼─────────┐ ┌─────────▼─────────┐ ┌──────────▼─────────┐
│ Chunking │ │ Embeddings │ │ Vector Store (FAISS) │
│ (rag/chunking.py) │ │ (rag/embeddings.py)│ │ (rag/vector_store.py)│
└──────────┬─────────┘ └─────────┬─────────┘ └──────────┬─────────┘
│ │ │
└──────────────────────┴────────────┬───────────┘
│
┌──────────▼─────────┐
│ Retriever │
└──────────┬─────────┘
│
┌──────────▼─────────┐
│ Groq LLM Generator │
└─────────────────────┘
MCP Server (mcp/mcp_server.py) exposes the same pipeline as a
`rag_query` tool for external agents/clients.Setup
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # then add your GROQ_API_KEYRun locally
streamlit run app.pyRun the MCP server
python -m mcp.mcp_serverRun tests
pytest tests/ -vDeploy to Azure
Create an Azure App Service (Linux, Python 3.11 runtime).
Set the Startup Command to
bash startup.sh.In App Service → Configuration → Application settings, add
GROQ_API_KEYand any other values from.env.example.In your GitHub repo, add:
Secret
AZURE_CREDENTIALS(a service-principal JSON fromaz ad sp create-for-rbac --sdk-auth).Variable
AZURE_WEBAPP_NAMEwith your App Service name.
Push to
main—.github/workflows/azure-deploy.ymlbuilds, tests, and deploys.
Notes on scope
No SQL database — the vector index is a local FAISS file persisted to
data/vector_store/. Swap in a managed vector DB later if you need multi-instance scaling.No Kubernetes — deployment target is Azure App Service (PaaS), which is simpler to operate for a single-container Streamlit app. Move to AKS only if you need pod-level autoscaling or a multi-service mesh.
This server cannot be deployed
Maintenance
Related MCP Connectors
Ingest, manage, and retrieve documents for RAG-powered AI applications
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Related MCP Servers
FlicenseNot gradedqualityBmaintenanceEnables RAG-powered documentation search using OpenAI embeddings and Pinecone vector database. Provides an extensible framework for adding additional tools with support for both local STDIO and production HTTP transports.1-- AlicenseNot gradedqualityBmaintenanceExposes RAG and document intelligence pipelines as 8 composable tools for MCP-compatible clients, enabling querying, indexing, classifying, extracting, and assessing documents.1MIT
- FlicenseNot gradedqualityBmaintenanceExposes a Retrieval-Augmented Generation pipeline as MCP tools, allowing users to index documents and query them through any MCP-compatible client like Claude or IDEs.-
- AlicenseNot gradedqualityBmaintenanceExposes document ingestion, retrieval (vector, vectorless, hybrid), and multi-turn chat tools for a LangGraph-powered RAG pipeline with streaming answers.3MIT