ticketsystem-mcp
Enables agents to view and reassign tickets in a fictional German health insurer's case load, with German-language responses and demo-friendly relative dates.
README
Ticketsystem-MCP
MCP server for the ticket system of a fictional German health insurer. Built for demos: it serves a small, self-consistent case load and lets an agent look up tickets and hand them over — without any real data being involved.
The code is English, everything the server delivers is German: titles, statuses, history entries and error messages read the way a case worker would see them.
What the server can do
- Six tickets across two case workers, Nadine Krohn and Adrian Osei. Each ticket is one claim with its own history.
- A case load that stays current. History entries are dated relative to today and pulled back onto working days, so nothing looks stale in a demo half a year from now.
- Real reassignment.
ticket_zuweisenmoves a ticket, appends a handover entry and is visible in every latertickets_auflistencall.
TCK-48213 is the centrepiece: the only open ticket of Nadine Krohn, waiting on
an insured person's reply that came in yesterday and has not been read.
Tools
| Tool | Purpose |
|---|---|
tickets_auflisten(bearbeiter, nur_offene?) |
Tickets of one case worker, most recently updated first, without history |
ticket_abrufen(ticket_nummer) |
One ticket including its full history |
ticket_zuweisen(ticket_nummer, neuer_bearbeiter) |
Hand a ticket over to someone else |
bearbeiter and neuer_bearbeiter accept either the full name (Nadine Krohn)
or the email address (nadine.krohn@musterkasse.de). nur_offene defaults to
true, so closed tickets stay out of the way unless asked for.
Tool names, parameters and the field names of every response are German on
purpose: MCP clients render an identifier by splitting it on underscores and
capitalising it, so tickets_auflisten shows up as "Tickets Auflisten". English
identifiers would be visible to the audience of a German demo.
Quickstart
The justfile bundles the common flows; just without arguments lists
every recipe.
Local
just setup # uv sync
TICKETSYSTEM_API_KEY=demo-schluessel just run
The endpoint is then at http://localhost:8001/mcp.
Docker
cp .env.example .env # and adjust the key
just up # docker compose up -d --build
just health # query the health endpoint
just tools # list the tools of the running server
just down
Connecting an MCP client
.mcp.json in the project directory:
{
"mcpServers": {
"ticketsystem": {
"type": "http",
"url": "http://localhost:8001/mcp",
"headers": { "X-API-KEY": "demo-schluessel" }
}
}
}
Port 8001 is the default so this server and speiseplan-mcp can run side by
side.
Authentication
Every call needs the header X-API-KEY with one of the keys configured in
TICKETSYSTEM_API_KEY; otherwise the server answers HTTP 401. Only /health is
exempt, for the container health check.
Without TICKETSYSTEM_API_KEY the server does not start.
Configuration
All values come from environment variables, see .env.example:
| Variable | Default | Meaning |
|---|---|---|
TICKETSYSTEM_API_KEY |
— (mandatory) | valid keys, several separated by commas |
TICKETSYSTEM_HOST |
0.0.0.0 |
bind address |
TICKETSYSTEM_PORT |
8001 |
port |
TICKETSYSTEM_PATH |
/mcp |
path of the MCP endpoint |
TICKETSYSTEM_TIMEZONE |
Europe/Berlin |
basis for "today" |
Storage
Reassignments live in the memory of the process only. There is no database and no volume — a restart returns the case load to its initial state, which is exactly what you want between two demo runs.
Example: the demo run
tickets_auflisten(bearbeiter="Nadine Krohn")
TCK-48213 Rückfrage an Versicherte ungelesene Antwort
ticket_abrufen(ticket_nummer="TCK-48213")
...
gestern Antwort der Versicherten mit Klinik-Bescheinigung eingegangen (ungelesen)
ticket_zuweisen(ticket_nummer="TCK-48213", neuer_bearbeiter="adrian.osei@musterkasse.de")
Ticket TCK-48213 ist jetzt Adrian Osei zugewiesen, zuvor Nadine Krohn.
tickets_auflisten(bearbeiter="Nadine Krohn") -> leer
tickets_auflisten(bearbeiter="Adrian Osei") -> enthält TCK-48213
Development
just check # linter, formatting, mypy and tests
just tests # tests only; arguments are passed through
just fix # format and fix what can be fixed
Without just the tools work directly:
.venv/bin/pytest # tests, no external services needed
.venv/bin/ruff check src tests # linter
.venv/bin/ruff format src tests # formatting
.venv/bin/mypy # type check in strict mode
Publishing
The image goes to the registry registry.florian-sattler-apps.de:
just login # once: docker login
just publish-preview # shows the target tags without pushing
just publish # checks, builds and pushes after a prompt
More on the architecture and the decisions behind it is in CLAUDE.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。