# Hagstova Fo [Health: Active]

**Category:** 🧮 Data Science Tools  
**Repository:** https://github.com/pipeworx-io/mcp-hagstova-fo  
**GitHub Stars:** 0  
**npm Downloads (last month):** 403  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hagstova-fo

## Description
Statistics Faroe Islands (Hagstova Føroya) PxWeb MCP.

## Tools
Capabilities this server exposes over MCP:

- **subjects** — Browse the Statistics Faroe Islands (Hagstova Føroya) PxWeb subject tree. Empty path returns the database list; drill into 'H2' for folders (type 'l') and tables (type 't', id ends '.px'). Use the returned path to call table_meta or query_table.
- **table_meta** — Fetch dimension definitions and valid coded values for a Hagstova Føroya PxWeb table. Path must be the full table path ending in '.px' (e.g. 'H2/UO/UO01/land_oyfj.px'). Returns dimensions with their codes and value lists — required input for building a query_table body.
- **query_table** — POST a PxWeb query to a Hagstova Føroya table and return observations as json-stat2. body must be {query:[{code, selection:{filter,values}}], response:{format:'json-stat2'}}. PxWeb rejects requests exceeding its cell limit — narrow each dimension's selection.values using codes from table_meta.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hagstova-fo": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-hagstova-fo"]
  }
}
```

## Documentation

## What the Hagstova Fo MCP server does

The Hagstova Fo MCP server gives MCP-compatible agents access to the Statistics Faroe Islands (Hagstova Føroya) PxWeb database. It supports a metadata-first workflow: find a subject or table, inspect the table's dimensions and allowed values, then request only the observations needed for the task.

The service is intended for questions that depend on structured statistical tables, such as selecting specific dimensions and retrieving machine-readable observations. It does not provide a general-purpose search interface to arbitrary websites; its listed tools operate on the Hagstova Føroya PxWeb subject tree and tables.

## How it works

Start with `subjects`. Calling it with an empty path returns the database list. Further paths expose folders and tables. Under the `H2` branch, folders have type `l`, while tables have type `t` and identifiers ending in `.px`. The path returned while browsing becomes the input for the other tools.

Use `table_meta` with a complete table path, such as `H2/UO/UO01/land_oyfj.px`. The response describes the table's dimensions and supplies the coded values accepted by each dimension. Those codes are needed to construct a valid query.

Finally, call `query_table` with a PxWeb request body. Each query item identifies a dimension by `code` and provides a `selection` containing a filter and selected values. The response format must be `json-stat2`. PxWeb enforces a cell limit, so select a narrow set of values for every dimension instead of requesting an entire large table.

## Setup and configuration

The hosted connection uses this MCP URL:

`https://gateway.pipeworx.io/hagstova-fo/mcp`

The pack endpoint also exposes shared Pipeworx meta-tools in addition to the three Hagstova tools. Its `initialize` response is the authoritative source for the tools available at connection time. The full gateway is available at `https://gateway.pipeworx.io/mcp` when an agent needs direct access to all catalog packs.

For a local connection, install and run the package with npx:

```json
{
  "mcpServers": {
    "hagstova-fo": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-hagstova-fo"]
    }
  }
}
```

The local process communicates over stdin and stdout and provides only this pack's tools.

## Tools and capabilities

- `subjects`: Browse the Hagstova Føroya PxWeb hierarchy and locate folders or `.px` tables.
- `table_meta`: Read dimension definitions and valid coded values for a specific table.
- `query_table`: Submit filtered PxWeb selections and receive observations in json-stat2 format.

The Hagstova Fo MCP server can also be used through the hosted gateway's `ask_pipeworx` tool. That route accepts a plain-English question and can choose a catalog tool and populate its arguments, but it belongs to the shared gateway layer rather than the standalone local package.

## Limitations and notes

Queries must use valid dimension codes and values obtained from the selected table's metadata. Requests that exceed PxWeb's cell limit are rejected, so narrowing selections is part of the normal workflow. The hosted pack endpoint includes shared gateway tools, whereas the standalone stdio server exposes only the three pack-specific tools. Both connection styles use the same Hagstova source and tool set for this pack.

_Full upstream README: https://allmcps.com/mcp/hagstova-fo/readme_

