Statistikbanken
Query Danmarks Statistik from Claude, ChatGPT or Cursor via a hosted MCP server. 8 ready-made tools, no API key — set up in minutes.
Overview
Official Danish public statistics from Danmarks Statistik's Statistikbanken. No API key required.
Prerequisites
- A stackgate.ai account
Getting credentials
- Open Integrations → Statistikbanken.
- Click Activate and choose Danish or English as your preferred response language.
All requests use the public Statistikbanken API and include source attribution.
Using with AI clients
- Dedicated endpoint:
POST /mcp/statistikbanken - Private gateway:
statistikbanken__*tools
Recommended workflow:
- Use
find_statisticsorlist_subjectsto discover tables. - Use
get_table_infoto inspect variables and valid codes. - Use
query_statisticsfor human-readable selections orget_table_datafor exact DST selectors.
Attribution
When using data, credit: Source: Danmarks Statistik, Statistikbanken.
Troubleshooting
- Missing required selections — inspect the table with
get_table_infoand narrow variables such as area, sex, or age. - Large response — narrow periods/variables or use CSV/BULK outside chat for exports.
- No matching value — use official value codes from tableinfo when a human-readable label is ambiguous.
Available tools
-
list_subjects
Browse the Danmarks Statistik Statistikbanken subject hierarchy, optionally including tables.
-
search_tables
Search Statistikbanken tables by subject, update recency, active status, or local text/code filter.
-
get_table_info
Get Statistikbanken table metadata, including variables and valid codes required for data queries.
-
get_table_data
Fetch data from a Statistikbanken table using explicit variable/code selections and return normalized JSON-stat rows.
-
find_statistics
Find candidate Statistikbanken tables for a natural-language topic or keyword.
-
query_statistics
Query a Statistikbanken table with human-readable variable selections, mapping names to official DST codes.
-
get_latest_from_table
Fetch the latest period(s) from a Statistikbanken table, using tableinfo to select the time variable.
-
get_updated_tables
List Statistikbanken tables updated in the last N days.
MCP endpoint:
https://stackgate.ai/mcp/statistikbanken
(HTTP) or via the
private gateway.