Skip to main content
Glama
uk-ons-economic-statistics-mcp

uk-ons-economic-statistics-mcp

README.md
# uk-ons-economic-statistics-mcp

Official UK Office for National Statistics (ONS) data over Model Context Protocol (MCP). UK macro researchers, pricing teams, and public-policy analysts can browse the ONS dataset catalog, inspect CPIH inflation metadata, and retrieve published editions and dimensions with zero API keys and zero sign-up. It connects right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

```text
https://uk-ons-economic-statistics-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `list_uk_ons_datasets` | Browse or search official UK ONS datasets with titles, descriptions, keywords, and latest version links |
| `get_uk_ons_dataset_details` | Retrieve full UK ONS dataset metadata, release frequency, contacts, and links by dataset ID |
| `get_uk_cpih_inflation_metadata` | Retrieve UK CPIH consumer price inflation (cpih01) latest version metadata, release date, dimensions, and downloads |
| `get_dataset_editions_and_versions` | Retrieve all editions, latest version numbers, and dimension definitions for any UK ONS dataset |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "uk-ons-economic-statistics": {
      "url": "https://uk-ons-economic-statistics-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `api.beta.ons.gov.uk/v1/` over HTTPS with a polite `User-Agent` header (`mcpstamp-uk-ons-economic-statistics/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All four tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.uk-ons-economic-statistics-mcp) with hosted commercial servers and priority endpoints.

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation4/5

The four tools mostly target distinct operations: listing datasets, fetching dataset details, retrieving editions/versions/dimensions, and CPIH-specific metadata. There is some overlap between the CPIH-specific tool and the generic dataset details/editions tools, and both generic getters return version-related information, but descriptions make the intended use reasonably clear.

Naming Consistency4/5

All names use snake_case and follow a verb_noun pattern (list_..., get_...). The main inconsistency is prefixing: some tools include uk_ons, one is generic dataset_..., and one is a CPIH-specific special case, but the set remains readable and predictable.

Tool Count4/5

Four tools is reasonable for a focused ONS metadata/discovery server, with each covering a recognizable step: list, details, editions/versions, and a CPIH shortcut. The CPIH-specific tool is somewhat narrow relative to the generic tools, but the overall count is well-scoped rather than excessive.

Completeness2/5

The surface covers dataset discovery and metadata but stops short of retrieving actual observations or time-series values, which is a major gap for an economic statistics server. Download links may help, but agents asking for inflation or GDP figures have no direct tool to fetch the data.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues