ONS Trade Data API MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ONS Trade Data API — MCP Server
An MCP (Model Context Protocol) server that exposes UK trade data from:
Modeled on your previous ons-baby-names-api-mcp server: Python + FastMCP, deployable to Vercel, with a streamable HTTP MCP endpoint at /mcp.
Tools
Tool | Description |
| Check MCP server and upstream API connectivity |
| Dataset metadata (version, last_updated, total_records) |
| List available dates |
| Country code lookup |
| Commodity metadata lookup |
| Available commodities and periods for a country |
| Direct raw JSON fetch from |
| Fetch one static trade file with optional filtering |
| Generic grouped aggregation query over a trade file |
Related MCP server: mcp-comtrade
MCP endpoint
After deployment, connect an MCP client to:
https://ons-trade-data-api-mcp.vercel.app/mcpEnvironment variable
Variable | Default | Description |
|
| Upstream trade API base URL |
Deploy to Vercel
Push this repo to GitHub
Import it in Vercel
Deploy (no custom build needed)
Local development
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.pyServer runs locally at:
http://localhost:8000/mcpTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
MCP server for the Seline Analytics API
MCP server for Codat — companies, connections, invoices, bills and financial statements.
Related MCP Servers
- AlicenseDqualityDmaintenanceServidor MCP para a API do ComexStat, ferramenta de acesso às estatísticas de comércio exterior do Brasil.209 npm2MIT
- AlicenseNot gradedqualityBmaintenanceProvides access to UN Comtrade international bilateral trade data via an MCP server, enabling AI agents to query trade statistics through natural language.85 npmMIT
- AlicenseCqualityCmaintenanceMCP server for the UK Bus Open Data Service, enabling timetable queries, stop search, route discovery, journey planning, and real-time bus tracking.1623 PyPIMIT
- AlicenseCqualityCmaintenanceA research MCP server for UK geospatial and statistical data, enabling AI assistants to query Ordnance Survey and ONS datasets.1033MIT