home / mcp / german law mcp server

German Law MCP Server

Provides access to German statutes, case law, and preparatory works with EU cross-references for Claude and MCP clients.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-german-law-mcp": {
      "url": "https://german-law-mcp.vercel.app/mcp",
      "headers": {
        "GERMAN_LAW_DB_PATH": "data/database.db",
        "GERMAN_LAW_INGEST_MAX_LAWS": "5000",
        "GERMAN_LAW_INGEST_MAX_CASES": "2000"
      }
    }
  }
}

You can access the German Law MCP Server to query German statutes, case law, and preparatory works with reliable EU cross-references. It supports deterministic, source-backed outputs and practical current-law retrieval, helping you perform legal research and integrate German law into Claude and other MCP clients.

How to use

Connect to the server from your MCP client to query German legal texts and EU cross-references. The hosted endpoint provides immediate access without local setup, while a local runtime lets you run the server on your machine for offline or controlled environments. Use the available tools to list documents, search statutes or case law, retrieve preparatory works, format citations, validate citations, and check currency. You can also explore EU and national implementations to verify cross-referenced provisions.

How to install

Prerequisites: You need Node.js and npm installed on your machine. Node 18+ is recommended for compatibility with modern MCP tooling.

Option A: Use remotely (no install required) โ€” connect to the hosted MCP URL directly.

Option B: Run locally with npm using npx โ€” install and start in one step.

Follow these concrete steps to run the server locally.

Core configuration and usage notes

Server connections can be established either through a remote HTTP endpoint or via a local process that you run on your machine. The HTTP configuration uses a URL to reach the MCP, while the stdio configuration launches the MCP as a local process with a command and arguments.

HTTP MCP server configuration

{
  "type": "http",
  "name": "german_law_http",
  "url": "https://german-law-mcp.vercel.app/mcp",
  "args": []
}

Local (stdio) MCP server configuration

{
  "type": "stdio",
  "name": "german_law_local",
  "command": "npx",
  "args": ["-y", "@ansvar/german-law-mcp"]
}

Environment variables

The server supports environment configuration to customize ingestion, database paths, and update behavior. Use the following environment variables as described in the core guidance.

Advanced tools and capabilities

Use core tools to perform precise legal research and verification. Available tools include: - law.list_countries: List all supported countries. - law.describe_country: Retrieve detailed information about a country. - law.search_documents: Search statute and regulatory documents. - law.search_case_law: Query case law collections. - law.get_preparatory_works: Retrieve preparatory materials such as DIP records. - law.format_citation: Format a legal citation according to jurisdictional rules. - law.check_currency: Validate that cited provisions are current and up to date. - law.build_legal_stance: Build a stance bundle from multiple sources for a given issue. - law.get_eu_basis: Retrieve EU legal basis related to a provision. - law.search_eu_implementations: Find EU implementations relevant to a provision. - law.get_national_implementations: Find national implementations related to a provision. - law.get_provision_eu_basis: Get the EU basis for a specific provision. - law.validate_eu_compliance: Check EU compliance of a given provision. - law.get_document: Retrieve a specific document by identifier. - law.parse_citation: Parse a citation string into structured components. - law.validate_citation: Validate that a citation is accurate and properly formed. - law.run_ingestion: Ingest and update the local corpus with new or updated sources.

Environment

See the environment configuration notes for details on how to set up data paths, ingestion caps, and auto-update behavior.

Legal and security notes

This tool is a research instrument for German law research and is not legal advice. For confidential matters, consider on-premise deployment to ensure privacy and compliance with applicable rules.

Roadmap and data status

The project maintains a roadmap focused on accuracy, deterministic outputs, and reliable citations. Current data ingestion covers statutes, case law, and preparatory works with EU cross-references.

Available tools

law.list_countries

List all supported countries by the MCP server.

law.describe_country

Return detailed information about a specific country.

law.search_documents

Search statutory and regulatory documents across source lanes.

law.search_case_law

Search case law collections for relevant decisions.

law.get_preparatory_works

Retrieve preparatory materials like DIP records.

law.format_citation

Format legal citations according to jurisdiction rules.

law.check_currency

Verify that cited provisions are current and valid.

law.build_legal_stance

Assemble legal stance bundles from multiple sources.

law.get_eu_basis

Fetch EU legal basis related to a provision.

law.search_eu_implementations

Find EU implementations matching a provision.

law.get_national_implementations

Find national implementations related to a provision.

law.get_provision_eu_basis

Retrieve EU basis for a given provision.

law.validate_eu_compliance

Check EU compliance for a provision.

law.get_document

Retrieve a specific document by identifier.

law.parse_citation

Parse a citation string into structured components.

law.validate_citation

Validate that a citation is properly formed and accurate.

law.run_ingestion

Ingest and update the local corpus with new sources.