agentic-mcp-gateway
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., "@agentic-mcp-gatewayFind payment PMT-1002 and open a ticket if it's stuck"
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.
Model Context Protocol (MCP)
tools into an agentic loop for operations work: retrieve policy from a local knowledge base (RAG), search mock payments, and open tickets — the same shape as production copilots that sit in front of core banking / ops APIs, without any proprietary code.
This repository is original demo software by Md Tanvir Alam. It uses generic payments, KYC, and interbank-messaging concepts only.
Related MCP server: Business Operations MCP Server
Architecture
flowchart LR
subgraph Client
Recruiter["CLI / curl / MCP client"]
end
subgraph HTTP["Optional FastAPI"]
Chat["POST /chat"]
Health["GET /health"]
end
subgraph Agent["Agent loop"]
LLM["LLM or FakeLLM stub"]
ReAct["ReAct planner"]
end
subgraph MCP["MCP server"]
T1["retrieve_docs"]
T2["search_payments"]
T3["create_ticket"]
end
subgraph Data
KB["Markdown KB + hash embeddings"]
SQLite["SQLite mock ledger / tickets"]
end
Recruiter --> Chat
Recruiter --> MCP
Chat --> ReAct
ReAct --> LLM
ReAct --> T1 & T2 & T3
MCP --> T1 & T2 & T3
T1 --> KB
T2 --> SQLite
T3 --> SQLiteThe MCP server and the HTTP agent share one tool registry. That is the production pattern: expose the same typed capabilities over stdio/SSE for IDE agents and over HTTP for a product UI.
Quick start
Python 3.11+ (3.12/3.13 fine). No API key required.
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
# tests — FakeLLM, hash embeddings, in-memory SQLite
pytest -q
# HTTP demo
cp .env.example .env
PYTHONPATH=src python -m uvicorn agentic_mcp_gateway.http_app:app --port 8080Try a session:
curl -s localhost:8080/health
curl -s localhost:8080/chat -H 'content-type: application/json' \
-d '{"message":"Find payment PMT-1002 and open a ticket if it is stuck"}'MCP stdio (for Claude Desktop / Cursor-style clients):
PYTHONPATH=src python -m agentic_mcp_gateway.mcp_serverDocker:
docker compose up --build
# then the same curl against localhost:8080How MCP tools map to production
Demo tool | What a real platform would wrap | Guardrails you would add |
| Policy / product RAG over Confluence, runbooks, ISO 20022 notes | ACL per tenant, citation required, stale-doc TTL |
| Read API over a payments bus or investigation store | Field-level masking, audit log, query cost limits |
| Case management / Jira / ServiceNow write path | Idempotency keys, maker-checker, PII scrubbing |
The agent is a small ReAct loop: think → pick a tool → observe → repeat, then answer. With LLM_PROVIDER=fake the planner is deterministic so CI never needs OpenAI. Set LLM_PROVIDER=llm and OPENAI_API_KEY to swap in a real chat model; the tool contracts stay identical.
Embeddings default to hashed character n-grams (numpy cosine). That is a documented demo fallback — swap HashingEmbedder for a sentence-transformer or vendor embedding API without changing the retriever interface.
Project layout
src/agentic_mcp_gateway/ package
tools/ retrieve / payments / tickets
agent.py ReAct + FakeLLM
mcp_server.py MCP stdio server
http_app.py FastAPI /chat
docs/kb/ sample ops knowledge
tests/ tool registry, RAG, mocked agent turnAuthor
Md Tanvir Alam — github.com/tanvir-ux
MIT licensed. Not affiliated with any bank or core-banking vendor.
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM Orchestration Agent (Mcp)
Human-input bridge for AI agents with voice-first answer links, MCP tools, and HTTP APIs.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP-Native LLM Orchestration Agent
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA production-minded RAG service for MCP that answers questions over your documents with hybrid retrieval, PII redaction, and source citations, packaged for Docker/Kubernetes.-
- FlicenseNot gradedqualityCmaintenanceAn MCP server exposing internal business operations as tools — task management (create, list, update status) and RAG-style semantic search over an internal knowledge base (leave, expense, and onboarding policies) that any MCP-compatible AI agent can call directly for grounded, non-hallucinated answers.-
- AlicenseNot gradedqualityBmaintenanceAn MCP-native agentic platform orchestrating planner/executor/critic agents over hybrid RAG with three-tier memory, budget enforcement, safety guardrails, and full observability. It exposes all capabilities as MCP tools, enabling natural-language control of document ingestion, retrieval-augmented generation, and multi-step AI workflows.MIT
- FlicenseAqualityBmaintenanceMCP server that exposes life-insurance back-office tools (policy document search, application status, product/underwriting rules) to LLM agents. Enables agents to retrieve policy documents, check application status, and evaluate underwriting rules via hybrid search and rule lookup.3-