enterprise-rag-agent
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Enterprise RAG Agent
A production-shaped example of an enterprise AI agent: a LangGraph agent that answers questions over a company's internal policy documents (RAG), calls a mock enterprise ticketing system as a tool, returns structured/citable answers, and is exposed both as a REST API and as an MCP server so it can be plugged into Claude Desktop, Claude Code, or any other MCP client.
Why this project
Built as a portfolio project for enterprise/Forward-Deployed AI Engineer roles (e.g. SAP's FDE track). It demonstrates:
RAG: chunking, embedding, and retrieval over a real (if small) enterprise document set (expense, IT security, PTO policies).
Agentic orchestration: LangGraph
create_react_agentwith tool calling and a Pydantic structured output schema (answer + cited sources).MCP: the same tools (
search_policies,get_ticket_status) exposed as an MCP server (app/mcp_server.py), independent of the REST API.Enterprise integration shape: a mock ticketing-system tool standing in for a real backend (SAP, ServiceNow, Jira, etc.) call.
Provider-agnostic LLM layer: swap between Anthropic and OpenAI via one env var, with embeddings kept local (
sentence-transformers) so retrieval doesn't require any paid API.
Related MCP server: agentic-mcp-gateway
Architecture
┌─────────────────────┐
│ data/policies/*.md │
└──────────┬───────────┘
│ ingest.py (chunk + embed)
▼
┌─────────────────────┐
│ Chroma vector DB │
└──────────┬───────────┘
│ search_policies()
┌──────────────┴───────────────┐
▼ ▼
┌─────────────────┐ ┌────────────────────┐
│ LangGraph agent │ │ MCP server │
│ (app/agent.py) │ │ (app/mcp_server.py) │
└────────┬─────────┘ └─────────────────────┘
│ ask()
▼
┌─────────────────┐
│ FastAPI /chat │
│ (app/api.py) │
└─────────────────┘Setup
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # then fill in ANTHROPIC_API_KEY or OPENAI_API_KEYSet LLM_PROVIDER=anthropic (default) or LLM_PROVIDER=openai in .env.
Embeddings always run locally via sentence-transformers, so ingestion and
retrieval work even without any API key.
Build the index
python -m app.ingestRun the API
uvicorn app.api:app --reloadcurl -X POST http://localhost:8000/chat \
-H "Content-Type: application/json" \
-d '{"question": "How many PTO days do I accrue per year, and what happens to unused ones?"}'Run as an MCP server
python -m app.mcp_serverPoint any MCP client (Claude Desktop, Claude Code) at this command to give it
search_policies_mcp and get_ticket_status_mcp tools.
Tests
Retrieval and mock-tool tests run without any LLM API key:
pytestProject structure
app/
config.py provider-agnostic LLM + embedding setup
vectorstore.py Chroma index build/load
ingest.py CLI to (re)build the index from data/policies/
tools.py search_policies, get_ticket_status (shared logic)
agent.py LangGraph agent with structured output
api.py FastAPI /chat endpoint
mcp_server.py MCP server exposing the same tools
data/policies/ sample enterprise policy documents (the RAG corpus)
tests/ retrieval + tool tests (no API key required)Roadmap / extensions
Swap Chroma for Qdrant/pgvector for a multi-node deployment.
Add SAP AI Core as an additional LLM provider option.
Add an eval harness (e.g. RAGAS) for retrieval quality regression testing.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Judged, citation-checked policy corpus over MCP. Keyless public reads; API key for AI tools.
PolicyTrak is policy management and SOP management software for multi-location compliance, with an MCP server that works with ChatGPT, Claude, Cursor and VS Code. Its MCP server lets Claude, ChatGPT and other MCP clients read, and with permission update, an organization's location compliance records: locations, compliance fields, tabs, evidence files, policies and acknowledgements. Tools: summarize_location_readiness (a site's coverage, missing answers, flags and tags), review_expiring_location_fields (upcoming or overdue license and document dates), review_location_operational_exceptions (exception tags and discussion flags), list_locations, list_location_fields, list_policies, list_sops, get_acknowledgement_summary (acknowledgement status), get_compliance_scorecard and list_law_events (Law Watch). Connect in ChatGPT (web): Plugins (chatgpt.com/plugins) → + → Add custom MCP server → Server URL https://app.policytrak.com/api/mcp → Authentication: OAuth → create the plugin, install it and sign in. Connect in Claude: Settings → Connectors → Add custom connector → paste https://app.policytrak.com/api/mcp → Connect and sign in. Cursor, VS Code and other clients: add https://app.policytrak.com/api/mcp as a remote HTTP MCP server. How to connect: an Admin opens Settings > MCP Server in PolicyTrak to get the server URL. Add it to an MCP client that supports OAuth, sign in as an organization Admin or Owner, choose one organization and the permissions to grant. Clients without OAuth can use a manual key created in Settings > MCP & AI. Each connection covers one organization; write access and employee data are opt-in. Setup guide: https://policytrak.com/ai-assistants-mcp-api/ Support: kcatolico@policytrak.com
Help desk for agents. Search questions and answers first. Read-only MCP.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables querying company knowledge base using RAG, providing accurate answers from internal documents via MCP.-
- AlicenseNot gradedqualityDmaintenanceProvides an agentic RAG workflow with tool calling, enabling natural-language retrieval of policy docs, payment searches, and ticket creation over MCP stdio or HTTP.MIT
- FlicenseNot gradedqualityDmaintenanceProvides MCP tools for hybrid knowledge base search, grounded Q&A with citations, agent execution, and ticket/account lookups.-
- FlicenseNot gradedqualityCmaintenanceEnables workspace-scoped cited RAG knowledge search and human-approved support ticket creation through MCP tools.-