Open Legal Data (Germany)

v0.16.5
io.openlegaldata/de Checked 2 hours ago Published 20 days ago

German 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").

ParameterTypeDescription
codestring
court_idinteger
slugstring

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"…

ParameterTypeDescription
court_typestring
jurisdictionstring
level_of_appealstring
limitinteger
searchstring
statestring

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…

ParameterTypeDescription
court_idinteger
court_slugstring
date_afterstring
date_beforestring
decision_typestring
eclistring
file_numberstring
limitinteger
offsetinteger

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 ``…

ParameterTypeDescription
case_idinteger
full_text
lengthinteger
offsetinteger
slugstring

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…

ParameterTypeDescription
court_idinteger
date_afterstring
date_beforestring
group_bystring
jurisdictionstring
statestring

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…

ParameterTypeDescription
case_id *integer
limitinteger

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…

ParameterTypeDescription
query *string
cited_case_idinteger
cited_law_bookstring
cited_law_sectionstring
court_codestring
decision_typestring
end_datestring
limitinteger
sortstring
start_datestring

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…

ParameterTypeDescription
book_codestring
law_idinteger
lengthinteger
offsetinteger
sectionstring

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…

ParameterTypeDescription
latest_onlyboolean
limitinteger
searchstring

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…

ParameterTypeDescription
query *string
book_codestring
limitinteger

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.

ParameterTypeDescription
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…

ParameterTypeDescription
book_codestring
law_idinteger
limitinteger
sectionstring
sortstring

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…

ParameterTypeDescription
case_id *integer
limitinteger
sortstring

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".

ParameterTypeDescription
citation *string
citation_typestring

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…

ParameterTypeDescription
category *string
message *string
contextstring
subjectstring

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.

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…