Stat Lv logo

Stat Lv

Query Statistics Latvia’s PxWeb portal through MCP tools for table discovery, metadata, and statistical data retrieval.

Install Stat Lv

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": {
    "stat-lv": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-stat-lv"
      ]
    }
  }
}

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

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

Overview

Stat Lv MCP server connects AI agents to Statistics Latvia’s Official Statistics Portal at data.stat.gov.lv through PxWeb. It provides tools to browse subject folders, inspect table dimensions and valid values, and submit structured queries for table data. Use it when an agent needs to find or retrieve Latvian official statistics. It is available through a hosted MCP endpoint, a full Pipeworx gateway, or a local stdio package.

Use cases

  • Browse Statistics Latvia’s subject hierarchy
  • Inspect table dimensions and valid values
  • Query selected official Latvian statistics
  • Connect an MCP client to a hosted or local endpoint

Key features

  • Navigate PxWeb subject folders and tables
  • Retrieve table metadata
  • Submit structured PxWeb queries
  • Support hosted MCP and local stdio modes
  • Expose HTTP tool calls through the gateway

Tools3

What Stat Lv lets your agent do. Expand a tool for its parameters.

Verified live~231 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.

8/8 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 age115 days
Maintainers1

Observed 2026-10-19 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-stat-lv (npm)

Adoption & maintenance

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

npm downloads457Package 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 Stat Lv works

What the Stat Lv MCP server does

The Stat Lv MCP server gives MCP-compatible clients access to Statistics Latvia’s Official Statistics Portal, data.stat.gov.lv. It works with the portal’s PxWeb data structure, where statistical content is organized into database folders, subfolders, and tables.

Agents can first explore the subject tree, then inspect a table’s schema before requesting data. This workflow helps identify the correct table path, dimensions, and permitted values instead of guessing query parameters. The server is intended for questions that depend on Latvia’s official statistical datasets.

How it works

The Stat Lv MCP server exposes three pack-specific tools:

  • subjects traverses the portal hierarchy. An empty path lists top-level database folders, such as OSP_PUB; deeper paths reveal folders and tables. Folder entries use type l, while table entries use type t.
  • table_meta returns a table definition, including its dimensions and valid values. The path should identify the table without a .px suffix.
  • query_table sends a PxWeb query object to a selected table and returns the requested data. It also expects the bare table path without .px.

The hosted pack endpoint is https://gateway.pipeworx.io/stat-lv/mcp. Its tool listing includes the three Stat Lv tools and shared Pipeworx gateway tools, including routing and discovery functions. The full gateway is available at https://gateway.pipeworx.io/mcp; both endpoints access the same gateway and data sources, while the pack endpoint lists Stat Lv tools directly.

Setup and configuration

For a hosted connection, add the endpoint as an MCP server in a compatible client. The README specifically shows Claude Desktop, Cursor, and Windsurf configurations using the url field.

The Stat Lv MCP server can also run locally over stdio with the npm package @pipeworx/mcp-stat-lv:

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

Running npx -y @pipeworx/mcp-stat-lv starts the local process. In this mode, the process handles MCP initialization, tool listing, and tool calls for the pack’s own tools without the shared gateway meta-tools or ask_pipeworx routing.

Tools and capabilities

The Stat Lv MCP server supports a practical discovery-to-query sequence. Use subjects to locate a relevant table, table_meta to learn which dimensions and values it accepts, and query_table to request the selected slice of data. The query body must follow the PxWeb query format expected by the target table.

The hosted gateway also supports calling tools through HTTP. For example, the subjects tool can be invoked with a POST request to /v1/tools/stat_lv_subjects and a JSON body containing a path. Tool inspection and pack discovery are available through the gateway’s documented HTTP endpoints.

Limitations and notes

The hosted pack endpoint does not list only the three pack-specific tools; shared Pipeworx tools are included as well. Its exact tool scope can change, so the connection’s initialize response is authoritative. Use the local stdio mode when only the Stat Lv tools are wanted and gateway routing is unnecessary.

Queries require valid PxWeb paths and request bodies. Table paths must omit .px, and the available dimension values should be obtained from table_meta before calling query_table.

The package is licensed under MIT.

Reviews

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

Frequently Asked Questions about Stat Lv

Stat Lv is an MCP server that connects AI agents to Statistics Latvia’s Official Statistics Portal at data.stat.gov.lv. Its main tools browse the subject tree, retrieve table metadata with dimensions and valid values, and query tables using PxWeb request objects. It supports hosted gateway access and local stdio execution.

Install it locally by running `npx -y @pipeworx/mcp-stat-lv` or adding that command and package to an MCP client’s stdio configuration. You can also use the hosted endpoint at `https://gateway.pipeworx.io/stat-lv/mcp`, which does not require a local package.

Yes, Stat Lv works with Cursor through the hosted MCP URL shown in the README. Add `https://gateway.pipeworx.io/stat-lv/mcp` as the server URL in Cursor’s MCP configuration. The same hosted connection also includes shared Pipeworx gateway tools.

Use `subjects` to find a table, `table_meta` to inspect its dimensions and valid values, then call `query_table` with a PxWeb query object. Provide the table’s bare path without the `.px` suffix for both metadata and data requests.

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 PreviewStat Lv AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stat-lv?style=directory)](https://allmcps.com/mcp/stat-lv)
HTML Embed
<a href="https://allmcps.com/mcp/stat-lv"><img src="https://allmcps.com/api/badge/stat-lv?style=directory" alt="Stat Lv on AllMCPs" /></a>