Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Legal Text MCP De

by klein-businessversion 2.1.3i★ 2iRuns on your computerOfficial site ↗
Registry nameio.github.klein-business/legal-text-mcp-de

How to install

What it does

German federal & state legal texts (BGB, DSGVO, …) with canonical IDs and cite-grade provenance.

  • Connects Runs on your computer
  • Account or key Needs ANTHROPIC_API_KEY
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity6/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score18/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Legal Text MCP De. Follow https://mcp.popnx.com/i/klein-business-legal-text-mcp-de.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Legal Text MCP De for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "legal-text-de": { "command": "uvx", "args": [ "legal-text-mcp-de" ], "env": { "ANTHROPIC_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ANTHROPIC_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Legal Text MCP De tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Legal Text MCP De key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Legal Text MCP De site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "legal-text-de": {
          "command": "uvx",
          "args": [
            "legal-text-mcp-de"
          ],
          "env": {
            "ANTHROPIC_API_KEY": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Legal Text MCP De and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Legal Text MCP De or shows a Legal Text MCP De tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • 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_DATASET Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments). · default false

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Legal Text MCP De yet

Legal Text MCP De runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Legal Text MCP De

  • You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Legal Text MCP De for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user legal-text-de --env ANTHROPIC_API_KEY=your-value -- uvx legal-text-mcp-de 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ANTHROPIC_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Legal Text MCP De tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Legal Text MCP De key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Legal Text MCP De site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user legal-text-de --env ANTHROPIC_API_KEY=your-value -- uvx legal-text-mcp-de

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Legal Text MCP De listed as connected

  6. Try it

    Use Legal Text MCP De and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Legal Text MCP De or shows a Legal Text MCP De tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • 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_DATASET Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments). · default false

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Legal Text MCP De for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "legal-text-de": { "command": "uvx", "args": [ "legal-text-mcp-de" ], "env": { "ANTHROPIC_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ANTHROPIC_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Legal Text MCP De tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Legal Text MCP De key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Legal Text MCP De site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Legal Text MCP De settings, ANTHROPIC_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Legal Text MCP De and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Legal Text MCP De or shows a Legal Text MCP De tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • 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_DATASET Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments). · default false

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Legal Text MCP De key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Legal Text MCP De for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "legal-text-de": { "type": "stdio", "command": "uvx", "args": [ "legal-text-mcp-de" ], "env": { "ANTHROPIC_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ANTHROPIC_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Legal Text MCP De tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Legal Text MCP De key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Legal Text MCP De site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Legal Text MCP De settings, ANTHROPIC_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Legal Text MCP De and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Legal Text MCP De or shows a Legal Text MCP De tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • 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_DATASET Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments). · default false

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Legal Text MCP De💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user legal-text-de --env ANTHROPIC_API_KEY=your-value -- uvx legal-text-mcp-de

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "legal-text-de": {
      "command": "uvx",
      "args": [
        "legal-text-mcp-de"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "legal-text-de": {
      "command": "uvx",
      "args": [
        "legal-text-mcp-de"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "legal-text-de": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "legal-text-mcp-de"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Values you fill in

  • DATASET_PATH env
    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_DATASET env
    Set to 'true' to refuse to start if the dataset cannot be loaded (recommended for hosted deployments).
  • ANTHROPIC_API_KEY secret required env
    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.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
31/wk
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
2.1.3
Published to registryi
May 18, 2026
Code last changedi
Nov 16, 2026
Maker
klein-business
Packages
pypi: legal-text-mcp-de
oci: ghcr.io/klein-business/legal-text-mcp-de:2.1.3
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account klein-business, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 4 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for legal-text-mcp-de@2.1.3

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/klein-business-legal-text-mcp-de.svg)](https://mcp.popnx.com/en/servers/klein-business-legal-text-mcp-de)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 92% of the other 1961 servers in this category
  • Published to the registry more recently than 7% of the other 1961 servers in this category
  • Basic checks equal to or better than 99% of the other 1961 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Legal Text MCP De safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: ANTHROPIC_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 4 days ago, and the latest version (2.1.3) reached the registry 6 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv), Docker on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 10 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 38Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
Legal Text MCP De
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseApache-2.0NOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

legal-text-mcp-de

Cite-grade German legal-text infrastructure for LLM agents.

~8 500 federal + Länder + EU laws via MCP, HTTP API, and a typer

shell CLI — all over the same runtime, with cryptographic provenance

from gesetze-im-internet.de and EUR-Lex / Cellar.

It is local or server-side infrastructure: no SaaS, no billing, no accounts, no tenant model, and no legal advice. The runtime loads either the committed fixture packages used by fast CI or a generated production corpus package built outside Git. Official text comes from gesetze-im-internet.de for German federal laws and from EUR-Lex / Cellar for EU acts such as the GDPR.

No legal advice. This software returns text and structured

metadata. It does not interpret the law, advise on it, or produce

any legal conclusion. The maintainer assumes no liability for use

in legal decision-making contexts.

Older internal documentation has been archived under docs-legacy/summary.md.

Status

LifecycleStable v2.1.3 (current patch on v2.1.0 typer-CLI minor) — MCP-native domain server with typer CLI
VersioningSemVer 2.0.0 (stability contract starts at v1.0.0)
LicenceApache License 2.0 — see LICENSE and NOTICE
UpstreamDerived from floleuerer/deutsche-gesetze-mcp (MIT, preserved)

Features

  • MCP tools for listing laws, fetching norms, resolving citations, full-text search, and source provenance.
  • HTTP API (FastAPI) over the same runtime, with structured /health, /ready, /laws, /search, and OpenAPI endpoints.
  • Provenance-first design: every law and norm carries source URL, fetch timestamp, content hash, and the parser path it traversed.
  • Two corpus modes: committed fixture packages for deterministic tests and CI, or a generated production package built from official sources at runtime.
  • No editorial bundling: this repository ships tooling, not legal text. Texts are loaded from official sources at runtime.

Installation

pip or uvx with an explicit dataset
pip install legal-text-mcp-de==2.1.3

DATASET_PATH=/path/to/dataset legal-text-mcp-de serve

Or:

DATASET_PATH=/path/to/dataset uvx legal-text-mcp-de==2.1.3 serve

  • The package and standard Docker image contain the runtime only.
  • DATASET_PATH must point to a normalized dataset directory with laws.json, norms.json, and search-index.json.
  • Public corpus OCI references and the -full image currently return DENIED; there is no verified public corpus download.
  • The CLI and HTTP runtime do not automatically prepare a usable dataset. A .tar.zst bundle is not a supported direct runtime path.
  • Build the nine registered federal laws from official sources using the federal corpus guide. This requires the current source checkout and includes a fix beyond v2.1.3.
  • prepare_data.build_corpus --sources bund is not implemented. Its archive output is separate from the serving dataset format.
Docker with a mounted dataset
docker run -p 8001:8001 \

-v /absolute/path/to/dataset:/data/legal-texts:ro \ ghcr.io/klein-business/legal-text-mcp-de:2.1.3 \ uv run --frozen --no-sync legal-text-mcp-de http

  • Use a dataset compatible with the selected runtime version.
  • /health checks the process; /ready checks whether the HTTP API can serve its dataset.
  • For freshly built federal data, follow the guide's source-image build instructions.
Mode 5 — Public-hosted service
// claude_desktop_config.json

{ "mcpServers": { "legal-de": { "url": "https://mcp.klein.business/legal/de", "transport": "streamable-http" } } }

CLI

legal-text-mcp-de ships a full subcommand CLI. Bare invocation prints --help. Common commands:

legal-text-mcp-de serve              # start the MCP server (replaces the v2.0 bare invocation)

legal-text-mcp-de http # start the FastAPI HTTP API legal-text-mcp-de laws --query DSGVO # list laws legal-text-mcp-de norm BGB "§ 433" # fetch a single norm legal-text-mcp-de search Werbung # full-text search legal-text-mcp-de corpus info # inspect locally cached bundle metadata legal-text-mcp-de version # version + Python + platform

Place --json or --output yaml before the subcommand for machine-readable output; the data field contains the HTTP response shape. See CLI reference for the full subcommand list.

BREAKING in v2.1.0: bare legal-text-mcp-de now prints --help.

Append serve to keep the v2.0 behaviour (started the MCP server).

Quickstart

MCP-client compatibility
  • Tested requires a recorded client version, transport, successful tools/list, and one successful tool call.
  • Configuration examples alone are not test evidence. Client runs below remain [UNVERIFIED]; protocol-level CI does not establish desktop-client compatibility.
ClientTestedstdiostreamable-HTTPSetup / evidence request
Claude DesktopPending[UNVERIFIED][UNVERIFIED]Quickstart
CursorPending[UNVERIFIED][UNVERIFIED]Quickstart
ContinuePending[UNVERIFIED][UNVERIFIED]Report a client test
ClinePending[UNVERIFIED][UNVERIFIED]Report a client test
ZedPending[UNVERIFIED][UNVERIFIED]Report a client test
Run the MCP server with the committed fixture corpus
uv sync --all-groups

DATASET_PATH=tests/fixtures/normalized \ STRICT_STARTUP=true \ uv run legal-text-mcp-de serve

The default transport is streamable HTTP at http://localhost:8001/mcp. The CLI does not expose stdio; see stdio transport status.

Dev shortcut. A Justfile wraps the common uv

invocations (just install, just test, just lint, just run,

just api, just docs). Install via brew install just. The

Justfile is optional — CI only uses uv directly.

Run the HTTP API

Since v2.1 the easiest way is the new CLI:

DATASET_PATH=tests/fixtures/normalized \

STRICT_STARTUP=true \ uv run legal-text-mcp-de http

The default port is 8001 (from settings.port / PORT env var); use --port to override.

Or directly via uvicorn (equivalent — same FastAPI app):

DATASET_PATH=tests/fixtures/normalized \

STRICT_STARTUP=true \ uv run uvicorn legal_text_mcp_de.http_api:app --host 127.0.0.1 --port 8001

The HTTP layer enforces MAX_REQUEST_BODY_BYTES (default 1048576 = 1 MiB) as a defence-in-depth body-size cap; over-limit requests return 413 Payload Too Large. The operator's reverse proxy is still expected to enforce a proxy-level limit on top of this.

Docker

The Docker image does not bundle legal text data. Mount a validated package at /data/legal-texts:

docker run --rm -p 8001:8001 \

-v /path/to/legal-text-package:/data/legal-texts:ro \ ghcr.io/klein-business/legal-text-mcp-de:2.1.3 serve

- See [`examples/docker-compose/http/`](examples/docker-compose/http/) for a minimal HTTP-mode Compose example.

MCP Resources

Since v2.0, the corpus is exposed as read-only legal:// URIs that any MCP client can load directly into its LLM context. Examples:

  • legal://laws — paginated index
  • legal://laws/bgb — BGB header + norm index
  • legal://laws/bgb/norms/par:433 — § 433 BGB as Markdown
  • legal://corpus/coverage — what's in the corpus

See docs/concepts/mcp-native.md for the full URI catalogue.

MCP Prompts (slash-commands)

Five curated workflows appear as slash-commands in MCP clients:

SlashArgsPurpose
/rechtsfragefrage, rechtsgebiet?Answer a German legal question with exact norm citations
/zitation-checkencitationResolve a citation (e.g. § 433 Abs. 1 BGB) + Stand-Datum
/norm-erklaerencode, normPlain-language explanation with cited cross-references
/recherchetopicMulti-step research using research_topic smart tool
/dsgvo-checkaktivitaetWalk through GDPR Art. 5, 6, 7, 9, 13, 14 against a processing activity

Smart To

Only the beginning is shown; read the rest in the repo