inooLabs/destatis-mcp
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.
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):
| Variable | Description |
|---|---|
DESTATIS_API_TOKEN | Your GENESIS API token (required for most queries) |
DESTATIS_LANGUAGE | Response 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
| Tool | Description |
|---|---|
whoami | Check Destatis API connectivity (smoke test) |
find | Search the catalogue for tables, statistics, cubes, variables, or time series |
tables | List tables matching catalogue filters |
tables_to_statistic | List tables associated with a specific statistic code |
table | Retrieve table data as CSV (embedded in JSON) |
chart_to_table | Generate a chart image for a table |
map_to_table | Generate a map visualization for a table |
logincheck | Verify 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.