Skip to main content
Glama
README.md
# destatis-mcp

Unofficial MCP server for the tables of the Federal Statistical Office
(Statistisches Bundesamt, Destatis) from GENESIS-Online. One table per GENESIS
table, searchable by titles and code labels, queryable with SQL, with dated
snapshots and citations.

The source and its known problems are in `src/destatis_mcp/SOURCE.md`.

```bash
pip install .                                    # Python 3.10 or newer
```

The API needs a free personal token: register at
https://www-genesis.destatis.de, log in, and copy the token from
"Webservice-Schnittstelle (API)".

```bash
export GENESIS_TOKEN=...                          # never commit it
destatis-mcp --data-dir ~/destatis-data update --max-files 50 --allow-partial  # a first sample
destatis-mcp --data-dir ~/destatis-data update    # everything
destatis-mcp --data-dir ~/destatis-data serve     # MCP over stdio
```

Tools: `find_tables`, `describe_table`, `list_codes`, `query_sql`,
`list_versions`, `source_status`. Resources: `destatis://readme`,
`destatis://tables`, `table://destatis/<table>`.

Data: © Statistisches Bundesamt (Destatis), Datenlizenz Deutschland –
Namensnennung – Version 2.0.