regionalstatistik government

Find the right regional-statistics object, fetch and decode its data by Kreis or Gemeinde, and export tables to CSV/Excel — over the Regionaldatenbank Deutschland GENESIS API via the regionalstatistik-cli.

Install

  1. Install the regstat CLI:

    npm i -g @maschinenlesbar.org/regionalstatistik-cli
  2. Add the marketplace (once):

    /plugin marketplace add maschinenlesbar-org/plugins
  3. Install the plugin:

    /plugin install regionalstatistik@maschinenlesbar

Requirements such as API keys or accounts are listed in SKILLS.md.

MCP server

Tools for the questions agents ask, built on the same client as the CLI, for Claude Code or any other MCP client. It needs neither the plugin nor the CLI.

  1. Install the regstat-mcp server:

    npm i -g @maschinenlesbar.org/regionalstatistik-mcp
  2. Add it to Claude Code:

    claude mcp add regstat -- regstat-mcp

Or run the container image instead:

claude mcp add regstat -- docker run -i --rm ghcr.io/maschinenlesbar-org/regionalstatistik-mcp:0.9.0

Other clients, the HTTP transport, the options and any credentials are described in MCP.md.

Skills

  • /regionalstatistik:regionalstatistik-data-fetch

    Fetch and interpret the actual numbers from a Regionaldatenbank Deutschland table, cube or time series (regionalstatistik.de) using the regionalstatistik-cli, then explain the returned CSV. Trigger when the user asks "Einwohnerzahl von Heidelberg?", "population of a German district over time", "Arbeitslosenquote je Kreis?", "pull table 12411-01-01-4 for Baden-Württemberg", "how many inhabitants does Kreis 08221 have?", or has an object code and wants values narrowed by year and region. Handles the region-key/region-var and year filters and decodes the ";"-delimited German-format CSV that arrives inside Object.Content.

  • /regionalstatistik:regionalstatistik-statistics-finder

    Find the right regional official-statistics object (table, statistic, cube or time series) in Germany's Regionaldatenbank (regionalstatistik.de) using the regionalstatistik-cli. Trigger when the user asks "which table has population per Kreis?", "find official statistics on unemployment by district", "Einwohnerzahl von Heidelberg?", "Arbeitslosenquote je Kreis?", "which regionalstatistik table covers Gemeinde-level land use?", or needs to turn a regional topic into a concrete object code before pulling numbers. Searches with find, narrows with catalogue, and confirms the structure with metadata — handing back the exact code and the regional variables to filter by.

  • /regionalstatistik:regionalstatistik-table-download

    Export a Regionaldatenbank Deutschland table, cube, time series or saved result (regionalstatistik.de) to a file (CSV, flat "ffcsv", Excel, HTML or GENML) using the regionalstatistik-cli. Trigger when the user asks "download the population per Kreis as CSV", "save table 12411-01-01-4 for Baden-Württemberg to Excel", "export district unemployment figures to a spreadsheet", "give me the Gemeinde data as a file", or wants a spreadsheet-ready file rather than JSON in the terminal. Writes the server-rendered download (a ZIP) to a path you confirm, and reports what was written.

Details

Repository
maschinenlesbar-org/regionalstatistik-cli
CLI
@maschinenlesbar.org/regionalstatistik-cli (command regstat)
MCP server
@maschinenlesbar.org/regionalstatistik-mcp (command regstat-mcp)
Container image
ghcr.io/maschinenlesbar-org/regionalstatistik-mcp
Plugin version
0.6.0, from tag v0.9.0
License
AGPL-3.0-or-later
Data terms
DATA_LICENSE.md
Keywords
regionalstatistik, regionaldatenbank, genesis, genesis-online, statistik, official-statistics, regional-statistics, kreise, gemeinden, germany, opendata, bund.dev