German Legal MCP Server
Provides unified access to German federal and state legislation, court decisions, and European Union legal databases for comprehensive legal research. It enables users to search and retrieve full-text laws, parliamentary documents, and judicial rulings directly through the Model Context Protocol.
README
German Legal MCP Server
⚠️ WARNING: Work in Progress
This project is currently under active development and not production-ready. APIs may change without notice, and features may be incomplete or unstable. Use at your own risk.
A Model Context Protocol (MCP) server for German legal research, providing unified access to multiple legal databases.
Supported Sources
| Source | Status | Prefix | Authentication |
|---|---|---|---|
| Bundes- & Landesrecht | ✅ Available | legis: |
None (public) |
| Rechtsprechung im Internet | ✅ Available | rii: |
None (public) |
| InfoCuria (CJEU) | ✅ Available | icu: |
None (public) |
| EUR-Lex | ✅ Available | eul: |
None (public) |
| DIP Bundestag | ✅ Available | dip: |
Public key included |
| arXiv | ✅ Available | arxiv: |
None (public) |
Features
Bundes- & Landesrecht (legis:* tools)
- Federal and state legislation — BUND (all federal laws) + 16 Länder (all states)
- No authentication — free public access, no rate limits
- Unified interface — one set of tools for all jurisdictions
- Full text search — search across state legislation (Länder only)
- Resilient input — BUND accepts "§ 823", "823", "Art. 1", "Paragraph 51"
- Pandoc-compatible Markdown — clean conversion with Turndown
- Save to file —
save_pathparameter to avoid context pollution - Available states: BUND, BB, BW, BY, BE, HB, HE, HH, MV, NI, NW, RP, SL, SN, ST, SH, TH
Rechtsprechung im Internet (rii:* tools)
- Federal court decisions — BVerfG, BGH, BVerwG, BFH, BAG, BSG, BPatG (from 2010)
- Bavarian state courts — AG, LG, OLG, VG, VGH, FG, ArbG, LAG, BayVerfGH via gesetze-bayern.de
- No authentication — free public access
- Full text search — search across all federal court decisions
- Kurztext/Langtext — summary or full text via
partparameter - Randnummern — formatted as
[Rn. 5]{.rn}(pandoc spans) - Save to file —
save_pathparameter to avoid context pollution
InfoCuria — CJEU (icu:* tools)
- EU Court of Justice case law — judgments, opinions, orders from CJEU and General Court
- No authentication — free public access via InfoCuria API
- Multilingual — documents available in all EU languages (default: DE)
- Flexible case lookup — accepts case numbers (C-476/17), CELEX numbers, or internal IDs
- Randnummern — formatted as
[Rn. 5]{.rn} - Partial content —
sectionparameter for Rn ranges, headings, or line ranges - Save to file —
save_pathparameter to avoid context pollution
EUR-Lex (eul:* tools)
- EU legislation — directives, regulations, decisions, treaties (TFEU, TEU)
- No authentication — free public access via Cellar REST API and SPARQL
- Multilingual — documents available in all EU languages (default: DE)
- CELEX lookup — retrieve by CELEX number (e.g., "32016R0679" for GDPR)
- SPARQL search — search by title keywords, filter by resource type
- Partial content —
sectionparameter for articles (Art. 5), headings, or line ranges - Save to file —
save_pathparameter to avoid context pollution
DIP Bundestag (dip:* tools)
- Parliamentary documents — Bundestagsdrucksachen (Gesetzentwürfe, Beschlussempfehlungen, Anfragen)
- Legislative processes — Vorgänge with status tracking and linked documents
- Debate transcripts — full text search across Plenarprotokolle (BT and BR)
- Full text retrieval — extracted text including Gesetzesbegründungen, with section support
- Public API key included — works out of the box (key expires 2026-06-01, override via env var)
- Save to file —
save_pathparameter to avoid context pollution
arXiv (arxiv:* tools)
- Preprint search — search by keywords, author, title, abstract, or category
- Metadata + abstract — default response without full text fetch (token-efficient)
- HTML full text — Markdown conversion for papers from ~2024+ (LaTeXML HTML)
- PDF fallback — older papers without HTML return abstract + PDF link
- No authentication — free public API, no rate limits beyond ~1 req/3s
- Save to file —
save_pathparameter to avoid context pollution
Quick Start with npx
npx @metaneutrons/german-legal-mcp
or add your MCP client config (e.g., claude_desktop_config.json):
{
"mcpServers": {
"german-legal": {
"command": "npx",
"args": ["-y", "@metaneutrons/german-legal-mcp"]
}
}
}
Environment Variables
Provider Enablement
| Variable | Default | Description |
|---|---|---|
GLMCP_LEGIS_ENABLED |
true |
Bundes- & Landesrecht |
GLMCP_RII_ENABLED |
true |
Rechtsprechung im Internet |
GLMCP_ICU_ENABLED |
true |
InfoCuria (CJEU) |
GLMCP_EUL_ENABLED |
true |
EUR-Lex |
GLMCP_DIP_ENABLED |
true |
DIP Bundestag (auto-disabled after 2026-06-01 without own key) |
GLMCP_DIP_API_KEY |
Public key | Override the bundled public API key |
GLMCP_ARXIV_ENABLED |
true |
arXiv preprint search |
Tools
Bundes- & Landesrecht
| Tool | Description |
|---|---|
legis:search |
Search federal and state legislation. Parameter: query, state (e.g., "BW", "BE"), limit. Note: BUND does not support search. |
legis:get |
Retrieve a specific law/norm. BUND: id = "law/section" (e.g., "bgb/823"). Länder: id from search results. Optional save_path. |
legis:toc |
Compact table of contents for a law — section numbers and headings. Supports from/to range and depth filter. BUND: id = law abbreviation (e.g., "bgb"). |
legis:states |
List available jurisdictions with implementation status. |
Rechtsprechung im Internet
| Tool | Description |
|---|---|
rii:search |
Search for court decisions. Returns list with doc IDs, titles, and snippets. Use source: "BY" for Bavarian state courts. |
rii:get_decision |
Retrieve full text of a court decision by doc ID. part: K (Kurztext) or L (Langtext, default). Optional save_path to save to file. Use source: "BY" for gesetze-bayern.de IDs. |
InfoCuria — CJEU
| Tool | Description |
|---|---|
icu:search |
Search CJEU decisions and opinions. Returns case numbers, ECLI, dates, and document IDs. |
icu:get_document |
Retrieve full text by case number (C-476/17) or CELEX number. Supports section (Rn ranges, headings, line ranges) and save_path. |
EUR-Lex
| Tool | Description |
|---|---|
eul:search |
Search EU legislation via SPARQL. Filter by type (directive, regulation, decision, treaty). |
eul:get_document |
Retrieve EU legislation by CELEX number (e.g., "32016R0679" for GDPR). Supports section (Art. 5, Artikel 5-10, headings, line ranges) and save_path. |
DIP Bundestag
| Tool | Description |
|---|---|
dip:search |
Search Bundestagsdrucksachen by title. Filter by type (Gesetzentwurf, Anfrage, etc.), Wahlperiode, date range. |
dip:get |
Retrieve full text of a Drucksache by Dokumentnummer (e.g., "19/27426"). Supports section and save_path. |
dip:search_vorgang |
Search legislative processes (Vorgänge) with status and linked Drucksachen. |
dip:search_plenarprotokoll |
Full text search across parliamentary debate transcripts (BT and BR). |
arXiv
| Tool | Description |
|---|---|
arxiv:search |
Search preprints by keywords, author, title, abstract, or category. Returns metadata + abstract. |
arxiv:get |
Retrieve paper by arXiv ID. Default: metadata + abstract. With section or save_path: HTML full text as Markdown (~2024+, older: PDF link). |
Two-Phase Document Retrieval
All document tools use a two-phase approach to avoid flooding the LLM context:
- Outline — first call returns title, metadata, table of contents, and a preview
- Section — request specific parts by Randnummer, heading, or line range (served from cache)
- Save to file — write full document to disk, return metadata only
Section formats: "Rn 5", "Rn 5-12", "lines:100-200", or any heading text (fuzzy match).
Markdown Output
Documents are converted to pandoc-compatible Markdown:
- Randnummern:
[Rn. 5]{.rn}(bracketed spans) - Footnotes:
[^1]references with[^1]: textdefinitions
Development
npm test # Run tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
Commit Convention
This repo uses Conventional Commits enforced via Husky + commitlint.
Types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert
Scopes: legis, rii, icu, eul, dip, core, deps, config
Architecture
- Dynamic provider loading — providers auto-discovered from
src/providers/*/ - Cheerio + Turndown for HTML → pandoc Markdown conversion
- Zod for input validation
- Axios for HTTP requests (Legis, RII, InfoCuria, EUR-Lex, DIP, arXiv)
- Tools namespaced by source (
legis:,rii:,icu:,eul:,dip:,arxiv:)
License
GPL-3.0 - See LICENSE for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。