# Stat Gl [Health: Active]

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

## Description
Statistics Greenland (Grønlands Statistik) PxWeb MCP.

## Tools
Capabilities this server exposes over MCP:

- **subjects** — Browse the Statistics Greenland (Grønlands Statistik) PxWeb subject tree under the /Greenland database. Empty path returns root folders (type 'l') and tables (type 't'); supply a sub-path like 'BE/BE01' to drill deeper. Table IDs carry a '.px' or '.PX' suffix — pass verbatim to table_meta or query_…
- **table_meta** — Fetch dimension definitions and valid coded values for a Statistics Greenland PxWeb table. Path must be the full sub-path ending in '.px'/'.PX' (e.g. 'BE/BE01/BEXSAT1.PX'). Returns dimensions with codes and value lists — use these to build the selection body for query_table.
- **query_table** — POST a PxWeb query to a Statistics Greenland table and return observations as json-stat2. body must be {query:[{code, selection:{filter,values}}], response:{format:'json-stat2'}}. An empty query ({query:[]}) requests the full table but may be rejected for large tables — narrow selections using code…

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

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

## Documentation

## What Stat Gl MCP server does

The Stat Gl MCP server connects AI agents to the Statistics Greenland (Grønlands Statistik) PxWeb database. It provides a focused set of tools for finding statistical tables, understanding their dimensions, and retrieving observations in json-stat2 format.

The service is useful when a question depends on official Greenland statistics organized in PxWeb. An agent can start at the database root, locate a subject or table, inspect the table’s available dimensions and coded values, then submit a query using those codes. This workflow avoids guessing table paths or selection values.

## How it works

The Stat Gl MCP server can be reached through the hosted MCP URL `https://gateway.pipeworx.io/stat-gl/mcp`. The same gateway also exposes shared Pipeworx meta-tools, including routing and discovery tools, so the hosted endpoint may list more tools than the three Stat Gl data tools. Its `initialize` response defines the exact scope returned for a connection.

A local alternative runs the package as an MCP server over standard input and output. The local mode exposes only the Stat Gl pack’s tools and does not add the gateway’s shared meta-tools. The gateway and local package use the same underlying tool set.

The main sequence is:

1. Call `subjects` with an empty path to see root folders and tables.
2. Provide a path such as `BE/BE01` to browse deeper.
3. Pass a complete table path ending in `.px` or `.PX` to `table_meta`.
4. Use the returned dimension codes and values to construct a `query_table` request.
5. Read the returned observations as json-stat2.

## Setup and configuration

For an MCP client, add the hosted endpoint as a server URL:

```json
{
  "mcpServers": {
    "stat-gl": {
      "url": "https://gateway.pipeworx.io/stat-gl/mcp"
    }
  }
}
```

The README names Claude Desktop, Cursor, and Windsurf as compatible clients. The local package can be started with `npx -y @pipeworx/mcp-stat-gl`, or configured with a command and the same package argument. This local mode does not require a Pipeworx account or a gateway round trip.

The tools can additionally be called over HTTP. For example, the hosted tool endpoint accepts a POST request at `/v1/tools/stat_gl_subjects` with a JSON body containing a `path` value.

## Tools and capabilities

The Stat Gl MCP server includes these data tools:

- `subjects` browses the `/Greenland` subject tree. An empty path returns root folders and tables; a sub-path narrows the listing.
- `table_meta` returns a table’s dimensions, valid codes, and value lists. The path must include the complete table identifier and its `.px` or `.PX` suffix.
- `query_table` submits a PxWeb query and returns json-stat2 observations. Its body uses `query` entries containing a dimension `code` and a `selection` with `filter` and `values`, plus a response format of `json-stat2`.

An empty `query` requests the full table, but large tables may reject that request. Narrow selections are therefore preferable, using codes obtained from `table_meta`.

## Limitations and notes

The service is specific to Statistics Greenland’s PxWeb data and does not describe arbitrary databases. Table paths and dimension codes must match the source metadata. Results use json-stat2 rather than a separately documented tabular format. The hosted endpoint includes shared gateway tools, while the standalone stdio process does not. No environment variables are documented for running the server.

_Full upstream README: https://allmcps.com/mcp/stat-gl/readme_

