statfin-mcp MCP Server
Statistics Finland (StatFin/PxWeb): search tables, read metadata, fetch JSON-stat2 data.
statfin-mcp scores 46 (Fair), with no SPDX license recorded and written in TypeScript. It installs as a local process. It declares 4 tools. Filed under Search. GitHub shows 0 stars. Package registries report about 50 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
46 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 46 comes from
22 + 10 + 0 + 0 + 4 + 10 = 46. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "3121n-nor-data-statfin-mcp": { "command": "npx", "args": [ "-y", "@nor-data/statfin-mcp@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools4Tool docs quality grade B
All capabilitieshent_datatoolFetch actual values as JSON-stat2, filtered by a flat {variabelkode: [verdier]} map. Supports special selections like {filter:'top', values:['1']} for the latest period.
hent_tabelltoolMetadata for a table: title + dimensions (variables) with their valid value codes and labels. Read this first to learn which filter codes exist.
list_emnertoolList the ~140 StatFin subject areas (e.g. vaerak = Population structure). Scope a search or browse when a keyword misses.
sok_tabelltoolKeyword 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 tabellid.
About
@nor-data/statfin-mcp
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.
Part of the nor-data family of Nordic open-data MCP
servers. Built on the same pattern as the SSB (Norway) server — StatFin and SSB both
speak PxWeb, so the tools mirror each other.
Tools
| Tool | What it does |
|---|---|
sok_tabell | Keyword 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_tabell | Metadata for a table: title + dimensions (variables) with their valid value codes and labels. Read this first to learn which filter codes exist. |
hent_data | Fetch 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_emner | List the ~140 StatFin subject areas (e.g. vaerak = Population structure). Scope a search or browse when a keyword misses. |
All tools accept an optional lang (en default, fi, sv). Variable codes
are language-independent; only titles/labels are localised.
Example agent flow
sok_tabell({ query: "population by region" })→tabell_id: "vaerak/statfin_vaerak_pxt_11ra.px"hent_tabell({ tabell_id })→ sees variablesAlue(area),Vuosi(year),Tiedot(info)hent_data({ tabell_id, filtre: { Alue: ["SSS"], Vuosi: { filter: "top", values: ["1"] } } })→ latest national figures as JSON-stat2
Install
// Claude Desktop / Claude Code MCP config
{
"mcpServers": {
"statfin": {
"command": "npx",
"args": ["-y", "@nor-data/statfin-mcp"]
}
}
}
Develop
npm install
npm run build-index # crawl the StatFin tree → data/tables-index.json (~1–2 min)
npm run dev # run from source via tsx
npm run build # compile to dist/
The search index is bundled in the package (data/tables-index.json). Re-run
npm run build-index to refresh it (nightly is plenty — StatFin updates tables,
not the tree, frequently).
Notes & limits
- PxWeb allows 30 calls / 10 s and rejects queries over ~100 000 cells
(HTTP 403) — keep
hent_dataselections small (few regions × few years). - A few subjects (
vtp,kivih,sekn,akay) return HTTP 400 server-side and are skipped during indexing; this is a StatFin quirk, not a bug here. The index records them underskipped. - Data licensed under CC BY 4.0 by Statistics Finland.
License
MIT
Frequently asked questions
What is statfin-mcp MCP Server?
Statistics Finland (StatFin/PxWeb): search tables, read metadata, fetch JSON-stat2 data.
How do I install statfin-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. statfin-mcp MCP Server runs locally from the npm package @nor-data/statfin-mcp with the command npx -y @nor-data/statfin-mcp@0.1.0.
Does statfin-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for statfin-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does statfin-mcp MCP Server provide?
statfin-mcp MCP Server provides 4 tools: hent_data, hent_tabell, list_emner, and sok_tabell. See the full tool list for descriptions and parameters.
How is statfin-mcp MCP Server's trust score calculated?
statfin-mcp MCP Server scores 46 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.