Skip to main content
Glama
README.md
# DutyKit

[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.renschrder--stack%2Fdutykit-1f5f4a)](https://registry.modelcontextprotocol.io/v0/servers?search=dutykit)
[![Glama score](https://glama.ai/mcp/servers/renschrder-stack/dutykit/badges/score.svg)](https://glama.ai/mcp/servers/renschrder-stack/dutykit)
[![License: MIT](https://img.shields.io/badge/code-MIT-blue)](LICENSE)
[![Catalogue: CC BY 4.0](https://img.shields.io/badge/catalogue-CC%20BY%204.0-lightgrey)](https://creativecommons.org/licenses/by/4.0/)

EU business duties for AI agents. A remote MCP server that tells an agent which business rules apply in Germany, Luxembourg and the EU, with the legal source for every line, and lets it pre-check an invoice, a marketing message or a call before it acts.

**Endpoint:** `https://dutykit.dev/mcp` (Streamable HTTP, public beta, free, no account, 200 tool calls per day per IP, no inputs stored)
**Docs:** https://dutykit.dev · https://dutykit.dev/llms.txt · [Guides](https://dutykit.dev/blog/), newest: [legal notice for a business website (DE, LU)](https://dutykit.dev/blog/website-legal-notice-germany-luxembourg.html)

## Connect

Claude Code:
```bash
claude mcp add --transport http dutykit https://dutykit.dev/mcp
```

Any MCP client (JSON config):
```json
{ "mcpServers": { "dutykit": { "type": "http", "url": "https://dutykit.dev/mcp" } } }
```

## Tools

| Tool | What it does |
|---|---|
| `pflichten(land, taetigkeit)` | Obligations for `DE` or `LU` plus EU-wide, filtered by activity: `website`, `online_handel`, `rechnung`, `werbung`, `ki_kontakt`, `gruendung`, `datenschutz`, `produkte` |
| `rechnung_vorpruefen(rechnung, land="DE")` | Missing mandatory invoice fields under § 14 (4) UStG |
| `werbung_vorpruefen(kanal, empfaenger, einwilligung_belegt, bestandskunde)` | May the agent send this marketing email or make this call? (§ 7 UWG) |
| `ki_hinweis(firma, sprache)` | AI disclosure wording under AI Act Art. 50(1) in `de`, `fr`, `en`, `lb` |
| `vat_pruefen(ust_id)` | Live EU VAT ID check via the European Commission's VIES service |
| `angebot()` | Pricing status, what is included, and when DutyKit is (not) the right fit |

Every check also returns a `nachweis` (timestamp, tool, responsible person, SHA-256 of the result) for the human who is liable.

## Example prompts
- "Before you publish the shop page: what does a website for a business in Luxembourg need?"
- "Check this invoice for missing mandatory fields before you send it."
- "May you send this newsletter to consumers who never opted in?"
- "Start every call with the AI disclosure sentence in French for Muster S.à r.l."

## Example result (`pflichten`, shortened)
```json
{
  "id": "de-impressum",
  "pflicht": "Impressum mit Name, Anschrift der Niederlassung, bei juristischen Personen Rechtsform und Vertretungsberechtigtem, schneller elektronischer Kontaktmöglichkeit einschließlich E-Mail-Adresse, ggf. Aufsichtsbehörde, Register mit Registernummer und USt-IdNr. oder Wirtschafts-Identifikationsnummer; leicht erkennbar, unmittelbar erreichbar und ständig verfügbar.",
  "grundlage": "§ 5 Abs. 1 DDG",
  "quelle": "https://www.gesetze-im-internet.de/ddg/__5.html",
  "pruefstand": "belegt",
  "geprueft": "2026-11-25"
}
```

## Catalogue
`pflichten.json` lists for every entry the legal basis, the source URL, the check date and whether it was checked against the legal text (`belegt`) or not yet (`zu_pruefen`). Coverage today: DE, LU, EU (25 of 25 entries checked against the legal text, the rest marked `zu_pruefen`, reviewed weekly). Next: FR, BE. Corrections and additions with a primary source are welcome as issues or pull requests.

**Not legal advice.** DutyKit returns obligations, formats and checks against the cited texts, not advice on individual cases. Made with AI assistance.

## Develop
```bash
uv run --with "mcp>=2" --with pytest pytest -q   # tests
python scripts/katalog_pruefen.py                 # catalogue lint
```

## Run locally
```bash
uv run --with "mcp>=2" --with uvicorn uvicorn app:app --port 8080
```
Self-hosting with Docker and Caddy: see `deploy/`.

## License
Code: MIT (see `LICENSE`). Obligation catalogue `pflichten.json`: CC BY 4.0, please credit "DutyKit (dutykit.dev)".

TDQS

A4.5/5.0

Scored across 7 tools

Disambiguation4/5

Each tool maps to a distinct artifact or decision: invoice pre-check, marketing pre-check, VAT ID lookup, AI disclosure text, obligation lookup, plus two meta tools (pricing, catalogue health). The only mild friction is between `angebot` and `katalog_status`, both self-descriptions of the service, but the descriptions explicitly state which to use when and cross-reference each other. The lookup-vs-check split (`pflichten` vs `rechnung_vorpruefen`/`werbung_vorpruefen`) is called out in the text, so an agent is unlikely to misselect.

Naming Consistency3/5

Mostly German noun-based compounds (`pflichten`, `angebot`, `katalog_status`, `ki_hinweis`) mixed with noun_verb check tools (`rechnung_vorpruefen`, `werbung_vorpruefen`), which is a reasonably readable convention. However `vat_pruefen` mixes an English acronym with the German verb pattern while invoice/marketing use German nouns, and the set alternates between action names and pure noun names without a stated rule.

Tool Count5/5

Seven tools is comfortably within a well-scoped range and each one earns its place: three compliance checks, one lookup, one external verification, and two meta/diagnostic tools. Nothing appears redundant or padded for the stated compliance-advisory purpose.

Completeness4/5

Core compliance lifecycle is covered (look up duties, pre-check invoice, pre-check outreach, verify VAT ID, get AI disclosure wording, gauge catalogue freshness). Gaps exist: no Impressum/website-legal-notice helper despite `website` and `datenschutz` being obligation categories, no e-invoice format check (explicitly disclaimed), no way to audit an existing AI disclosure message, and only DE/LU/EU are supported. These are workable around via `pflichten` but represent real dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues