Statistics Finland (StatFin) PxWeb MCP.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add mcp-statfin-fi -- npx -y @pipeworx/mcp-statfin-fi{
"mcpServers": {
"mcp-statfin-fi": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-statfin-fi"]
}
}
}MCP Servers overview
# statfin-fi
Statistics Finland (StatFin) — the full catalogue of Finnish official statistics published by Tilastokeskus, served over its PxWeb API: population, education, employment, consumer prices, housing, health and national accounts.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1679+ live data sources.
## Tools
| Tool | What it returns |
|---|---|
| `subjects` | The StatFin subject tree. `path` empty lists ~135 subject folders; `path: "vkour"` lists that folder's tables. Entries with `type: "l"` are folders, `type: "t"` are tables. |
| `table_meta` | One table's dimensions and every valid value, when you want to see what a table breaks down by. |
| `query_table` | Actual figures. Give it `select` in plain English and it resolves the codes itself; give it `body` and it passes your PxWeb query straight through. |
### Table paths
A table path is `<folder>/<id>.px` where the id is the **bare 4-character table code**:
```
vkour/15ig.px Population aged 15 or over by level of education, gender, age and origin
khi/11xs.px Consumer price index
```
The longer `statfin_<folder>_pxt_<id>.px` form appears throughout older StatFin
documentation. It was retired upstream and now returns **400 on every table**;
this pack rewrites it to the current form, so a caller arriving with the
documented-but-dead path still gets data (fleet #497).
### Asking in plain English
`select` maps a dimension to a value using either the English label or the
native code, and `query_table` resolves both against the table's own metadata:
```json
{ "path": "vkour/15ig.px", "select": { "Information": "tertiary level qualification" } }
```
→ `1672232` Finns aged 15+ hold a tertiary qualification (2025), alongside the
matching share, `34.5%`.
Dimensions you don't name are filled in for you: the year defaults to the
latest published, dimensions StatFin can eliminate are aggregated to their
total, and a dimension with an explicit total value (`SSS`, `Total`, or an
open-ended range starting at the table's own floor such as age `15-`) uses it.
**Every one of those choices comes back in `selection_resolved`**, and a
dimension with no defensible total is returned in full rather than silently
collapsed — a defaulted dimension nobody can see is how a wrong number gets
read as a right one.
A value that matches several rows returns all of them rather than picking one,
so `{"Information": "tertiary level qualification"}` yields both the count and
the percentage. If it matches more than 20, that is reported as too broad.
Results also carry `figures`: the json-stat2 `value[]` array paired with its
dimension labels, for results up to 60 cells. That is the readable form —
json-stat2's flat array over an implicit cartesian product is not.
### Dimension codes are native Finnish
Even on the `/en/` endpoint the dimension *codes* are Finnish, and some labels
are untranslated. There is no way to guess them, which is what `select` exists
to spare you; pass `body` yourself and you need `table_meta` first.
For `vkour/15ig.px`:
| Code | Meaning | Total value |
|---|---|---|
| `ikaryhma_10_20180101` | Age | `15-` (**not** `SSS`) |
| `sukupuoli_9_20180101` | Gender | `SSS` |
| `syntypera_101_20180101` | Origin (label renders as `Syntyperä`) | `SSS` |
| `timeperiod_y` | Year | — |
| `contentscode` | Measure, e.g. `kaste5T8` = population with a tertiary level qualification | — |
Worked call — population aged 15+ with a tertiary qualification, 2024:
```json
{
"path": "vkour/15ig.px",
"body": {
"query": [
{ "code": "ikaryhma_10_20180101", "selection": { "filter": "item", "values": ["15-"] } },
{ "code": "sukupuoli_9_20180101", "selection": { "filter": "item", "values": ["SSS"] } },
{ "code": "syntypera_101_20180101", "selection": { "filter": "item", "values": ["SSS"] } },
{ "code": "timeperiod_y", "selection": { "filter": "item", "values": ["2024"] } },
{ "code": "contentscode", "selection": { "filter": "item", "values": ["kaste5T8"] } }
],
"response": { "format": "json-stat2" }
}
}
```
→ `value: [1641336]`, table updated 2026-06-18.
## Auth
None. Keyless, no registration, no rate-limit key. Reachable from Cloudflare egress.
## Data sources
- API root: `https://pxdata.stat.fi/PXWeb/api/v1/en/StatFin`
- Portal: https://pxdata.stat.fi/PxWeb/pxweb/en/StatFin/
- Publisher: Statistics Finland / Tilastokeskus — https://stat.fi/en
- Licence: Creative Commons Attribution 4.0 International (CC BY 4.0)
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"statfin-fi": {
"url": "https://gateway.pipeworx.io/statfin-fi/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/statfin-fi/mcp` returns the tools in the table
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's `initialize` response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
`ask_pipeworx`, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 1679+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one.
## No MCP client? Call it over HTTP
```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/statfin_fi_subjects \
-H 'Content-Type: application/json' \
-d '{"path":""}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/statfin_fi_subjects`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no
gateway round-trip:
```json
{
"mcpServers": {
"statfin-fi": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-statfin-fi"]
}
}
}
```
Or run it directly to confirm it starts:
```bash
npx -y @pipeworx/mcp-statfin-fi
```
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
for **only** this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
## Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:
```
ask_pipeworx({ question: "your question about Statfin Fi data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
What people ask about mcp-statfin-fi
What is pipeworx-io/mcp-statfin-fi?
+
pipeworx-io/mcp-statfin-fi is mcp servers for the Claude AI ecosystem. Statistics Finland (StatFin) PxWeb MCP. It has 0 GitHub stars and its last recorded update is dated 2026-09-25.
How do I install mcp-statfin-fi?
+
You can install mcp-statfin-fi by cloning the repository (https://github.com/pipeworx-io/mcp-statfin-fi) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is pipeworx-io/mcp-statfin-fi safe to use?
+
Our security agent has analyzed pipeworx-io/mcp-statfin-fi and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains pipeworx-io/mcp-statfin-fi?
+
pipeworx-io/mcp-statfin-fi is maintained by pipeworx-io. The last recorded GitHub activity is dated 2026-09-25, with 0 open issues.
Are there alternatives to mcp-statfin-fi?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mcp-statfin-fi to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/pipeworx-io-mcp-statfin-fi)<a href="https://claudewave.com/repo/pipeworx-io-mcp-statfin-fi"><img src="https://claudewave.com/api/badge/pipeworx-io-mcp-statfin-fi" alt="Featured on ClaudeWave: pipeworx-io/mcp-statfin-fi" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.