ONS Trade Data API MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ONS Trade Data API MCP ServerWhat were UK exports to Germany in January 2023?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: supply-chain-mcp-server
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/mcpThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceProvides access to UN Comtrade international bilateral trade data via an MCP server, enabling AI agents to query trade statistics through natural language.Last updated16MIT
- AlicenseAqualityDmaintenanceMCP server giving AI agents access to global supply chain and trade data from UN Comtrade, World Bank, and Open Supply Hub.Last updated5MIT
- AlicenseCqualityBmaintenanceMCP server for the UK Bus Open Data Service, enabling timetable queries, stop search, route discovery, journey planning, and real-time bus tracking.Last updated16MIT
- AlicenseCqualityBmaintenanceA no-key-first MCP server providing access to UK public data including postcodes, bank holidays, carbon intensity, flood warnings, and government datasets.Last updated261MIT
Related MCP Connectors
Comtrade MCP — UN Comtrade API for international bilateral trade data
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
MCP server for US Treasury Fiscal Data — debt, interest rates, exchange rates, and spending.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/henryjameslau/ons-trade-data-api-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server