Admissions MCP Hub
Admissions MCP Hub
Ein verwalteter Model Context Protocol-Server, der Kurs-, Kursdurchgang-, Gebühren-, Lead- und Rückruffunktionen über einen einzigen MCP-Vertrag für zwei unabhängige KI-Chat-Apps bereitstellt.
Was das zeigt
Ein MCP-Server, zwei unabhängige Clients (Lernender + Berater) — keine doppelten Integrationen
DB-Zugangsdaten, Auth, Audit, Validierung — alles zentral auf dem Server
Schreibvorgänge erfordern ein Bestätigungs-Gate (prepare → confirm) — ein LLM kann keinen Lead allein erstellen
Jeder Tool-Aufruf wird auditiert (Akteur, Client, Args-Hash, Ergebnis, Latenz)
Eine No-MCP-Vergleichsdemo zeigt, was man ohne MCP verlieren würde

Related MCP server: company-state-mcp
Schnellstart
# 1. PostgreSQL
docker compose up -d postgres
# 2. Migrate + seed
uv sync
uv run alembic upgrade head
uv run python scripts/seed_demo.py
# 3. Start services (4 terminals)
uv run uvicorn services.mcp_server.app:asgi_app --port 8010
uv run uvicorn services.learner_host.api:app --port 8020
uv run uvicorn services.counsellor_host.api:app --port 8030
uv run streamlit run ui/app.py --server.port 8501Öffnen Sie http://localhost:8501 — zwei Chat-Tabs (Lernender + Berater).
No-MCP-Vergleich:
uv run streamlit run ui/no_mcp_demo.py --server.port 8502
Ausprobieren
🎓 Lernassistent
Prompt | Was passiert |
| Listet 4 Kurse auf |
| Termine der Kursdurchgänge + Gebührenangebot + Richtlinien |
| Gibt Richtlinientext zurück |
| ✅/❌ Bestätigungs-Gate vor der Lead-Erstellung |
🎧 Beraterkonsole
Prompt | Was passiert |
| Listet 4 Kurse auf |
| 3 Kursdurchgänge mit Plätzen |
| Angebots-ID + Gesamtsumme (INR) |
| Zeigt zugewiesene Leads |
| ✅/❌ Bestätigungs-Gate |
Siehe RUN_GUIDE.md für vollständige Prompts + erwartete Antworten.
Architektur
Port | Service | Rolle |
5433 | PostgreSQL | Zentrale Datenquelle (Kurse, Kursdurchgänge, Leads, Audit) |
8010 | MCP Server | Tools (11) + Resources (8) + Prompts (2), JWT-Auth, RBAC, Audit |
8020 | Learner Host | LangGraph-App – Lernender-JWT, Bestätigungs-Gate für Schreibvorgänge |
8030 | Counsellor Host | LangGraph-App – Berater-JWT, Lead-Verwaltung |
8501 | Streamlit UI | Zwei Chat-Tabs (MCP-basiert) |
8502 | No-MCP Demo | Gleicher Ablauf, direkter DB-Zugriff – zeigt, wovor MCP schützt |
Stack: Python 3.11 · MCP SDK · LangGraph · FastAPI · SQLAlchemy 2 · PostgreSQL 16 · Pydantic v2 · Ollama (qwen3.5:2b) · Streamlit
Kernkonzepte
Konzept | Wo | Warum es wichtig ist |
Bestätigungs-Gate |
| LLM kann ohne menschliches ✅ keinen Lead erstellen |
Idempotenz |
| Netzwerk-Wiederholungen erzeugen keine Duplikate |
RBAC |
| Lernender kann die Leads anderer Personen nicht sehen |
Audit |
| Jeder Aufruf wird protokolliert: wer, was, Ergebnis, Latenz |
Zustandslosigkeit | Server-generierte IDs ( | Horizontale Skalierung ohne Sitzungen |
Projektstruktur
scai-mcp-admissions/
├── services/
│ ├── mcp_server/ # MCP server (tools, resources, prompts, auth, audit)
│ ├── learner_host/ # LangGraph learner app (port 8020)
│ └── counsellor_host/ # LangGraph counsellor app (port 8030)
├── ui/
│ ├── app.py # Streamlit — 2 chat tabs (MCP)
│ └── no_mcp_demo.py # Streamlit — no-MCP comparison (direct DB)
├── packages/
│ ├── contracts/ # Pydantic tool inputs/outputs + domain models
│ ├── shared/ # Config, LLM adapter, JWT tokens
│ └── observability/ # Structured logging, tracing
├── scripts/
│ ├── seed_demo.py # Seed 4 courses, 4 batches, 4 fee plans, 3 policies
│ ├── issue_dev_token.py # Issue dev JWTs for manual testing
│ └── run_demo_checks.py # Smoke tests against running server
├── tests/ # unit, contract, integration, security, e2e
├── migrations/ # Alembic migrations
├── data/demo_seed/ # Seed data + knowledge_base.json
├── mcp_concept.ipynb # MCP concept notebook (what/why/how/scale/use cases)
├── mcp_flow_diagram.mmd # Mermaid source for architecture diagram
├── mcp_flow_diagram.png # Rendered architecture diagram
├── RUN_GUIDE.md # Step-by-step run guide with test prompts
└── docker-compose.yml # PostgreSQL 16Tests
uv run pytest # all tests
uv run pytest -m unit # just unit tests
uv run pytest -m contract # contract testsReferenzen
This server cannot be deployed
Maintenance
Related MCP Connectors
Runtime AI governance: decision gates, human approval, hash-chained audit, compliance mapping.
Enterprise AI Control Plane: governance, guardrails, spend tracking, compliance & smart routing.
Tenant-scoped control layer for agent-to-agent systems: governed routing, approvals, evidence.
Register, deploy, review, and govern internal applications built with coding agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to safely query and act on school data (attendance, fees, student records) with strict role-based access control and a two-step write approval flow.-
- FlicenseNot gradedqualityDmaintenanceSingle source of truth and control for agent-operated companies, managing business state with deterministic policy enforcement, seat identity, and hash-chained audit trail.-
- FlicenseNot gradedqualityCmaintenanceEnables controlled AI-agent access to enterprise-shaped tools with a deny-by-default gated write path, human approval, dry-run execution, and append-only audit logging.1-
- AlicenseNot gradedqualityCmaintenanceEnables secure enterprise integration by bridging SQL, financial, SCADA, and document backends to LLM agents with RBAC, DLP redaction, human-in-the-loop approvals, and OpenTelemetry tracing.MIT