About Ons Uk
Ons Uk is an MCP server for the UK Office for National Statistics dataset catalogue and Beta JSON API. It helps users browse datasets and retrieve metadata for editions, observation files, and time series.
Key features
- 01List public datasets
- 02Get dataset metadata
- 03Browse dataset editions
- 04Retrieve latest observation-file metadata
- 05Look up time series by ONS URI
Use cases
- 01Find datasets in the ONS catalogue
- 02Inspect a dataset’s available editions
- 03Check metadata for the latest observations
- 04Retrieve a time series by ONS URI
MCP support
Exposes ONS dataset, edition, observation-file metadata, and time-series tools to MCP clients through the Pipeworx gateway.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://gateway.pipeworx.io/ons-uk/mcpclaude mcp add --transport http pipeworx-io-ons-uk https://gateway.pipeworx.io/ons-uk/mcp{"mcpServers":{"pipeworx-io-ons-uk":{"type":"http","url":"https://gateway.pipeworx.io/ons-uk/mcp"}}}Open in Cursor{"servers":{"pipeworx-io-ons-uk":{"type":"http","url":"https://gateway.pipeworx.io/ons-uk/mcp"}}}Open in VS Code{"mcpServers":{"pipeworx-io-ons-uk":{"type":"http","url":"https://gateway.pipeworx.io/ons-uk/mcp"}}}{"mcpServers":{"pipeworx-io-ons-uk":{"serverUrl":"https://gateway.pipeworx.io/ons-uk/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEmcp-ons-uk
ONS UK MCP.
Part of Pipeworx — an MCP gateway connecting AI agents to 673+ live data sources.
Tools
| Tool | Description |
|---|---|
datasets | List publicly available datasets. |
dataset | Single dataset metadata. |
editions | Editions of a dataset. |
latest_observations | Latest observation data file metadata. |
series | Time series by ONS uri. |
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"ons-uk": {
"url": "https://gateway.pipeworx.io/ons-uk/mcp"
}
}
}
Or connect to the full Pipeworx gateway for access to all 673+ data sources:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English:
ask_pipeworx({ question: "your question about Ons Uk data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.