destatis-mcp

inooLabs/destatis-mcp

3.2

If you are the rightful owner of destatis-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Destatis MCP Server provides access to the German Federal Statistical Office's GENESIS database API, offering a range of official statistics.

Tools
8
Resources
0
Prompts
0

Destatis MCP Server

An MCP (Model Context Protocol) server that provides access to the German Federal Statistical Office (Statistisches Bundesamt / Destatis) GENESIS database API.

What it does

This server exposes tools for querying German official statistics, including:

  • Population and demographics (Bevölkerung)
  • Economy and trade (Wirtschaft)
  • Labor market statistics (Arbeitsmarkt)
  • Prices and inflation (Preise)
  • Environment and energy (Umwelt, Energie)
  • Health, education, social statistics, and more

Running locally

pip install -r requirements.txt
python server.py

The server runs on port 8003 using streamable HTTP transport.

Configuration

Set the following environment variables (or use a .env file):

VariableDescription
DESTATIS_API_TOKENYour GENESIS API token (required for most queries)
DESTATIS_LANGUAGEResponse language: de (default) or en

You can obtain a free API token by registering at www-genesis.destatis.de.

Docker

docker build -t destatis-mcp .
docker run -p 8003:8003 destatis-mcp

Or with docker-compose:

docker-compose up

Available tools

ToolDescription
whoamiCheck Destatis API connectivity (smoke test)
findSearch the catalogue for tables, statistics, cubes, variables, or time series
tablesList tables matching catalogue filters
tables_to_statisticList tables associated with a specific statistic code
tableRetrieve table data as CSV (embedded in JSON)
chart_to_tableGenerate a chart image for a table
map_to_tableGenerate a map visualization for a table
logincheckVerify credentials and check session status

Data source

All data comes from the public GENESIS API at https://www-genesis.destatis.de/genesisWS/rest/2020/. A free API token is required for most queries.