Repository avatar
Monitoring
v1.0.1
active

uk-ons-economic-statistics-mcp

io.github.theluckystrike/uk-ons-economic-statistics-mcp

Official UK ONS datasets, CPIH inflation metadata, editions, versions, and dimensions.

Documentation

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.

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

Available tools

ToolPurpose
list_uk_ons_datasetsBrowse or search official UK ONS datasets with titles, descriptions, keywords, and latest version links
get_uk_ons_dataset_detailsRetrieve full UK ONS dataset metadata, release frequency, contacts, and links by dataset ID
get_uk_cpih_inflation_metadataRetrieve UK CPIH consumer price inflation (cpih01) latest version metadata, release date, dimensions, and downloads
get_dataset_editions_and_versionsRetrieve 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.

{
  "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.

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.