klein-business avatar

Legal Text Mcp De

klein-business/legal-text-mcp-de

Exposes German federal and state legal texts through MCP tools for listing laws, fetching specific norms by citation, resolving references, and running full-text searches. Every text includes provenance metadata: source URL, fetch timestamp, content hash, and parser path. Loads from gesetze-im-internet.de for federal law and EUR-Lex for EU regulations like GDPR. Ships with both an MCP interface and a parallel FastAPI HTTP API over the same runtime. You can run it with fixture data for testing, pull signed corpus bundles from GHCR, or build your own corpus from official sources. Useful when you need programmatic access to authoritative German legal text with audit-grade sourcing, not legal interpretation.

tools
10
auth
Secret needed
transport
STDIO
env vars
3
last updated
May 18, 2026

Tools

10 tools

Public tool metadata for what this MCP can expose to an agent.

list_lawsList loaded laws with optional metadata filter.

List loaded laws with optional metadata filter.

No parameter schema in public metadata yet.

get_lawLaw metadata and normalised norm summaries.

Law metadata and normalised norm summaries.

No parameter schema in public metadata yet.

get_normReturn one structured norm.

Return one structured norm.

No parameter schema in public metadata yet.

search_lawsSearch normalised texts.

Search normalised texts.

No parameter schema in public metadata yet.

resolve_citationResolve structured citations without legal interpretation.

Resolve structured citations without legal interpretation.

No parameter schema in public metadata yet.

get_source_metadataSource metadata for a law or the corpus.

Source metadata for a law or the corpus.

No parameter schema in public metadata yet.

get_source_limitationsSource limitations for a query.

Source limitations for a query.

No parameter schema in public metadata yet.

get_corpus_coverageCorpus coverage summary.

Corpus coverage summary.

No parameter schema in public metadata yet.

get_related_normsRelated norms for a given norm.

Related norms for a given norm.

No parameter schema in public metadata yet.

research_topicMulti-step research tool that orchestrates LLM-sampling calls to produce a structured research report.

Multi-step research tool that orchestrates LLM-sampling calls to produce a structured research report.

No parameter schema in public metadata yet.

Sponsors

Configuration

DATASET_PATH

Path to a normalised corpus directory or a corpus archive (legal-texts-de-*.tar.zst). Defaults to the bundled fixture; production deployments should mount /data/corpus/latest.tar.zst.

STRICT_DATASETdefault: false

Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments).

ANTHROPIC_API_KEYsecret

Optional. Required only for the smart `research_topic` tool which uses LLM-assisted synthesis. Without it, the tool degrades gracefully to a ranked-search fallback.

Readme

legal-text-mcp-de: German legal text MCP server banner


View the full README on GitHub

Details

Repository
github.com/klein-business/legal-text-mcp-de
Website
klein-business.github.io/legal-text-mcp-de
Package
legal-text-mcp-de
Transport
STDIO
Auth
Required
Registry
MCP registry, active