Statfin MCP Server

Statistics Finland (StatFin/PxWeb): search tables, read metadata, fetch JSON-stat2 data.

Local serverstdio

What is the Statfin MCP Server?

Statistics Finland (StatFin/PxWeb): search tables, read metadata, fetch JSON-stat2 data.

What you get

MCP server for official statistics from Statistics Finland (Tilastokeskus) — the StatFin database, exposed through the PxWeb API. Search 3000+ tables, inspect their dimensions, and pull data as JSON-stat2. No API key required.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
sok_tabellKeyword search across all StatFin tables. PxWeb has no server-side search, so this matches a **bundled index** (built from the full table tree) locally and returns the most relevant tables with their tabell_id.
hent_tabellMetadata for a table: title + dimensions (variables) with their valid value codes and labels. Read this first to learn which filter codes exist.
hent_dataFetch actual values as JSON-stat2, filtered by a flat {variabelkode: [verdier]} map. Supports special selections like {filter:'top', values:['1']} for the latest period.
list_emnerList the ~140 StatFin subject areas (e.g. vaerak = Population structure). Scope a search or browse when a keyword misses.

How to install the Statfin MCP Server

claude mcp add statfin -- npx -y npm

Example prompts to try

  • “Use Statfin to sok tabell.”
  • “Use Statfin to hent tabell.”
  • “Use Statfin to hent data.”

Frequently asked questions

Statistics Finland (StatFin/PxWeb): search tables, read metadata, fetch JSON-stat2 data. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.