German Federal Law MCP Server (Gesetze im Internet) avatar

German Federal Law MCP Server (Gesetze im Internet)

Pricing

from $10.00 / 1,000 tool calls

Go to Apify Store
German Federal Law MCP Server (Gesetze im Internet)

German Federal Law MCP Server (Gesetze im Internet)

MCP server for AI agents: search German federal laws and ordinances in force (BGB, GG, HGB, StGB, UStG ...) and fetch a section's current text with its Absätze and Nummern, from gesetze-im-internet.de, the federal government's consolidated law database.

Pricing

from $10.00 / 1,000 tool calls

Rating

0.0

(0)

Developer

DARIKAMI GmbH

DARIKAMI GmbH

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

11 days ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

Share

An MCP server that gives AI agents the consolidated text of German federal law, from gesetze-im-internet.de. It covers about 6,000 federal laws and ordinances in force (BGB, GG, HGB, StGB, UStG, SGB ...), section by section. USD 0.01 per answered tool call. A call that finds nothing is free. Apify also bills the server's Standby usage. Works with MCP clients such as Claude, ChatGPT, Cursor and n8n.

Tool callWhat comes back
search_law("BGB")the Bürgerliches Gesetzbuch as the first hit, with its id and link
get_section("bgb", "433")§ 433 BGB with its heading, text and Absätze
get_section("UIG", "§ 2")§ 2 UIG "Begriffsbestimmungen", with Absätze, Nummern and Buchstaben
list_sections("bgb")the table of contents of the BGB: parts, sections and their headings
get_section("bgb", "99999")a free error result: no such section

The calls come from the live smoke test against gesetze-im-internet.de (06.11.2026). The full answer of one call is under Example.

Who uses it

  • Legal assistants for German users: quote the exact section of the BGB or HGB instead of the model's memory.
  • Tax and payroll agents: look up the UStG, the EStG or the SGB in the consolidated version the site publishes.
  • Developers of legal-tech products: one MCP endpoint instead of an XML parser of their own.

What it does not do

  • Federal law only: no state law (Landesrecht), no case law.
  • The consolidated text is not the official version. Only the Federal Law Gazette is binding. This is not legal advice.
  • It is independent: not affiliated with or endorsed by the Federal Ministry of Justice or the Federal Office of Justice.

Tools

Three tools:

ToolWhat it does
search_law(query)Finds laws by abbreviation (BGB, GG, HGB, StGB, UStG, SGB V) or by words of the title (Umsatzsteuer, Datenschutz). Returns up to 20 laws with id, title and link. An exact abbreviation comes first. All words must match.
get_section(law, section)Returns one section (§) or article in its current consolidated version: bgb + 433, GG + Art 1, UStG + § 3a. The answer has the heading, the plain text and the structure: Absätze with their Nummern and Buchstaben. It also has the footnotes and the law's status line ("zuletzt geändert durch ...").
list_sections(law, offset?, limit?)Returns the table of contents: the headings (Buch, Teil, Abschnitt, Titel) and the sections with their headings, in order. One page has up to 500 entries.

The law argument takes the id from search_law (bgb, ustg_1980) or the abbreviation (BGB, UStG).

Connect

The actor runs in Apify's Standby mode. The MCP endpoint (Streamable HTTP) is https://darikami--german-federal-law-mcp.apify.actor/mcp. Authenticate with your Apify API token as a bearer token:

{
"mcpServers": {
"german-federal-law": {
"url": "https://darikami--german-federal-law-mcp.apify.actor/mcp",
"headers": { "Authorization": "Bearer <your Apify token>" }
}
}
}

The actor has no input.

Example

get_section with { "law": "UIG", "section": "§ 2" } returns, abridged:

{
"law": { "id": "uig_2005", "abbreviation": "UIG", "title": "Umweltinformationsgesetz", "issued": "2004-12-22",
"status": ["Stand: zuletzt geändert durch Art. 2 G v. 25.2.2021 I 306", "..."], "builtOn": "2026-10-05" },
"url": "https://www.gesetze-im-internet.de/uig_2005/index.html",
"section": {
"number": "§ 2",
"heading": "Begriffsbestimmungen",
"text": "(1) Informationspflichtige Stellen sind\n 1. die Regierung und andere Stellen der öffentlichen Verwaltung. ...\n a) die obersten Bundesbehörden, ...",
"paragraphs": [
{ "number": "1", "text": "Informationspflichtige Stellen sind",
"items": [ { "number": "1.", "text": "die Regierung und andere Stellen ...",
"items": [ { "number": "a)", "text": "die obersten Bundesbehörden, ..." } ] } ] }
],
"footnotes": [],
"truncated": false
},
"source": "Gesetze im Internet (gesetze-im-internet.de), Federal Ministry of Justice and Federal Office of Justice - ...",
"notice": "The consolidated texts of gesetze-im-internet.de are not the official version: only the Federal Law Gazette (Bundesgesetzblatt) is legally binding. Not legal advice."
}

Pricing (pay per event)

EventPriceWhen
tool-callUSD 0.01one answered call of any of the three tools

Some calls are free. They return an error result with the reason:

  • a call that finds nothing (an unknown law, an unknown section);
  • a call with bad input;
  • a call that fails at the source.

Apify also bills the platform usage of the Standby run, in addition to the tool-call price. We do not set that charge. That usage runs while the server waits for requests, until the idle timeout stops it. Apify's documents describe a maximum cost per run for standard runs, not for a Standby call.

Data source and terms

  • Source: gesetze-im-internet.de. The index of all laws is gii-toc.xml. Each law is one XML file in a ZIP (https://www.gesetze-im-internet.de/<id>/xml.zip). The site offers this XML format for users "die die hier zur Verfügung gestellten Gesetze und Rechtsverordnungen über automatisierte Verfahren weiterverarbeiten möchten" (Hinweise, section 6, read 04.11.2026). Its robots.txt allows all paths.
  • Terms: laws and ordinances are official works. German copyright law does not protect them (§ 5 UrhG).
  • The text is not the official version. The site says: "Die im Internet abrufbaren, konsolidierten Gesetzestexte sind nicht die amtliche Fassung." Only the Federal Law Gazette is legally binding. Each answer says so (notice). This is not legal advice.
  • Federal law only. State law (Landesrecht) and case law are not included.
  • When more calls arrive than the actor reads at once, the extra calls get a free "busy" error result.
  • The text comes as the site publishes it, without warranty.

More official-data actors by darikami: Swiss UID & VAT validator · Swiss electricity tariffs · Swiss federal law MCP · SEC company fundamentals · German public tenders.