De Eli Mcp

io.github.matematicsolutions由 GitHub 帳號 matematicsolutions 發布v0.5.4更新於 Oct 24, 2026

German law MCP: legislation (NeuRIS), case law (RII, Open Legal Data), Bundestag DIP documents.

概覽

AI 產生的概覽

德國法律 MCP 伺服器,讓助理檢索聯邦法規、法院裁判與聯邦議院文件,並附上引用與來源連結。

可以做什麼
  • 檢索與讀取聯邦法規:依關鍵詞、ELI 與日期搜尋,取得法案中繼資料、全文(HTML 或 LegalDocML.de XML)、發布機關及近期變更
  • 檢索與讀取裁判:NeuRIS 測試版裁判、RII 入口網站的 BVerfG、BGH、BAG、BFH、BVerwG、BSG 與 BPatG 裁判,以及涵蓋各邦法院並支援全文檢索的 Open Legal Data
  • 檢索與讀取聯邦議院 DIP 資料:Drucksachen、全體會議紀錄與立法程序,並可取得全文
  • 查詢涵蓋範圍:說明已涵蓋哪些來源、擷取時間,以及明確未涵蓋的內容與替代方案
  • 每次回應附帶引用資訊:ELI 或 ECLI、可讀引用格式與來源連結
適用情境
適合助理需要回答德國法律條文、聯邦或各邦法院裁判、法案立法沿革等問題,且答案應附可查證引用的情境。著重法律檢索與草擬工作,而非一般網頁查詢。
執行需求
以本機 Python 套件執行(uvx de-eli-mcp 或 python -m de_eli_mcp),需 Python 及 uv 或 pip。需能連線四個公開資料來源。NeuRIS、RII 與 Open Legal Data 不需金鑰;DIP 使用內建公開金鑰,可用 DE_DIP_API_KEY 覆寫。選用變數可設定基礎位址、快取與稽核目錄。
安裝前請注意
對公開來源僅供讀取,但每次工具呼叫都會寫入本機稽核日誌,檢索參數會傳送給四個外部服務。首次使用時會從 GitHub Releases 取得小型設定檔,除非將 DE_ELI_RUNTIME_URL 設為空。NeuRIS 法規與裁判來源為測試版且不完整,Open Legal Data 為社群彙整資料且不宣稱完整。在啟用 Smart App Control 的 Windows 11 上,uvx 與 pip 啟動器會被封鎖,README 建議改用 python -m 執行,而非關閉該功能。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 De Eli Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

de-eli-mcp

Install (one command)

As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:

/plugin marketplace add matematicsolutions/de-eli-mcp/plugin install de-eli-mcp@de-eli-mcp

As a standalone server:

Published on PyPI + MCP Registry (io.github.matematicsolutions/de-eli-mcp). Run without cloning:

bash
uvx de-eli-mcp

Configure your MCP client (stdio):

json
{ "mcpServers": { "de-eli-mcp": { "command": "uvx", "args": ["de-eli-mcp"] } } }

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the de-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

bash
python -m pip install de-eli-mcppython -m de_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m de_eli_mcp.

json
{ "mcpServers": { "de-eli-mcp": { "command": "python", "args": ["-m", "de_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Building from source: see Install.

An MCP server for German law: NeuRIS (rechtsinformationen.bund.de) for federal legislation, three case-law sources - NeuRIS's beta case-law slice, the complete federal-courts aggregator rechtsprechung-im-internet.de (RII, official BMJ/juris portal) for BVerfG, BGH, BAG, BFH, BVerwG, BSG (+ BPatG), and Open Legal Data (de.openlegaldata.io, ~424k decisions from ~1 100 courts of ALL levels, including the state courts of all 16 Laender, with full-text search) - plus the Bundestag's DIP (dip.bundestag.de) for parliamentary documents and legislative history (~287k Drucksachen with full text, plenary transcripts, ~335k legislative procedures, Bundestag AND Bundesrat).

Part of the MateMatic eu-legal-mcp production line: the German counterpart of the Polish sejm-eli-mcp, built on the same architecture and citation contract against the German source.

Beta source (legislation + de_case_search). NeuRIS is an official but beta service; its dataset is not yet complete. Every response carries a dataset_note saying so.

Complete source (case law). de_rii_case_search / de_rii_get_case_text query rechtsprechung-im-internet.de directly. Per an independent audit (Legal Data Hunter, worldwidelaw/legal-sources), RII's coverage of BVerfG, BGH, BAG, BFH, BVerwG and BSG is marked status: complete - unlike NeuRIS's /v1/rechtsprechung, which only carries a small beta slice (and can drop fields such as ecli for the very same decision RII serves with a full ECLI - see BAG decision KARE600069049 / ECLI:DE:BAG:2024:... as a live example). Prefer the RII tools for these six courts.

State courts + full-text search (Open Legal Data). de_oldp_case_search / de_oldp_get_case query de.openlegaldata.io - a community open-data aggregator (Open Knowledge Foundation ecosystem, BMBF Prototypefund) of ~424k decisions from ~1 100 German courts at every level, including the state courts of all 16 Laender. It is NOT an official government service and does not claim completeness - for the six federal supreme courts prefer the RII tools; use OLDP for state case law and for full-text hunting (no other source here searches decision content).

Legislative history (Bundestag DIP). de_dip_search / de_dip_get_document query the parliament's official DIP API - Drucksachen (bills, motions, committee reports, government answers - the home of Gesetzesbegruendungen), plenary transcripts and legislative procedures, for Bundestag and Bundesrat. The Bundestag publishes a public API key on its help page (the current one is valid until end of May 2027 and ships as the default); set DE_DIP_API_KEY when it rotates or to use your own key.

Licence. German official works - statutes, ordinances, court decisions and official headnotes - are outside copyright under § 5 UrhG (gemeinfrei), which is the standard basis for reusing German legal data. NeuRIS is operated by the BMJV / DigitalService GmbH; RII is operated by the BMJ (juris GmbH). Neither publishes a separate API terms or key requirement. Open Legal Data's database is under ODbL v1.0 (the decisions themselves are gemeinfrei); DIP data is under Data licence Germany - attribution - 2.0 (dl-de/by-2-0). This connector only relays that public content, with attribution and a source_url. Caveat: NeuRIS is in test phase; re-check the terms at general availability. (This is a practitioner's read, not formal legal advice.)

The tools

ToolWhat it does
de_searchSearch legislation by term, ELI and date (GET /v1/legislation).
de_get_actFetch act metadata by ELI.
de_get_textFetch the full text (html or xml / LegalDocML.de).
de_list_publishersList the publication organs (BGBl I/II, Bundesanzeiger).
de_recent_changesActs published since a date, newest-first.
de_case_search / de_get_decision(_text)NeuRIS case-law beta slice (/v1/rechtsprechung; NeuRIS retired /v1/case-law with HTTP 410 in October 2026). If NeuRIS removes an endpoint again, these tools return endpoint_gone naming the fallback: de_rii_case_search for federal courts, de_oldp_case_search for state courts.
de_rii_case_searchSearch BVerfG/BGH/BAG/BFH/BVerwG/BSG/BPatG decisions via RII's master TOC (court, Aktenzeichen substring, date range).
de_rii_get_case_textFull text of one RII decision by doc_id - real ecli when the court publishes one, plus titelzeile/leitsatz/tenor/full content.
de_oldp_case_searchSearch 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.
de_oldp_get_caseFull decision text (HTML) by OLDP id or slug, with ECLI when the source carries one.
de_dip_searchSearch the Bundestag DIP - Drucksachen (287 327), Plenarprotokolle (5 789), Vorgaenge (334 524); filters titel, dokumentnummer, zuordnung (BT/BR), wahlperiode, dates; cursor pagination.
de_dip_get_documentOne 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.
de_coverageDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

Every response carries the contract: eli_uri (ELI e.g. eli/bund/bgbl-1/2017/s2097/2025-01-01/1/deu, or ECLI for RII case law e.g. ECLI:DE:BVerfG:2024:rk20241120.1bvr226823), human_readable_citation (e.g. BDSG (BGBl I, 2017 2097) or BVerfG, Kammerbeschluss vom 20.11.2024 - 1 BvR 2268/23), and source_url.

Install

bash
cd de-eli-mcppip install -e .

Configure (Claude Code / any MCP client)

Copy .mcp.json.example and adjust if needed:

json
{  "mcpServers": {    "de-eli-mcp": { "command": "de-eli-mcp" }  }}

Environment:

  • DE_ELI_BASE_URL - default https://testphase.rechtsinformationen.bund.de
  • DE_RII_BASE_URL - default https://www.rechtsprechung-im-internet.de
  • DE_OLDP_BASE_URL - default https://de.openlegaldata.io
  • DE_DIP_BASE_URL - default https://search.dip.bundestag.de
  • DE_DIP_API_KEY - default: the public key the Bundestag documents on dip.bundestag.de/über-dip/hilfe/api (valid until end of May 2027; rotates ~yearly)
  • DE_ELI_CACHE_DIR - default ~/.matematic/cache/de-eli
  • DE_ELI_AUDIT_DIR - default ~/.matematic/audit

NeuRIS, RII and Open Legal Data are keyless. DIP needs an API key, but the Bundestag publishes a public one (shipped as the default) - zero setup either way.

Governance

  • Public data only - read-only against public sources; no client data leaves the machine beyond search parameters.
  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/de-eli-mcp.jsonl.
  • Network - the server talks to the four public sources above (NeuRIS, RII, Open Legal Data, DIP) and the local filesystem. Once, on first use, it also fetches a small configuration file (de-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see. DE_ELI_RUNTIME_URL="" turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry.
  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md (the binding rules) and DISCOVERY.md (the NeuRIS API map).

Tests

bash
pip install -e ".[dev]"# offline (fixtures)pytest tests/test_instructions_drift.py tests/test_rii_client.py tests/test_oldp_client.py tests/test_dip_client.py -v# live smokes (NeuRIS + RII + Open Legal Data + DIP)pytest tests/test_smoke.py -v

Licence

Apache-2.0. © Matematic Solutions / Wieslaw Mazur.

來源:README.md,提交 c32f46e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.5.4最新Oct 8, 2026
  2. v0.5.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分