Open Legal Data (Germany)
v0.16.5German court decisions (Rechtsprechung) and laws (Gesetze) with citation graph and citation checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_server_instructions Get server instructions
Return MCP server instructions (if any). Always call first.
get_court Get court details
Get detailed information about a specific court. Look up a court by ID, slug, or code. Returns full details including address, contact information, and case count. Args: court_id: Court database ID. slug: Court slug (e.g. "ag-charlottenburg"). code: Court ECLI code (e.g. "AGBECH" for the Amtsgericht Charlottenburg, "BGH").
| Parameter | Type | Description |
|---|---|---|
code | string | |
court_id | integer | |
slug | string |
list_courts List courts
Browse and filter German courts. Returns a list of courts matching the given filters. Use this to discover which courts are available before searching for cases. Args: court_type: Filter by court type code (e.g. "AG", "LG", "OLG", "BGH", "VG", "OVG", "BVerwG", "ArbG", "LAG", "BAG"). state: Filter by state name or slug (e.g. "Berlin", "bayern"). jurisdiction: Filter by jurisdiction. Accepts the English shortcuts "ordinary", "administrative", "labor", "social", "fiscal", "constitutional"…
| Parameter | Type | Description |
|---|---|---|
court_type | string | |
jurisdiction | string | |
level_of_appeal | string | |
limit | integer | |
search | string | |
state | string |
filter_cases Filter court decisions
Structured filtering of court cases using the database. Unlike search_cases (which uses full-text search), this tool filters cases using exact database fields. Returns case metadata without full content, newest first, with ``total`` and ``has_more``. If an exact count takes too long, ``total`` is a lower bound and ``total_is_lower_bound`` is true. A filter combination too broad to answer in time (e.g. a rare ``decision_type`` without court or date filter) returns an ``error`` with a ``hint`` to narrow it. Args: court…
| Parameter | Type | Description |
|---|---|---|
court_id | integer | |
court_slug | string | |
date_after | string | |
date_before | string | |
decision_type | string | |
ecli | string | |
file_number | string | |
limit | integer | |
offset | integer |
get_case Get court decision
Retrieve a court case by ID or slug. By default returns the case metadata and the complete, untruncated ``content`` as plain text (HTML tags removed, entities decoded, whitespace normalized; one line per paragraph, Randnummern as line prefix). To read a long decision piece by piece, request a snippet with ``offset`` and/or ``length``; both count characters of that plain text. In snippet mode ``content`` is omitted and a ``snippet`` object is returned: ``text``, ``offset``, ``length``, ``total_length``, ``has_more`` and ``…
| Parameter | Type | Description |
|---|---|---|
case_id | integer | |
full_text | ||
length | integer | |
offset | integer | |
slug | string |
get_case_statistics Get court decision statistics
Get aggregated case statistics. Returns case counts grouped by time period, optionally filtered by court, state, or jurisdiction. Without ``date_after`` only the **last 12 months** are counted. For counts over a longer period ("per year since 2018"), pass ``date_after`` (e.g. "2018-01-01") together with ``group_by="year"``. The response's ``date_range`` shows the period that was counted. Args: court_id: Filter by court ID. state: Filter by state name or slug. jurisdiction: Filter by jurisdiction. Acc…
| Parameter | Type | Description |
|---|---|---|
court_id | integer | |
date_after | string | |
date_before | string | |
group_by | string | |
jurisdiction | string | |
state | string |
get_similar_cases Find similar court decisions
Find court cases textually similar to a given case. Seeds an Elasticsearch "more like this" query with the full text of the given case and returns the most similar OTHER cases, ranked by similarity. Useful for comparative research: once you have one on-point decision, surface neighbouring case law without crafting a keyword query. For keyword- or citation-scoped neighbours instead, use search_cases. Args: case_id: The database ID of the seed case. limit: Maximum results (default 10, max 50). Values above 50 are…
| Parameter | Type | Description |
|---|---|---|
case_id * | integer | |
limit | integer |
search_cases Search court decisions
Full-text search for German court cases via Elasticsearch. Returns matching cases (with ``file_number``) and highlighted snippets. Does NOT return full case text - use get_case to retrieve complete content. The citation filters compose with ``query`` so you can answer "cases citing § 823 BGB that mention 'Mietrecht'" in one call — pass ``query="Mietrecht"`` together with ``cited_law_book="bgb"`` and ``cited_law_section="823"``. For "give me ALL citing cases" without keyword refinement, prefer the dedicated ``get_cases…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
cited_case_id | integer | |
cited_law_book | string | |
cited_law_section | string | |
court_code | string | |
decision_type | string | |
end_date | string | |
limit | integer | |
sort | string | |
start_date | string |
get_law_section Get law section
Get the full text of a specific law section. Retrieve law text by book code and section number, or by law ID. For example, get_law_section(book_code="BGB", section="823") returns the text of section 823 of the German Civil Code. By default the complete, untruncated ``content`` is returned as plain text (HTML tags removed, entities decoded, whitespace normalized; one line per paragraph or list item). Set ``offset`` and/or ``length`` to get a ``snippet`` of that plain text instead (see get_case for the snippet fields and paginatio…
| Parameter | Type | Description |
|---|---|---|
book_code | string | |
law_id | integer | |
length | integer | |
offset | integer | |
section | string |
list_law_books List law books
List available German law books (e.g. BGB, StGB, GG). Returns law books with their codes, titles, and section counts. Use this to discover what legislation is available before searching for specific law sections. Args: latest_only: Only show latest revisions (default True). search: Search book codes and titles. Best matches come first (exact code, code prefix, code part, whole word in the title, part of a title word); ``match`` on each result says which. If ``search`` is exactly a book cod…
| Parameter | Type | Description |
|---|---|---|
latest_only | boolean | |
limit | integer | |
search | string |
search_laws Search laws
Full-text search across law sections via Elasticsearch. Returns matching law sections with highlighted snippets. Does NOT return full text - use get_law_section to retrieve the complete content of a specific section. Args: query: Search query text (supports Lucene syntax). book_code: Optional filter by law book code, any case (e.g. "BGB", "BranntwMonG"). An unknown code returns an error with ``suggestions`` instead of an empty result. limit: Maximum results (default 10, max 50). Values above 5…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
book_code | string | |
limit | integer |
get_case_references Get references in a decision
Get forward references FROM a case (what this case cites). Returns all laws and cases that the given case references in its text. Useful for understanding the legal basis of a decision. Args: case_id: The database ID of the case.
| Parameter | Type | Description |
|---|---|---|
case_id * | integer |
get_cases_for_law Find decisions citing a law
Find all cases that cite a specific law section. Returns cases that reference the given statute section in their text. Useful for understanding how courts interpret a specific provision. To narrow the citing set by keyword, court, or date, use ``search_cases(query=..., cited_law_book=..., cited_law_section=...)`` instead. Args: book_code: Law book code (e.g. "BGB", "StGB"). section: Section identifier (e.g. "823"). law_id: Direct law database ID (alternative to book_code+section). sort: "date" (de…
| Parameter | Type | Description |
|---|---|---|
book_code | string | |
law_id | integer | |
limit | integer | |
section | string | |
sort | string |
get_citing_cases Find decisions citing a decision
Get reverse references TO a case (cases that cite this case). Find all cases that reference the given case in their text. Useful for understanding the impact and precedent value of a decision. To narrow the citing set by keyword, court, or date, use ``search_cases(query=..., cited_case_id=case_id)`` instead. Args: case_id: The database ID of the cited case. sort: "date" (default, newest first) or "most_cited" (the most influential citing cases first). limit: Maximum results (default 20, max 50). Value…
| Parameter | Type | Description |
|---|---|---|
case_id * | integer | |
limit | integer | |
sort | string |
validate_citation Validate legal citation
Check if a legal citation exists in the OLDP database. Validates Aktenzeichen (file numbers), ECLI identifiers, or paragraph references (e.g. "§ 823 BGB"). Use this to verify citations before presenting them to users. Args: citation: The citation to validate (e.g. "VI ZR 123/22", "ECLI:DE:BGH:2023:...", "§ 823 BGB"). citation_type: Type hint: "auto" (default), "file_number", "ecli", or "law_reference".
| Parameter | Type | Description |
|---|---|---|
citation * | string | |
citation_type | string |
submit_feedback Send feedback to OLDP
Send feedback about OLDP or this MCP server to the OLDP team. Use this to report bugs (wrong results, errors, broken tools), problems with the legal data (missing or wrong decisions, laws or references), or to request features. Only submit feedback the user wants to send or has agreed to; do not include personal data or confidential case details. Requires a signed-in connection (OAuth or API token); anonymous calls are answered with HTTP 401 and an OAuth challenge, so the client can offer the user to sign in. Args: c…
| Parameter | Type | Description |
|---|---|---|
category * | string | |
message * | string | |
context | string | |
subject | string |
get_platform_info Get platform coverage
Get OLDP platform coverage summary. Returns an overview of the data available on the Open Legal Data Platform, including counts of cases, laws, courts, and references. Call this first to understand what data you can search and retrieve.
search_legal Search laws and court decisions
Search BOTH legislation and court cases in one call. Returns the most relevant law sections AND court decisions for the query, **grouped by type**. Use this when a legal question may be answered by statute or by case law and you don't yet know which — e.g. "ortsübliche Vergleichsmiete" surfaces § 558 BGB *and* BGH decisions together. For type-specific control (citation filters, court/date filters), use ``search_cases`` / ``search_laws``. Matching is on the words of the text: a law section is found only if it contains the que…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
whoami Show connection and rate limit
Show who you are connected as and your remaining request budget. Call this before a long task to check how many requests are left, or to learn how to get a larger budget. Every HTTP request to the MCP server counts against the budget, including this call; once nothing is left, requests (this one too) are rejected with HTTP 429 until the window frees up. Returns: - ``authenticated``: whether the connection is signed in. - ``user``: ``username`` and ``profile_complete``, or null. - ``auth_method``: ``oauth``, ``api_token``, ``lega…