MCP server
Comtrade
io.github.pipeworx-io/comtrade
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
Comtrade MCP — UN Comtrade API for international bilateral trade data
Working at last checkOfficial: pipeworx.io's GitHub account (pipeworx-io)About 28,537 tokens per request once connected46 tools
https://gateway.pipeworx.io/comtrade/mcp
At a glance
- Type
- MCP server
- Publisher
- pipeworx.io (verified by the MCP Registry)
- Status
- Working at last check
- Tools
- 46
- Token cost
- About 28,537 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http comtrade https://gateway.pipeworx.io/comtrade/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.comtrade] url = "https://gateway.pipeworx.io/comtrade/mcp"
Gemini CLI
{"mcpServers":{"comtrade":{"httpUrl":"https://gateway.pipeworx.io/comtrade/mcp"}}}
Cursor
{"mcpServers":{"comtrade":{"url":"https://gateway.pipeworx.io/comtrade/mcp"}}}
VS Code
{"servers":{"comtrade":{"type":"http","url":"https://gateway.pipeworx.io/comtrade/mcp"}}}
Antigravity
agy mcp add comtrade https://gateway.pipeworx.io/comtrade/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"comtrade","server_url":"https://gateway.pipeworx.io/comtrade/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"comtrade","server_url":"https://gateway.pipeworx.io/comtrade/mcp"}
Tools
comtrade_country_codes~87 tokens
Look up UN Comtrade reporter/partner codes for trade queries (e.g., "842" = US, "156" = China). Note Comtrade uses 842 for the US, not the ISO 840. Returns code and country name pairs.comtrade_top_commodities~560 tokens
Rank the products two countries actually trade, largest value first — "what does the US import most from China". Returns HS categories with trade value and net weight. Defaults to HS 2-digit chapters (~97 categories, e.g. 85 Electrical machinery); pass hs_level 4 or 6 for finer product detail.comtrade_top_partners~635 tokens
Find a country's top trading partners ranked by trade volume. Returns partner countries and total trade values. Defaults to ANNUAL; pass frequency="monthly" for a single month's ranking instead of the last full year's.comtrade_trade_dataMoves money · ~952 tokens
AUTHORITATIVE bilateral trade data between two countries from UN Comtrade — the official international-trade statistics database (every country's customs filings, harmonized). Returns trade values USD, quantities, and HS commodity-level detail for imports and exports between reporter + partner. Use
Browse
Related MCP servers
- Un Comtrade
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings. - Trade Intel
Trade Intel MCP — Compound tools that chain Comtrade, Census, Treasury, - SiteCheck Trade & Energy
112 pay-per-call agent tools: logistics, shipping, trade and energy data tools. x402 - Trustbase Lab · Trusted Data Infrastructure for the AI Era
Trusted multi-domain data for AI: 59 tools, MCP Apps, Skills, 520+ cross-domain benchmarks. - Fuze Data Tools
No-code web scraping & data-extraction Apify actors: scrape and enrich web data at scale. - Semi Data
US-government semiconductor & quantum supply-chain intelligence: controls, entities, funding. - Tollbooth
37 paid x402 MCP tools for OSINT, prediction markets, web intel, and agent security on Base USDC. - Rootz Maritime
Signed global shipping & commodity data: oil, LNG, grain, sanctions, fleet, emissions.
Badge for your README
[](https://aptlynx.net/servers/io.github.pipeworx-io/comtrade)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents