Economics
Data source: Statistics Denmark (Danmarks Statistik)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/dst/
claude_desktop_config.json
{
"mcpServers": {
"gnist-dst": {
"url": "https://context.gnist.ai/mcp/dst/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/dst/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "browse_subject", "arguments": {"subject_id": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/dst/
6 endpoints available:
GET /rest/dst/list_subjectsGET /rest/dst/browse_subjectGET /rest/dst/list_tablesGET /rest/dst/get_table_metadataGET /rest/dst/get_dataGET /rest/dst/report_feedback
Shell
curl "https://context.gnist.ai/rest/dst/browse_subject?subject_id=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/dst/browse_subject",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"subject_id": "example"
},
)
print(resp.json())
Command Line
Command
gc dst
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
list_subjectsList Statistics Denmark's top-level subject categories.
| Parameter | Type | Required | Description |
|---|---|---|---|
lang | string | optional | Language — 'en' for English, 'da' for Danish (default 'en'). (default: "en") |
browse_subjectBrowse a subject area to find sub-subjects and tables.
| Parameter | Type | Required | Description |
|---|---|---|---|
subject_id | string | required | Subject ID (e.g. '1' for People, '2' for Labour). |
lang | string | optional | Language — 'en' or 'da'. (default: "en") |
list_tablesList available statistical tables, optionally filtered by subject.
| Parameter | Type | Required | Description |
|---|---|---|---|
subject_id | any | optional | Subject ID to filter by (e.g. '1'). Omit for all tables. |
lang | string | optional | Language — 'en' or 'da'. (default: "en") |
get_table_metadataGet the structure of a Statistics Denmark table — its dimensions, variables, and valid values.
| Parameter | Type | Required | Description |
|---|---|---|---|
table_id | string | required | DST table ID (e.g. 'FOLK1A' for population, 'AKU100' for labour force). |
lang | string | optional | Language — 'en' or 'da'. (default: "en") |
get_dataQuery data from a Statistics Denmark statistical table.
| Parameter | Type | Required | Description |
|---|---|---|---|
table_id | string | required | DST table ID. |
filters | any | optional | List of variable filters. See get_table_metadata for valid codes. |
top_n | integer | optional | If no filters given, fetch this many latest time periods (default 5). (default: 5) |
lang | string | optional | Language — 'en' or 'da'. (default: "en") |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |