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

uk-ons-economic-statistics-mcp

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

Related MCP server: mcp-uk-ons

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.

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

Available Tools

4 tools
get_dataset_editions_and_versionsGet UK ONS dataset editions, versions, and dimensionsA
Read-onlyIdempotent
Inspect

Retrieve all published editions, latest version IDs, and dimension definitions for any UK ONS dataset.

Inputs: dataset_id.

get_uk_cpih_inflation_metadataGet UK CPIH inflation latest version and dimensionsA
Read-onlyIdempotent
Inspect

Fetch the latest UK CPIH inflation (cpih01) release metadata, alerts, available dimensions, and download links directly from the ONS API.

Inputs: no named parameters.

get_uk_ons_dataset_detailsGet UK ONS dataset metadata by IDB
Read-onlyIdempotent
Inspect

Fetch official metadata, release schedule, national statistic flag, contacts, and latest version link for a UK ONS dataset ID.

Inputs: dataset_id.

list_uk_ons_datasetsList or search UK ONS datasetsA
Read-onlyIdempotent
Inspect

List official UK Office for National Statistics datasets or filter them by keyword (for example "inflation", "gdp", "trade", "labour").

Inputs: limit, offset, search.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables access to official UK Office for National Statistics data including demographics, economics, and social statistics through the ONS Beta API. Supports browsing, searching, and querying datasets with built-in shortcuts for popular statistics like inflation, regional GDP, and wellbeing data.
      5
      26 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying UK Office for National Statistics datasets and their editions through natural language, with no authentication required.
      47 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides access to UK economic, social, and labour-market statistics via the ONS beta and Nomis APIs, enabling discovery and retrieval of time series, datasets, and census data.
      18
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables discovery and selection of ONS datasets using a frozen metadata bundle, providing bounded access to dataset descriptions, dimensions, and alternatives without making network calls or returning observation values.
      6
      1
      MIT