Statfin Fi logo

Statfin Fi

Browse Statistics Finland’s StatFin catalogue and query official Finnish statistics through MCP.

Install Statfin Fi

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "statfin-fi": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-statfin-fi"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly (8d ago).

Overview

Statfin Fi MCP server connects AI agents to Statistics Finland’s StatFin PxWeb API. It provides tools to browse subject folders, inspect table dimensions and valid values, and retrieve figures with plain-English selections or direct PxWeb request bodies. Use it when an agent needs official Finnish data covering areas such as population, education, employment, prices, housing, health, or national accounts. It is available through the Pipeworx gateway or as a local stdio package.

Use cases

  • Browse Finnish official statistics by subject
  • Inspect table dimensions before querying
  • Retrieve figures using plain-English selections
  • Send explicit PxWeb queries for precise filters

Key features

  • StatFin subject-tree browsing
  • Table metadata and valid-value lookup
  • Plain-English dimension selection
  • Direct PxWeb query-body support
  • Resolved selection reporting
  • json-stat2 figure output for small result sets

Tools3

What Statfin Fi lets your agent do. Expand a tool for its parameters.

Verified live~921 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

4/4 checks healthy over the last 50d

What it can do

From the 3 tools this server returned when we ran it.

Makes network requests · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age144 days
Maintainers1

Observed 2026-10-20 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @pipeworx/mcp-statfin-fi (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads450Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Statfin Fi works

What the Statfin Fi MCP server does

Statfin Fi MCP server exposes Statistics Finland’s official StatFin catalogue through the Model Context Protocol. The underlying source is the StatFin PxWeb API, which contains Finnish statistics on subjects including population, education, employment, consumer prices, housing, health, and national accounts.

The server supports three data-facing tools:

  • subjects navigates the catalogue. An empty path returns the top-level subject folders, while a folder path returns its tables. Results distinguish folders from tables.
  • table_meta describes one table’s dimensions and all valid values. Use it before constructing a detailed PxWeb request.
  • query_table returns figures. It accepts a plain-English select mapping or a body containing a PxWeb query that is passed through.

Tables use paths such as vkour/15ig.px, with a folder and a four-character table identifier. Older, longer table paths are rewritten to the current format when encountered.

How it works

A typical workflow starts with subjects to locate a relevant table, followed by table_meta to learn how that table is organized. The agent can then call query_table with labels such as a measure or category instead of first discovering every Finnish dimension code. The server resolves the requested values against that table’s metadata.

Unspecified dimensions receive defaults where the table provides a defensible choice. The year uses the latest published value, eliminable dimensions can be aggregated, and explicit total values such as SSS, Total, or a table-specific open-ended range may be selected. The response includes selection_resolved, making those choices visible. If no safe total exists, the dimension is returned in full rather than being silently reduced.

A label matching multiple values returns all matching rows. Matches that are too broad—more than 20—are reported as such. For results of up to 60 cells, the response also provides figures, pairing values with dimension labels instead of leaving the caller to decode a flat json-stat2 array.

Setup and configuration

The gateway endpoint can be added to an MCP client with the URL https://gateway.pipeworx.io/statfin-fi/mcp. The gateway requires no account for the initial calls and adds shared Pipeworx tools alongside the pack’s three tools. A full Pipeworx gateway connection is also available at https://gateway.pipeworx.io/mcp.

Statfin Fi MCP server can instead run locally over stdio with the npm package @pipeworx/mcp-statfin-fi:

config.json
{
  "mcpServers": {
    "statfin-fi": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-statfin-fi"]
    }
  }
}

The local process handles MCP initialization, tool listing, and tool calls for this pack only. No environment variables, registration, or authentication key are specified. HTTP tool calls are also available through the gateway’s tool API.

Tools and capabilities

subjects is useful for discovering the approximately 135 top-level subject folders and the tables inside them. table_meta is required when a caller needs native dimension codes or wants to construct a direct body query. query_table supports both natural-language value selection and explicit PxWeb JSON, returning figures in json-stat2-compatible form.

Dimension codes remain native Finnish even when the English StatFin endpoint is used, and some labels may not be translated. Plain-English selection avoids needing to infer those codes. Direct-body callers should inspect metadata first.

Limitations and notes

The data source is Statistics Finland, also known as Tilastokeskus, and its published data is licensed under CC BY 4.0. The server itself is licensed under MIT. The gateway connection includes shared Pipeworx meta-tools, so its tool list is larger than the three Statfin-specific tools. The local stdio package does not include those shared routing tools.

The gateway and local package use the same StatFin source and tools, but only the gateway provides ask_pipeworx routing across other Pipeworx data packs. For exact values, review selection_resolved, especially when dimensions were omitted from a request. A direct body request also requires the correct Finnish dimension codes and valid table values.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Statfin Fi

Statfin Fi is an MCP server that connects AI agents to Statistics Finland’s StatFin PxWeb API. Its main tools, subjects, table_meta, and query_table, browse the catalogue, inspect table dimensions and valid values, and retrieve official Finnish statistics using plain-English selections or direct PxWeb query bodies.

Install it as a local stdio server with npx and the package @pipeworx/mcp-statfin-fi. Add command npx with args -y and @pipeworx/mcp-statfin-fi to your MCP client configuration, or connect remotely through https://gateway.pipeworx.io/statfin-fi/mcp.

Call query_table with a table path and either a plain-English select object or a direct PxWeb body. Use subjects to find a table and table_meta to inspect its dimensions and valid values before submitting an explicit body.

Yes, Statfin Fi works with Cursor through the gateway MCP URL or its local stdio configuration. Add https://gateway.pipeworx.io/statfin-fi/mcp as a remote MCP server, or configure Cursor to launch the npm package with npx.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStatfin Fi AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/statfin-fi?style=directory)](https://allmcps.com/mcp/statfin-fi)
HTML Embed
<a href="https://allmcps.com/mcp/statfin-fi"><img src="https://allmcps.com/api/badge/statfin-fi?style=directory" alt="Statfin Fi on AllMCPs" /></a>