Query German statutes, case law, and preparatory works from gesetze-im-internet.de
This MCP server provides access to German statutes, case law, and preparatory works sourced from gesetze-im-internet.de. It is presented as a German law corpus endpoint available via the Ansvar Gateway, delivering responses with verbatim source citation.
🛠️ Key Features
Query German statutes
Query case law
Query preparatory works
Source repository: gesetze-im-internet.de
Verbatim source citation in results
🚀 Use Cases
Retrieving German legal text relevant to statutes, decisions, and preparatory materials
Building developer workflows that need citations tied to the underlying legal source
⚡ Developer Benefits
One OAuth connection to the gateway endpoint (https://gateway.ansvar.eu/mcp)
The German law corpus is now served through the Ansvar Gateway. Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to https://gateway.ansvar.eu/mcp — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across 28 audited jurisdictions, and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart
Connect
Claude Code (one line):
bash
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp
Claude Desktop / Cursor — add to claude_desktop_config.json (or mcp.json):
First request opens an OAuth signup flow (setup details: ansvar.eu/docs/quickstart). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.
Self-host this MCP
You can also clone this repo and build the corpus yourself. The schema,
fetcher, and tool implementations all live here. What is not in the repo is
the pre-built database — TDM and standards-licensing constraints on the
upstream sources mean we host the corpus on Ansvar infrastructure rather
than redistribute it as a public artifact.
Build your own: run this repo's ingestion script (entry-point varies per
repo — typically scripts/ingest.sh, npm run ingest, or make ingest;
check the repo root).
The gesetze-im-internet.de alternative for the AI age.
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. Lawyers should consider Bundesrechtsanwaltskammer (BRAK) confidentiality obligations when using cloud-based AI tools. See PRIVACY.md for compliance guidance.
Security Policy -- Vulnerability reporting and scanning details
Disclaimer -- Legal disclaimers and professional use notices
Privacy -- Client confidentiality and data handling
Development
Branching Strategy
This repository uses a dev integration branch. Do not push directly to main.
code
feature-branch → PR to dev → verify on dev → PR to main → deploy
main is production-ready. Only receives merges from dev via PR.
dev is the integration branch. All changes land here first.
Feature branches are created from dev.
Setup
bash
git clone https://github.com/Ansvar-Systems/German-law-mcp
cd German-law-mcp
npm install
npm run build
npm test
Running Locally
bash
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
Data Management
bash
npm run ingest # Ingest statutes from gesetze-im-internet.de
npm run ingest:cases # Ingest case law from rechtsprechung-im-internet.de
npm run ingest:prep # Ingest preparatory works from DIP Bundestag
npm run auto-update # Run full update cycle
npm run auto-update:dry-run # Preview what would be updated
npm run drift:detect # Detect schema/data drift
Performance
Search Speed: <100ms for most FTS5 queries
Database Size: ~300 MB (runtime download, Strategy B)
Free/Professional tier gating -- Honest messaging for tier limitations
Expanded case law (full archive, ~50,000+ decisions)
Lower court coverage (Landesgerichte)
Historical statute versions (Fassungsvergleich)
State law (Landesrecht)
English translations for key statutes
Citation
If you use this MCP server in academic research:
bibtex
@software{german_law_mcp_2025,
author = {Ansvar Systems AB},
title = {German Law MCP Server: Production-Grade Legal Research Tool},
year = {2025},
url = {https://github.com/Ansvar-Systems/German-law-mcp},
note = {Comprehensive German legal database with 6,870 statutes, 91,843 provisions, and EU cross-references}
}
Statutes & Regulations:German-UrhG-Section-5 -- German statutory public domain. UrhG §5(1) "Amtliche Werke" excludes statutes, ordinances, official decrees and notices, decisions and officially drafted headnotes from copyright protection; §5(2) extends to other official works published in the official interest. Verified verbatim 2026-05-17 -- see docs/audits/2026-05-17-eu-copyright-statutory-works-batch-1b-DE-IE-IT-NL-ES.md. Catalog entry: German-UrhG-Section-5 in infrastructure/attribution-licenses.json.
Case Law: rechtsprechung-im-internet.de -- same statutory basis (UrhG §5(1) decisions clause)
EU Metadata: EUR-Lex (EU public domain, Decision 2011/833/EU)
About Ansvar Systems
We build AI-accelerated compliance and legal research tools for the European market. This MCP server started as our internal reference tool for German law -- turns out everyone building for the DACH market has the same research frustrations.
So we're open-sourcing it. Navigating 6,870 statutes shouldn't require a law degree.