Open Data

StatsWales MCP Server

Chat with AI and run tools instantly.

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.

Managed
4 tools
Agent guide included

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

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to StatsWales and paste the MCP URL into Remote MCP server URL.
  4. Click Add. StatsWales will appear under Not connected — select it and click Connect to complete OAuth.
Name: StatsWales
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/stats-wales
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Try StatsWales now

No API key or third-party login required. Chat with AI and run tools instantly.