io.github.cyanheads/un-comtrade-mcp-server
io.github.cyanheads/un-comtrade-mcp-server · Repository
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
On 2026-11-29 03:17 UTC, the BOTERNITY MCP Index scored io.github.cyanheads/un-comtrade-mcp-server 82/100 (grade B); 11 tools, 19083 tokens for tools/list; healthy in 100 % of 3 checks over 30 days. Source: https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server
Free to reuse under CC BY 4.0 with a link. Permanent link: this page · JSON (status, score and the last 30 checks) · key numbers of the whole index.
Score breakdown
| Reliability initialize, ping, response time | 22 / 30 |
| Protocol conformance protocol revision, server info, instructions | 20 / 20 |
| Tool definitions descriptions, documented and typed parameters, annotations | 38 / 40 |
| Context cost tokens that tools/list adds to every agent's context | 2 / 10 |
Tools this server declares
11 tools listed by the server at the check of 2026-11-29.
comtrade_get_data_availability— Check which reporter/period/classification combinations have published data before querying trade. Returns datasets ordered by reporter code, newest period first within each reporter, with classification, record count and release dates wher (parameters: classification, freq, limit, offset, period, reporter_code, type_code · read-only)comtrade_get_services_trade— Fetch annual international trade-in-services data. Classification EB (default) serves each reporter-period as reported, in its own scheme (EB10, EB10S or EB02 codes); EB10 or EB02 selects UN Comtrade's conversion of other schemes into that (parameters: classification, flow_code*, limit, offset, partner_code, period*, reporter_code*, service_code · read-only)comtrade_get_top_commodities— Rank HS chapters (2-digit) or headings (4-digit) by trade value for one reporter, flow, and annual or monthly period. Set parent_code and a deeper aggr_level to rank headings or subheadings within one chapter or heading. The tool uses match (parameters: aggr_level, flow_code*, limit, parent_code, partner_code, period*, reporter_code* · read-only)comtrade_get_top_partners— Rank trading partners for a reporter by trade value for a given commodity and flow direction. Returns the top N retrieved partners with known values, sorted by descending value, and lists partners with unknown values separately. Check cover (parameters: classification, cmd_code, flow_code*, limit, period*, reporter_code* · read-only)comtrade_get_top_reporters— Rank retrieved reporting areas by reported import or export value for one goods code and period. Partner 0 (World) ranks reporters by their trade with all partners. Use a bilateral partner to rank reporters by their trade with that area. Sh (parameters: classification, cmd_code, flow_code*, limit, partner_code, period* · read-only)comtrade_get_top_services_partners— Rank partners of one reporter by trade value for a single annual EBOPS series. Omit service_code for total services, or use comtrade_list_service_categories to find one category. EB serves original reports, while EB10 and EB02 serve convert (parameters: classification, flow_code*, limit, period*, reporter_code*, service_code · read-only)comtrade_get_trade_balance— Compute the trade balance for a country over one or more periods — total exports minus total imports — with an optional HS, SITC or BEC commodity filter whose codes must not overlap. Keyless preview makes two requests per served period, at (parameters: classification, cmd_code, freq, partner_code, period*, reporter_code* · read-only)comtrade_get_trade_flows— Fetch bilateral trade flow records with trade value in USD, quantity, net weight, and period/commodity/partner metadata. UN Comtrade uses FOB for export primaryValue and CIF when available, otherwise FOB, for import primaryValue. Check cifv (parameters: classification, cmd_code, flow_code*, freq, limit, offset, partner_code, period*, reporter_code · read-only)comtrade_list_service_categories— List service trade categories from the combined EB catalog, including numeric EBOPS and SDMX codes. Returns category codes, descriptions, parent codes, and the EBOPS scheme catalogs that list each code: EB10 (EBOPS 2010), EB10S (EBOPS 2010 (parameters: limit, offset, parent_code, query · read-only)comtrade_lookup_countries— Resolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial or full name, an official name (e.g. "Republic of Korea"), a common name (e.g. "UK", "Turkey"), or an ISO alpha-2/alpha-3 code (e.g. "U (parameters: include_groups, query*, role · read-only)comtrade_search_commodities— Find HS, SITC or BEC commodity codes by keyword, description, or code prefix. A code written with dots, spaces, or hyphens ("0901.11") matches 090111. Exact codes, code prefixes and contiguous description matches rank first, followed by des (parameters: aggr_level, classification, limit, offset, query* · read-only)
Tool names and descriptions are the server's own words, copied from its tools/list answer at the dated check (descriptions cut at 240 characters, 12 parameters, 30 documented tools at most). BOTERNITY never calls these tools and does not verify what they do. Parameters marked * are required.
Add it to your client
Address (Streamable HTTP): https://un-comtrade.caseyjhand.com/mcp. The check of 2026-11-29 (UTC) connected to this address without any credential.
Claude (claude.ai, Claude Desktop): add a custom connector and paste the address https://un-comtrade.caseyjhand.com/mcp (docs).
ChatGPT: add the address https://un-comtrade.caseyjhand.com/mcp as a connector (docs).
Claude Code, in a terminal (options: claude mcp add --help):
claude mcp add --transport http un-comtrade-mcp-server https://un-comtrade.caseyjhand.com/mcpCursor, in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project) (docs):
{
"mcpServers": {
"un-comtrade-mcp-server": {
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}VS Code, in .vscode/mcp.json (docs):
{
"servers": {
"un-comtrade-mcp-server": {
"type": "http",
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}Generated from the Streamable HTTP address this server publishes in the official MCP Registry (the address the Index check connects to) and from the request headers its registry entry declares as required. Values in capitals are placeholders: get the real ones from the publisher. Nothing here is run against the server. Whether each client can complete the connection is measured just below.
Works with Claude, ChatGPT, Cursor and VS Code?
| Client | Verdict | Why |
|---|---|---|
| Claude | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in. client docs |
| ChatGPT | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in. client docs |
| Cursor | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Cursor accepts servers that need no sign-in. client docs |
| VS Code | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; VS Code accepts servers that need no sign-in. client docs |
How verdicts are made: measured continuously, never guessed. All servers that work with each client.
Badges for your README, updated after each new check with the verdicts above:
[](https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server#clients)
[](https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server#clients)
[](https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server#clients)
[](https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server#clients)
Availability
100 % over 3 checks. Last check 2026-11-29.
What the last check found
- tools/list costs about 19083 tokens of every agent's context
- median latency 991 ms
Badge for your README
[](https://boternity.com/mcp-index/server?name=io.github.cyanheads%2Fun-comtrade-mcp-server)
This measurement is signed by boternity.com (Ed25519, key 450c02fbfb29dba9, digest sha256:fc92a02a02909b3e…), in the badge and in the JSON. Anyone can check a copy.
Get alerted when it goes down
Free: leave an e-mail or a webhook and we tell you when this server goes down and when it is back. Without a subscription nobody is told, even when it is followed on the MCP weather.
Or follow it in a feed reader: Atom feed · JSON Feed (first seen, became unavailable, back online, tool definitions changed; checks of the last 30 days).
Endpoint: https://un-comtrade.caseyjhand.com/mcp. Scores are automatic and may be wrong. Owners can ask for removal via support.