agentic-mcp-gateway
Model Context Protocol (MCP)
Werkzeuge in einen Agenten-Loop für Betriebsarbeit einbinden: Richtlinien aus einer lokalen Wissensdatenbank abrufen (RAG), Scheinzahlungen durchsuchen und Tickets öffnen – die gleiche Form wie Produktions-Copiloten, die vor Kernbank-/Ops-APIs sitzen, ohne proprietären Code.
Dieses Repository ist ursprüngliche Demo-Software von Md Tanvir Alam. Es verwendet ausschließlich generische Zahlungs-, KYC- und Interbank-Nachrichtenkonzepte.
Related MCP server: LightsOut
Architektur
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 --> SQLiteDer MCP-Server und der HTTP-Agent teilen sich eine Tool-Registry. Das ist das Produktionsmuster: dieselben typisierten Fähigkeiten über stdio/SSE für IDE-Agenten und über HTTP für eine Produkt-UI bereitstellen.
Schnellstart
Python 3.11+ (3.12/3.13 ok). Kein API-Schlüssel erforderlich.
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 8080Eine Sitzung ausprobieren:
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 (für Claude Desktop / Cursor-ähnliche Clients):
PYTHONPATH=src python -m agentic_mcp_gateway.mcp_serverDocker:
docker compose up --build
# then the same curl against localhost:8080Wie MCP-Tools auf die Produktion abgebildet werden
Demo-Tool | Was eine echte Plattform umschließen würde | Schutzmaßnahmen, die Sie hinzufügen würden |
| Richtlinien-/Produkt-RAG über Confluence, Runbooks, ISO-20022-Notizen | ACL pro Mandant, Zitierung erforderlich, TTL für veraltete Dokumente |
| Lese-API über einen Zahlungsbus oder Untersuchungsspeicher | Feldmaskierung, Audit-Log, Abfragekostenlimits |
| Fallmanagement / Jira / Schreibpfad | Idempotenzschlüssel, Maker-Checker, PII-Bereinigung |
Der Agent ist eine kleine ReAct-Schleife: denken → Werkzeug wählen → beobachten → wiederholen, dann antworten. Mit LLM_PROVIDER=fake ist der Planer deterministisch, sodass CI nie OpenAI benötigt. Setzen Sie LLM_PROVIDER=llm und OPENAI_API_KEY, um ein echtes Chat-Modell einzusetzen; die Tool-Verträge bleiben identisch.
Embeddings verwenden standardmäßig gehashte Zeichen-n-Gramme (numpy cosine). Das ist ein dokumentierter Demo-Fallback – tauschen Sie HashingEmbedder gegen einen Sentence-Transformer oder eine externe Embedding-API aus, ohne die Retriever-Schnittstelle zu ändern.
Projektstruktur
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 turnAutor
Md Tanvir Alam — github.com/tanvir-ux
MIT-lizenziert. Nicht mit einer Bank oder einem Kernbankenanbieter verbunden.
This 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
- FlicenseNot gradedqualityCmaintenanceEnables local document question-answering and retrieval via MCP, supporting multi-turn conversation, intent recognition, and tools for document search, Q&A, and summarization.5
- FlicenseNot gradedqualityAmaintenanceAgent orchestration system that runs coding-agent sessions (Claude Code, Codex) with policy mediation and exposes tools via MCP.
- 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.
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Agentic search over your Dewey document collections from any MCP-compatible client.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/tanvir-ux/agentic-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server