Uk Ons logo

Uk Ons

Queries UK official statistics through dataset, edition, version, and observation tools with no authentication.

Install Uk Ons

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

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

Automated check passed— started and listed 6 tools correctly (5d ago).

Overview

Uk Ons MCP server exposes UK Office for National Statistics data through MCP tools for datasets, editions, versions, and observations. It can connect through the Pipeworx gateway over streamable HTTP or run locally as a standalone stdio server. No authentication is required for the initial gateway calls, and the local package needs no Pipeworx account. Use it when an agent needs to discover and retrieve official UK statistics from the ONS API.

Use cases

  • Discover UK ONS datasets
  • Retrieve dataset editions and versions
  • Query observations by dimensions
  • Ask plain-language questions through the Pipeworx gateway

Key features

  • List ONS datasets with pagination
  • Retrieve dataset metadata
  • Browse dataset editions
  • Fetch specific dataset versions
  • Query observations by dimensions
  • Run through gateway HTTP or local stdio

Tools6

What Uk Ons lets your agent do. Expand a tool for its parameters.

Verified live~628 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 6 tools this server returned when we ran it.

Makes network requests · 3Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age163 days
Maintainers1

Observed 2026-10-23 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-uk-ons (npm)

Adoption & maintenance

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

npm downloads434Package 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 exposed6Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Uk Ons works

What Uk Ons does

Uk Ons provides MCP access to the UK Office for National Statistics API at https://api.beta.ons.gov.uk/v1/. It is intended for agents that need to find official UK statistical datasets and retrieve the specific releases and observations associated with them.

The Uk Ons MCP server exposes five pack-specific tools:

  • list_datasets returns available datasets with optional limit and offset parameters.
  • get_dataset retrieves a dataset using its identifier.
  • list_editions lists editions for a selected dataset.
  • get_version retrieves a particular dataset version using the dataset ID, edition, and version values.
  • get_observations retrieves observations for a specified dataset version and set of dimensions.

How it works

The Uk Ons MCP server is available in two forms. The hosted option uses the Pipeworx gateway at https://gateway.pipeworx.io/uk-ons/mcp. A client connecting to this endpoint receives the ONS tools plus shared Pipeworx meta-tools, including ask_pipeworx, discover_tools, search_within, and remember/recall. The exact tool scope is reported by the connection's initialize response and may include roughly 30 shared tools in addition to the pack tools.

The gateway's ask_pipeworx tool can route a plain-language question across the wider Pipeworx catalog, including sources beyond ONS. The full gateway is also available at https://gateway.pipeworx.io/mcp; both gateway URLs use the same underlying service and data sources, while the listed pack-specific tools differ.

For direct access without an MCP client, gateway tools can be called over HTTP. For example, dataset listing is available through POST https://gateway.pipeworx.io/v1/tools/uk_ons_list_datasets with a JSON body containing optional limit and offset values.

Setup and configuration

Add the hosted endpoint as an MCP server in a compatible client:

config.json
{
  "mcpServers": {
    "uk-ons": {
      "url": "https://gateway.pipeworx.io/uk-ons/mcp"
    }
  }
}

The standalone Uk Ons MCP server runs locally through npm and communicates over stdin/stdout:

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

Run npx -y @pipeworx/mcp-uk-ons directly to check that the local process starts. The local package requires no Pipeworx account and exposes only the five ONS tools, without gateway meta-tools or cross-catalog routing.

Tools and capabilities

The Uk Ons MCP server supports the dataset discovery sequence commonly needed for structured ONS queries: list datasets, select a dataset, inspect its editions, select a version, and request observations using dimensions. Tool arguments are supplied through MCP when using an MCP client, or as JSON when using the gateway HTTP interface.

The gateway also provides tool inspection through GET https://gateway.pipeworx.io/v1/tools/uk_ons_list_datasets.

Limitations and notes

The hosted pack endpoint cannot be mounted without the shared Pipeworx meta-tools. If their schemas add more context than desired, the standalone package avoids them, while the full gateway exposes the broader catalog directly. The gateway's tool count and exact scope can change, so the initialize response is authoritative for a particular connection. The local and hosted forms use the same ONS source and pack tools, but only the hosted form provides ask_pipeworx routing.

Reviews

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

Frequently Asked Questions about Uk Ons

Uk Ons is an MCP server that connects AI agents to the UK Office for National Statistics API and provides tools to list datasets, retrieve dataset metadata, editions, versions, and observations. It can run through the Pipeworx gateway or locally over stdio, with no authentication required.

Install it locally by configuring an MCP client to run `npx -y @pipeworx/mcp-uk-ons` with the package name as its command argument. This standalone mode uses stdin/stdout, needs no Pipeworx account, and exposes only the ONS pack tools.

Yes, Uk Ons works with Cursor through the hosted MCP endpoint. Add `https://gateway.pipeworx.io/uk-ons/mcp` as the server URL in Cursor's MCP configuration; the connection provides the ONS tools and shared Pipeworx gateway tools.

Use `get_observations` with a dataset ID, edition, version, and dimensions. First discover a dataset with `list_datasets`, inspect its editions with `list_editions`, identify a version with `get_version`, then request the observations for the required dimensions.

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