GnistAI GnistAI
Log in

Statistics Finland (Tilastokeskus)

Finnish official statistics — population, employment, income, housing, trade, and economic data.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: Statistics Finland (Tilastokeskus)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/statfin/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-statfin": {
      "url": "https://context.gnist.ai/mcp/statfin/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/statfin/" \
  -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": "search_tables", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/statfin/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/statfin/search_tables?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/statfin/search_tables",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc statfin

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_tables
Search Statistics Finland's statistical table catalog by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch keywords (e.g. 'population by municipality').
langstringoptionalLanguage — 'en' for English, 'fi' for Finnish (default 'en'). (default: "en")
get_table_metadata
Get the structure of a Statistics Finland table — its dimensions, variables, and valid values.
ParameterTypeRequiredDescription
table_pathstringrequiredTable path from search results, e.g. 'vaerak/statfin_vaerak_pxt_11rb.px'. Combine search result 'path' and 'table_id'.
langstringoptionalLanguage — 'en' or 'fi'. (default: "en")
get_data
Query data from a Statistics Finland statistical table.
ParameterTypeRequiredDescription
table_pathstringrequiredTable path, e.g. 'vaerak/statfin_vaerak_pxt_11rb.px'.
filtersanyoptionalList of dimension filters. See get_table_metadata for valid codes.
top_nintegeroptionalIf no filters given, fetch this many latest time periods (default 5). (default: 5)
langstringoptionalLanguage — 'en' or 'fi'. (default: "en")
list_subjects
List Statistics Finland's top-level subject categories.
ParameterTypeRequiredDescription
langstringoptionalLanguage — 'en' or 'fi'. (default: "en")
browse_subject
Browse a subject path to find sub-categories and tables.
ParameterTypeRequiredDescription
pathstringrequiredSubject path (e.g. 'vaerak', 'tyti').
langstringoptionalLanguage — 'en' or 'fi'. (default: "en")
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related