German federal & state legal texts (BGB, DSGVO, …) with canonical IDs and cite-grade provenance.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Cite-grade German legal-text infrastructure for LLM agents. ~8 500 federal + Länder + EU laws via MCP, HTTP API, and a typer shell CLI — all over the same runtime, with cryptographic provenance from gesetze-im-internet.de and EUR-Lex / Cellar.
It is local or server-side infrastructure: no SaaS, no billing, no
accounts, no tenant model, and no legal advice. The runtime loads
either the committed fixture packages used by fast CI or a generated
production corpus package built outside Git. Official text comes from
gesetze-im-internet.de for German federal laws and from EUR-Lex /
Cellar for EU acts such as the GDPR.
No legal advice. This software returns text and structured metadata. It does not interpret the law, advise on it, or produce any legal conclusion. The maintainer assumes no liability for use in legal decision-making contexts.
Older internal documentation has been archived under docs-legacy/summary.md.
| Lifecycle | Stable v2.1.3 (current patch on v2.1.0 typer-CLI minor) — MCP-native domain server with typer CLI |
| Versioning | SemVer 2.0.0 (stability contract starts at v1.0.0) |
| Licence | Apache License 2.0 — see LICENSE and NOTICE |
| Upstream | Derived from floleuerer/deutsche-gesetze-mcp (MIT, preserved) |
/health, /ready, /laws, /search, and OpenAPI endpoints.pip install from PyPI (smallest dependency)The package ships the runtime only; provide a corpus bundle via
DATASET_PATH (build with prepare_data.build_corpus, see Mode 4) or
point at an existing .tar.zst you trust.
uvx + auto-download (recommended, easiest)Server fetches the latest signed corpus bundle from GHCR on first run.
legal-text-mcp-de ships a full subcommand CLI. Bare invocation prints
--help. Common commands:
Add --json to any subcommand for machine-readable output (matches the
HTTP API's response schema). See CLI reference for
the full subcommand list.
BREAKING in v2.1.0: bare
legal-text-mcp-denow prints--help. Appendserveto keep the v2.0 behaviour (started the MCP server).
The default transport is streamable HTTP at
http://localhost:8001/mcp. For desktop / offline clients use the
stdio transport instead — see
Quickstart → stdio.
Dev shortcut. A
Justfilewraps the commonuvinvocations (just install,just test,just lint,just run,just api,just docs). Install viabrew install just. The Justfile is optional — CI only usesuvdirectly.
Since v2.1 the easiest way is the new CLI:
The default port is 8001 (from settings.port / PORT env var); use
--port <N> to override.
Or directly via uvicorn (equivalent — same FastAPI app):
The HTTP layer enforces MAX_REQUEST_BODY_BYTES (default 1048576 = 1 MiB)
as a defence-in-depth body-size cap; over-limit requests return 413 Payload Too Large. The operator's reverse proxy is still expected to
enforce a proxy-level limit on top of this.
The Docker image does not bundle legal text data. Mount a validated
package at /data/legal-texts:
examples/docker-compose/http/ for a minimal HTTP-mode Compose example.examples/docker-compose/production/ for a committed, CI-tested production stack (MCP + HTTP behind Caddy, switchable via Compose profiles).Since v2.0, the corpus is exposed as read-only legal:// URIs that any MCP client can load directly into its LLM context. Examples:
legal://laws — paginated indexlegal://laws/bgb — BGB header + norm indexlegal://laws/bgb/norms/par:433 — § 433 BGB as Markdownlegal://corpus/coverage — what's in the corpusSee docs/concepts/mcp-native.md for the full URI catalogue.
Five curated workflows appear as slash-commands in MCP clients:
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/legal-text-mcp-de)<a href="https://allmcps.com/mcp/legal-text-mcp-de"><img src="https://allmcps.com/api/badge/legal-text-mcp-de?style=directory" alt="Legal Text MCP De on AllMCPs" /></a>