ONS Trade Data API MCP Server
MCP server that provides access to UK trade data from the ONS Trade Data API, enabling queries for trade statistics, metadata, and raw data.
README
ONS Trade Data API — MCP Server
An MCP (Model Context Protocol) server that exposes UK trade data from:
- https://ons-trade-data-api.netlify.app
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 |
|---|---|
health |
Check MCP server and upstream API connectivity |
get_schema |
Dataset metadata (version, last_updated, total_records) |
get_time_periods |
List available dates |
get_countries |
Country code lookup |
get_commodities |
Commodity metadata lookup |
get_country_index |
Available commodities and periods for a country |
fetch_raw |
Direct raw JSON fetch from /data/... path |
get_trade_file |
Fetch one static trade file with optional filtering |
query_trade |
Generic grouped aggregation query over a trade file |
MCP endpoint
After deployment, connect an MCP client to:
https://ons-trade-data-api-mcp.vercel.app/mcp
Environment variable
| Variable | Default | Description |
|---|---|---|
TRADE_API_BASE_URL |
https://ons-trade-data-api.netlify.app |
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.py
Server runs locally at:
http://localhost:8000/mcp
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.