Open Data

StatsWales MCP Server

Chat with AI and run tools instantly — no account needed.

Welsh Government official statistics API. Browse datasets by topic, retrieve metadata, query paginated data views, and download datasets. Covers health, education, housing, crime, economy, transport, environment, and Welsh language statistics.

4 tools
Agent guide included
Try it Free

No account needed. Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for StatsWales — workflow patterns, data models, and gotchas for your AI agent.

StatsWales

StatsWales is the Welsh Government's official statistics portal. The v1 API provides structured access to 700+ published datasets across 11 topics.

Topics (top-level)

  1. Business, economy and labour market
  2. Crime, fire and rescue
  3. Education and training
  4. Environment, energy and agriculture
  5. Finance and tax
  6. Health and social care
  7. Housing
  8. People, identity and equality
  9. Poverty
  10. Transport
  11. Welsh language

Data Model

  • Dataset — Identified by UUID. Has title, publish dates, and metadata.
  • Topic — Hierarchical (top-level → sub-topics → datasets). Identified by integer ID.
  • View — Paginated tabular view of dataset data. Can be filtered by dimensions.
  • Filters — Each dataset has dimension filters (e.g. area, year, measure).

Pagination

  • List endpoints support page_number and page_size parameters
  • Default page size varies; recommended max is 500
  • The datasets list endpoint returns count for total results

Gotchas

  • Dataset IDs are UUIDs (e.g. "ea3a158f-9a3e-4660-be27-00bb281cce50")
  • Topic IDs are integers (e.g. 1, 8, 13)
  • The /{dataset_id}/view endpoint can return large payloads; use page_size
  • Download formats: csv, ods, xlsx, json
  • Some datasets have Welsh-language titles (bilingual data)

Tools in this Server (4)

Stats Wales Dataset Metadata

Get detailed metadata for a specific StatsWales dataset by its UUID. Returns title, description, dimensions, publication dates, and update history.

Stats Wales Datasets

List all published datasets on StatsWales (Welsh Government statistics). Returns dataset IDs, titles, and publication dates. Supports pagination. Over...

Stats Wales Dataset View

Get a paginated tabular view of a StatsWales dataset. Returns data rows with dimension values and measures. Use stats_wales_dataset_metadata first to ...

Stats Wales Topics

Browse StatsWales datasets by topic. Without a topic_id, returns top-level topics (e.g. Health and social care, Education and training). With a topic_...

Frequently Asked Questions

What is the StatsWales MCP server?

Welsh Government official statistics API. Browse datasets by topic, retrieve metadata, query paginated data views, and download datasets. Covers health, education, housing, crime, economy, transport, environment, and Welsh language statistics. It provides 4 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect StatsWales to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/stats-wales. Authentication is handled automatically.

How many tools does StatsWales provide?

StatsWales provides 4 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does StatsWales require?

StatsWales uses open data APIs — no authentication required.

Setup Instructions

Connect StatsWales to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/stats-wales

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Try StatsWales now

No sign-up required. Chat with AI and run tools instantly.

StatsWales MCP Server & Skill — 4 Tools