Open Data

HMRC Trade Stats MCP Server

Chat with AI and run tools instantly.

HMRC trade and tax statistics published on GOV.UK. Search UK overseas trade statistics, tax receipts, customs data, and economic research from HM Revenue & Customs. Covers imports, exports, tariffs, and revenue data.

Managed
2 tools
Agent guide included

Chat with AI and run tools instantly.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for HMRC Trade Stats — workflow patterns, data models, and gotchas for your AI agent.

HMRC Trade Stats

Access HMRC trade and tax statistics published on GOV.UK. No authentication required.

Data Model

  • Publication — A statistical release or report published by HMRC on GOV.UK.
  • Supergroup — Content category: research_and_statistics for stats, transparency for spending.
  • Organisation — Filter by hm-revenue-customs slug.

Key Fields (search results)

  • title — Publication title
  • description — Summary of the publication
  • public_timestamp — When it was published/updated
  • link — Path on GOV.UK (use with content API for full details)
  • organisations — Publishing organisation(s)
  • format — Content format (e.g. official_statistics, national_statistics, research)

Key Fields (publication detail)

  • base_path — Canonical URL path
  • content_id — UUID identifier
  • details.attachments — Data files (ODS, CSV, HTML attachments)
  • details.body — HTML body with methodology and notes
  • details.national_applicability — Which UK nations data covers

Gotchas

  • The original uktradeinfo.com API is deprecated. Data is now published via GOV.UK.
  • Search uses the GOV.UK search API filtered to HMRC organisation.
  • Detail uses the GOV.UK content API at /api/content/{path}.
  • Pagination: start parameter (0-based offset), default page size varies.
  • count parameter controls results per page (max ~1000).

Tools in this Server (2)

Hmrc Trade Detail

Get full details of an HMRC publication on GOV.UK by path. Returns the publication title, description, body content, attachments (data files), publish...

Hmrc Trade Search

Search HMRC trade and tax statistics published on GOV.UK. Returns UK overseas trade statistics, tax receipts, customs data, and economic research from...

Frequently Asked Questions

What is the HMRC Trade Stats MCP server?

HMRC trade and tax statistics published on GOV.UK. Search UK overseas trade statistics, tax receipts, customs data, and economic research from HM Revenue & Customs. Covers imports, exports, tariffs, and revenue data. It provides 2 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect HMRC Trade Stats 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/hmrc-trade-stats. Authentication is handled automatically.

How many tools does HMRC Trade Stats provide?

HMRC Trade Stats provides 2 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 HMRC Trade Stats require?

HMRC Trade Stats uses open data APIs — no authentication required.

Setup Instructions

Connect HMRC Trade Stats to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/hmrc-trade-stats

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 HMRC Trade Stats and paste the MCP URL into Remote MCP server URL.
  4. Click Add. HMRC Trade Stats will appear under Not connected — select it and click Connect to complete OAuth.
Name: HMRC Trade Stats
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/hmrc-trade-stats
Authentication: OAuth

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

Try HMRC Trade Stats now

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

HMRC Trade Stats MCP Server & Skill — 2 Tools