Query German statutes, case law, and preparatory works from gesetze-im-internet.de
Query German statutes, case law, and preparatory works from gesetze-im-internet.de
Valid MCP server (2 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (122/122 approved).
4 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"eu-ansvar-german-law-mcp": {
"args": [
"-y",
"@ansvar/german-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The gesetze-im-internet.de alternative for the AI age.
Query 6,870 German federal statutes -- from the BGB and StGB to the GG, BDSG, and more -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing German legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
German legal research is scattered across gesetze-im-internet.de, dejure.org, rechtsprechung-im-internet.de, and DIP Bundestag. Whether you're:
...you shouldn't need 47 browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes German law searchable, cross-referenceable, and AI-readable.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-de/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add german-law --transport http https://mcp.ansvar.eu/law-de/mcp |
| Claude Desktop | Add to config (see below) |
| GitHub Copilot | Add to VS Code settings (see below) |
Claude Desktop -- add to claude_desktop_config.json:
{
"mcpServers": {
"german-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-de/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"german-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-de/mcp"
}
}
}
npx @ansvar/german-law-mcp
Claude Desktop -- add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"german-law": {
"command": "npx",
"args": ["-y", "@ansvar/german-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"german-law": {
"command": "npx",
"args": ["-y", "@ansvar/german-law-mcp"]
}
}
}
Once connected, just ask naturally:
| Category | Count | Details |
|---|---|---|
| Statutes | 6,870 laws | Complete German federal legislation |
| Provisions | 91,843 sections | Full-text searchable with FTS5 |
| Case Law | 5,000 decisions | BVerfG, BGH, BVerwG, BAG, BSG, BFH, BPatG |
| Preparatory Works | 89,423 records | Drucksachen + Plenarprotokolle (WP 19 + 20) |
| Database Size | ~300 MB | Runtime download on cold start (Strategy B) |
| Daily Updates | Automated | Freshness checks against gesetze-im-internet.de |
Verified data only -- every provision is ingested from official government sources. Zero LLM-generated content.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
gesetze-im-internet.de → Parse XML → SQLite → FTS5 snippet() → MCP response
↑ ↑
Provision parser Verbatim database query
| Traditional Approach | This MCP Server |
|---|---|
| Search gesetze-im-internet.de by law name | Search by plain German: "Datenschutz Arbeitnehmer" |
| Navigate multi-section statutes manually | Get the exact provision with context |
| Manual cross-referencing between laws | build_legal_stance aggregates across sources |
| "Is this statute still in force?" → check manually | check_currency → answer in seconds |
| Find EU basis → dig through EUR-Lex | get_eu_basis → linked EU directives instantly |
| Check DIP Bundestag for legislative history | get_preparatory_works → structured results |
| No API, no integration | MCP protocol → AI-native |
Traditional: Search gesetze-im-internet.de → Download XML → Ctrl+F → Cross-reference with Drucksache → Check EUR-Lex for EU basis → Repeat
This MCP: "What EU law is the basis for § 1 BDSG?" → Done.
| Tool | Description |
|---|---|
search_legislation | FTS5 search on 91,843 provisions with BM25 ranking |
get_provision | Retrieve specific provision by document ID |
search_case_law | Search 5,000 federal court decisions with court/date filters |
get_preparatory_works | Get Drucksachen and Plenarprotokolle for a statute |
validate_citation | Validate citation against database (zero-hallucination check) |
build_legal_stance | Aggregate citations from statutes, case law, prep works |
format_citation | Format citations per German conventions (default/short/pinpoint) |
check_currency | Check if statute is in force in the ingested corpus |
| Tool | Description |
|---|---|
parse_citation | Parse § 823 Abs. 1 BGB or Art. 1 Abs. 1 GG into structured components |
validate_citation | Check if a citation exists in the database |
| Tool | Description |
|---|---|
get_eu_basis | Get EU directives/regulations for a German statute |
get_german_implementations | Find German laws implementing an EU act |
search_eu_implementations | Search EU documents with German implementation counts |
get_provision_eu_basis | Get EU law references for specific provision |
validate_eu_compliance | Check implementation status |
| Tool | Description |
|---|---|
list_sources | Data provenance and source metadata |
about | Server version, tier, statistics, and freshness |
All content is sourced from authoritative German legal databases:
A daily GitHub Actions workflow monitors all data sources:
| Source | Check | Method |
|---|---|---|
| Statute amendments | gesetze-im-internet.de XML index | All 6,870 statutes checked |
| New statutes | New entries in federal gazette | Diffed against database |
| Case law | rechtsprechung-im-internet.de feed | Compared to database |
| Preparatory works | DIP API query (30-day window) | New records detected |
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---|---|---|
| CodeQL | Static analysis for security vulnerabilities | Weekly + PRs |
| Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| Gitleaks | Secret detection across git history | Every push |
| Trivy | CVE scanning on filesystem and npm dependencies | Daily |
| Docker Security | Container image scanning + SBOM generation | Daily |
| Socket.dev | Supply chain attack detection | PRs |
| OSSF Scorecard | OpenSSF best practices scoring | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from official gesetze-im-internet.de publications. However:
- This is a research tool, not a substitute for professional legal counsel
- Court case coverage is limited (5,000 decisions) -- do not rely solely on this for case law research
- Verify critical citations against primary sources for court filings
- EU cross-references are extracted from German statute text, not EUR-Lex full text
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
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.
This repository uses a dev integration branch. Do not push directly to main.
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.dev.git clone https://github.com/Ansvar-Systems/German-law-mcp
cd German-law-mcp
npm install
npm run build
npm test
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/src/index.js # Test with MCP Inspector
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
This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp
Query 6,870 German statutes directly from Claude -- BGB, StGB, GG, BDSG, and more. Full provision text with EU cross-references. npx @ansvar/german-law-mcp
Query 3,248 Dutch statutes directly from Claude -- BW, Sr, Awb, and more. Full provision text with EU cross-references. npx @ansvar/dutch-law-mcp
Query 717 Swedish statutes directly from Claude -- DSL, BrB, ABL, MB, and more. Full provision text with EU cross-references. npx @ansvar/swedish-law-mcp
Query US federal and state compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npx @ansvar/us-regulations-mcp
Query UNECE R155/R156 and ISO 21434 -- Automotive cybersecurity compliance. npx @ansvar/automotive-cybersecurity-mcp
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
§ 823 Abs. 1 BGB and Art. 1 Abs. 1 GG formatsIf you use this MCP server in academic research:
@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}
}
Apache License 2.0. See LICENSE for details.
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.
ansvar.eu -- Stockholm, Sweden
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.