{"id":51576142,"url":"https://github.com/matematicsolutions/de-eli-mcp","last_synced_at":"2026-07-11T00:31:53.693Z","repository":{"id":367151912,"uuid":"1278968193","full_name":"matematicsolutions/de-eli-mcp","owner":"matematicsolutions","description":"MCP server for the German NeuRIS API (rechtsinformationen.bund.de) - search and fetch federal legislation with ELI identifiers and verifiable citations. First EU connector in the eu-legal-mcp line.","archived":false,"fork":false,"pushed_at":"2026-07-08T07:33:17.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-08T09:14:44.472Z","etag":null,"topics":["ai-agent","ecli","eli","germany","legal","legaltech","legislation","mcp","mcp-server","model-context-protocol"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matematicsolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-24T08:52:55.000Z","updated_at":"2026-07-08T07:33:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matematicsolutions/de-eli-mcp","commit_stats":null,"previous_names":["matematicsolutions/de-eli-mcp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matematicsolutions/de-eli-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fde-eli-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fde-eli-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fde-eli-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fde-eli-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matematicsolutions","download_url":"https://codeload.github.com/matematicsolutions/de-eli-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fde-eli-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35347554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","ecli","eli","germany","legal","legaltech","legislation","mcp","mcp-server","model-context-protocol"],"created_at":"2026-07-11T00:31:49.529Z","updated_at":"2026-07-11T00:31:53.683Z","avatar_url":"https://github.com/matematicsolutions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# de-eli-mcp\n\n\u003c!-- mcp-name: io.github.matematicsolutions/de-eli-mcp --\u003e\n\n\n## Instalacja (jedna komenda)\n\nOpublikowany na PyPI + MCP Registry (`io.github.matematicsolutions/de-eli-mcp`). Uruchomienie bez klonowania:\n\n```bash\nuvx de-eli-mcp\n```\n\nKonfiguracja klienta MCP (stdio):\n\n```json\n{ \"mcpServers\": { \"de-eli-mcp\": { \"command\": \"uvx\", \"args\": [\"de-eli-mcp\"] } } }\n```\n\n(Budowanie ze źródeł — niżej.)\n\nAn MCP server for German law: **NeuRIS** (`rechtsinformationen.bund.de`) for federal\nlegislation, three case-law sources - NeuRIS's beta case-law slice, the **complete**\nfederal-courts aggregator **rechtsprechung-im-internet.de** (RII, official BMJ/juris\nportal) for **BVerfG, BGH, BAG, BFH, BVerwG, BSG** (+ BPatG), and **Open Legal Data**\n(`de.openlegaldata.io`, ~424k decisions from ~1 100 courts of ALL levels, including\nthe state courts of all 16 Laender, with full-text search) - plus the Bundestag's\n**DIP** (`dip.bundestag.de`) for parliamentary documents and legislative history\n(~287k Drucksachen with full text, plenary transcripts, ~335k legislative procedures,\nBundestag AND Bundesrat).\n\nPart of the MateMatic `eu-legal-mcp` production line: the German counterpart of the\nPolish `sejm-eli-mcp`, built on the same architecture and citation contract against the\nGerman source.\n\n\u003e **Beta source (legislation + `de_case_search`).** NeuRIS is an official but beta\n\u003e service; its dataset is not yet complete. Every response carries a `dataset_note`\n\u003e saying so.\n\u003e\n\u003e **Complete source (case law).** `de_rii_case_search` / `de_rii_get_case_text` query\n\u003e rechtsprechung-im-internet.de directly. Per an independent audit (Legal Data Hunter,\n\u003e `worldwidelaw/legal-sources`), RII's coverage of BVerfG, BGH, BAG, BFH, BVerwG and BSG\n\u003e is marked `status: complete` - unlike NeuRIS's `/v1/case-law`, which only carries a\n\u003e small beta slice (and can drop fields such as `ecli` for the very same decision RII\n\u003e serves with a full ECLI - see BAG decision `KARE600069049` / `ECLI:DE:BAG:2024:...` as\n\u003e a live example). **Prefer the RII tools for these six courts.**\n\u003e\n\u003e **State courts + full-text search (Open Legal Data).** `de_oldp_case_search` /\n\u003e `de_oldp_get_case` query de.openlegaldata.io - a community open-data aggregator\n\u003e (Open Knowledge Foundation ecosystem, BMBF Prototypefund) of ~424k decisions from\n\u003e ~1 100 German courts at every level, including the state courts of all 16 Laender.\n\u003e It is NOT an official government service and does not claim completeness - for the\n\u003e six federal supreme courts prefer the RII tools; use OLDP for state case law and\n\u003e for full-text hunting (no other source here searches decision content).\n\u003e\n\u003e **Legislative history (Bundestag DIP).** `de_dip_search` / `de_dip_get_document`\n\u003e query the parliament's official DIP API - Drucksachen (bills, motions, committee\n\u003e reports, government answers - the home of Gesetzesbegruendungen), plenary\n\u003e transcripts and legislative procedures, for Bundestag and Bundesrat. The Bundestag\n\u003e publishes a public API key on its help page (the current one is valid until end of\n\u003e May 2027 and ships as the default); set `DE_DIP_API_KEY` when it rotates or to use\n\u003e your own key.\n\u003e\n\u003e **Licence.** German official works - statutes, ordinances, court decisions and\n\u003e official headnotes - are outside copyright under § 5 UrhG (gemeinfrei), which is\n\u003e the standard basis for reusing German legal data. NeuRIS is operated by the BMJV /\n\u003e DigitalService GmbH; RII is operated by the BMJ (juris GmbH). Neither publishes a\n\u003e separate API terms or key requirement. Open Legal Data's database is under ODbL\n\u003e v1.0 (the decisions themselves are gemeinfrei); DIP data is under Data licence\n\u003e Germany - attribution - 2.0 (dl-de/by-2-0). This connector only relays that\n\u003e public content, with attribution and a `source_url`. Caveat: NeuRIS is in test\n\u003e phase; re-check the terms at general availability. (This is a practitioner's\n\u003e read, not formal legal advice.)\n\n## The tools\n\n| Tool | What it does |\n|---|---|\n| `de_search` | Search legislation by term, ELI and date (`GET /v1/legislation`). |\n| `de_get_act` | Fetch act metadata by ELI. |\n| `de_get_text` | Fetch the full text (`html` or `xml` / LegalDocML.de). |\n| `de_list_publishers` | List the publication organs (BGBl I/II, Bundesanzeiger). |\n| `de_recent_changes` | Acts published since a date, newest-first. |\n| `de_case_search` / `de_get_decision(_text)` | NeuRIS case-law beta slice (`/v1/case-law`). |\n| `de_rii_case_search` | Search **BVerfG/BGH/BAG/BFH/BVerwG/BSG/BPatG** decisions via RII's master TOC (court, Aktenzeichen substring, date range). |\n| `de_rii_get_case_text` | Full text of one RII decision by `doc_id` - real `ecli` when the court publishes one, plus `titelzeile`/`leitsatz`/`tenor`/full `content`. |\n| `de_oldp_case_search` | Search **Open Legal Data** - 423 944 decisions from 1 119 courts at all levels (verified live 2026-07-08), the only tool here covering **state courts** and offering **full-text search** (`text`). Metadata filters: `court_slug`, `file_number` (exact), `date_after`/`date_before`. |\n| `de_oldp_get_case` | Full decision text (HTML) by OLDP id or slug, with ECLI when the source carries one. |\n| `de_dip_search` | Search the Bundestag **DIP** - Drucksachen (287 327), Plenarprotokolle (5 789), Vorgaenge (334 524); filters `titel`, `dokumentnummer`, `zuordnung` (BT/BR), `wahlperiode`, dates; cursor pagination. |\n| `de_dip_get_document` | One DIP entity by id; the `-text` resource variants return the full document text. Citations like `BT-Drs. 20/1` with the official PDF as `source_url`. |\n\nEvery response carries the contract: `eli_uri` (ELI e.g. `eli/bund/bgbl-1/2017/s2097/2025-01-01/1/deu`,\nor ECLI for RII case law e.g. `ECLI:DE:BVerfG:2024:rk20241120.1bvr226823`),\n`human_readable_citation` (e.g. `BDSG (BGBl I, 2017 2097)` or\n`BVerfG, Kammerbeschluss vom 20.11.2024 - 1 BvR 2268/23`), and `source_url`.\n\n## Install\n\n```bash\ncd de-eli-mcp\npip install -e .\n```\n\n## Configure (Claude Code / any MCP client)\n\nCopy `.mcp.json.example` and adjust if needed:\n\n```json\n{\n  \"mcpServers\": {\n    \"de-eli-mcp\": { \"command\": \"de-eli-mcp\" }\n  }\n}\n```\n\nEnvironment:\n\n- `DE_ELI_BASE_URL` - default `https://testphase.rechtsinformationen.bund.de`\n- `DE_RII_BASE_URL` - default `https://www.rechtsprechung-im-internet.de`\n- `DE_OLDP_BASE_URL` - default `https://de.openlegaldata.io`\n- `DE_DIP_BASE_URL` - default `https://search.dip.bundestag.de`\n- `DE_DIP_API_KEY` - default: the public key the Bundestag documents on\n  `dip.bundestag.de/über-dip/hilfe/api` (valid until end of May 2027; rotates ~yearly)\n- `DE_ELI_CACHE_DIR` - default `~/.matematic/cache/de-eli`\n- `DE_ELI_AUDIT_DIR` - default `~/.matematic/audit`\n\nNeuRIS, RII and Open Legal Data are keyless. DIP needs an API key, but the Bundestag\npublishes a public one (shipped as the default) - zero setup either way.\n\n## Governance\n\n- **Public data only** - read-only against NeuRIS; no client data leaves the machine beyond search parameters.\n- **Audit log** - every tool call appends one JSON line to `~/.matematic/audit/de-eli-mcp.jsonl`.\n- **Vendor-neutral** - the server talks only to NeuRIS and the local filesystem; no LLM provider, no telemetry.\n- **Verifiable citations** - every response is independently checkable via `source_url`.\n\nSee `CONSTITUTION.md` (the binding rules) and `DISCOVERY.md` (the NeuRIS API map).\n\n## Tests\n\n```bash\npip install -e \".[dev]\"\n# offline (fixtures)\npytest tests/test_instructions_drift.py tests/test_rii_client.py tests/test_oldp_client.py tests/test_dip_client.py -v\n# live smokes (NeuRIS + RII + Open Legal Data + DIP)\npytest tests/test_smoke.py -v\n```\n\n## Licence\n\nApache-2.0. © Matematic Solutions / Wieslaw Mazur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatematicsolutions%2Fde-eli-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatematicsolutions%2Fde-eli-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatematicsolutions%2Fde-eli-mcp/lists"}