npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@prspktvs/suomi-mcp

v0.1.1

Published

Local-first MCP server for Finnish official statistics

Readme

suomi-mcp

Run a local Model Context Protocol server for Finnish official statistics. The server uses the hosted catalog only for discovery metadata. It retrieves live schemas and data directly from the selected publisher, and performs calculations and numeric checks on your machine.

Quick start

Requires Node.js 22 or later.

npx -y @prspktvs/suomi-mcp

Claude Desktop:

{
  "mcpServers": {
    "suomi-mcp": {
      "command": "npx",
      "args": ["-y", "@prspktvs/suomi-mcp"]
    }
  }
}

Claude Code:

claude mcp add suomi-mcp -- npx -y @prspktvs/suomi-mcp

Cursor and VS Code MCP clients can use the same command and args in their MCP server configuration.

The hosted service remains available at https://agentfinland.fi/mcp. To run the optional local Streamable HTTP transport on loopback:

npx -y @prspktvs/suomi-mcp --http --port 3333

It binds to 127.0.0.1. For browser clients, same-origin requests are required. Set SUOMI_MCP_HTTP_TOKEN to require a bearer token.

Data flow and privacy

Your MCP client
    │ stdio (or optional loopback HTTP)
    ▼
suomi-mcp on your computer ── search text and selected source IDs ──▶ AgentFinland catalog
    │
    ├── live schemas and data ──▶ official publisher PxWeb endpoints
    ├── calculations and numeric checks run locally
    └── evidence rows remain in memory and are not written to disk

The registry normally receives discovery search text and the provider/resource IDs looked up. If the registry is unavailable, rate limited, or its catalog route is not deployed, the local client sends discovery search text to the selected publishers' public PxWeb table-search endpoints. Publishers also receive the schema and data requests needed to answer your selected query. The server sends no prompt transcript, user identity, or analytics. It writes registry metadata and publisher schemas to the OS cache by default; set SUOMI_MCP_CACHE_DIR=off to disable disk caching.

Generated source cards are discovery hints, not official evidence. The inspected live publisher schema and returned data are the evidence used by the workflow.

Data sources

The local server retrieves schemas and data directly from the selected publisher. Discovery metadata comes from the AgentFinland catalog, which indexes publisher catalogs and the Avoindata.fi source index. The selected table's source page and metadata give its exact attribution and reuse terms.

| Publisher | Source | | --- | --- | | Statistics Finland | StatFin PxWeb and the PxWeb database selector, including Paavo | | Finnish Transport and Communications Agency (Traficom) | Statistics database | | Finnish Tax Administration (Vero) | Statistics database and official tax statistics | | Visit Finland | Statistical database | | Kototietokanta | Statistical database | | Natural Resources Institute Finland (Luke) | Statistics database | | Finnish Centre for Pensions (ETK) | Statistical database | | City of Helsinki | Helsinki statistical databases |

These links are starting points. Availability, dataset coverage, attribution, and reuse terms are determined by each publisher and the selected table.

Configuration

| Variable | Default | Purpose | | --- | --- | --- | | SUOMI_MCP_REGISTRY_URL | https://agentfinland.fi | Hosted discovery catalog origin | | SUOMI_MCP_API_KEY | unset | Optional key for a higher catalog rate limit | | SUOMI_MCP_PROVIDERS | statfin,traficom,vero,vero-web,visitfinland,kototietokanta,luke,etk,helsinki | Comma-separated publisher IDs | | SUOMI_MCP_HELSINKI | 1 | Set to 0 to disable Helsinki's beta HTML-form source | | SUOMI_MCP_CACHE_DIR | OS cache directory | Disk cache location; off disables it | | SUOMI_MCP_MAX_CELLS | 25000 | Maximum query cells, from 1 through 120000 | | SUOMI_MCP_SQL_ENGINE | auto | node, wasm, or auto (node:sqlite, with a sql.js fallback) | | SUOMI_MCP_LOG | info | Set to debug for structured logs on stderr | | SUOMI_MCP_HTTP_TOKEN | unset | Optional bearer token for local HTTP mode |

Anonymous catalog access is rate limited. Resource metadata is cached separately; only discovery searches count against the search quota. Run npx -y @prspktvs/suomi-mcp doctor to check the registry, publisher endpoints, and SQL engine.

Limits

The local server paces publisher requests, retries temporary upstream failures, validates selected dimension IDs and values against the inspected schema, and limits each query to the configured cell count. Publisher availability and terms are controlled by the publishers. Give credit to the provider named by each source and follow the data-specific terms linked in its metadata.

Development

From the monorepo root:

npm install
npm run build --workspace @prspktvs/suomi-mcp
npm test --workspace @prspktvs/suomi-mcp

See NOTICE, CONTRIBUTING.md, and SECURITY.md.