io.github.cyanheads/un-comtrade-mcp-server

io.github.cyanheads/un-comtrade-mcp-server · v0.5.1 · docs-and-knowledge

io.github.cyanheads/un-comtrade-mcp-server is healthy: it completed an MCP handshake in 1624 ms and exposes 11 tools.

UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.

Endpoint: https://un-comtrade.caseyjhand.com/mcp (streamable-http)

Repository · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count11
Latency1624 ms
Last checked (UTC)2026-12-01T00:25:17.602Z

Health history

Checked (UTC)StatusLatencyError
2026-12-01T00:25:17.602ZHealthy1624
2026-11-28T14:35:11.209ZHealthy859
2026-11-26T06:35:32.574ZHealthy1937
2026-11-24T00:20:55.268ZHealthy3396
2026-11-21T20:05:28.469ZHealthy914
2026-11-19T17:15:14.745ZHealthy1887
2026-11-17T15:35:27.333ZHealthy611
2026-11-15T15:20:47.334ZHealthy2555
2026-11-13T16:26:06.876ZHealthy2738
2026-11-11T18:30:37.980ZHealthy1715
2026-11-09T21:40:36.815ZHealthy1575
2026-11-08T02:15:20.632ZHealthy1156
2026-11-06T07:55:49.694ZHealthy1526
2026-11-04T14:15:43.716ZHealthy3442
2026-11-02T21:40:28.575ZHealthy3337
2026-11-01T06:05:26.507ZHealthy853
2026-10-30T15:35:27.865ZHealthy1096
2026-10-29T01:40:18.335ZHealthy1448
2026-10-27T12:10:16.607ZHealthy1818
2026-10-26T00:10:10.633ZHealthy2000

Tools (11)

comtrade_lookup_countriesResolve 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. "USA", "US"), ignoring case and accents; exact matches are lis
comtrade_search_commoditiesFind 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 descriptions containing every query term in any order. Default
comtrade_list_service_categoriesList 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 SDMX codes), EB02 (EBOPS 2002). Search by keyword or by seve
comtrade_get_trade_flowsFetch 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 cifvalue and fobvalue when comparing mirror flows. Accepts multi
comtrade_get_trade_balanceCompute 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 least 4 seconds apart; authenticated calls batch periods. Re
comtrade_get_top_partnersRank 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 coverageNotice before interpreting ranks, totals, or shares. Take
comtrade_get_top_services_partnersRank 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 converted series. Shares divide by the sum of eligible retrieved pa
comtrade_get_top_reportersRank 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. Shares use the retrieved reporting areas before the display li
comtrade_get_top_commoditiesRank 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 matching TOTAL to identify the HS edition and queries explicit co
comtrade_get_data_availabilityCheck 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 where available. Annual data is typically published 3–12 months
comtrade_get_services_tradeFetch 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 one. Each row names its classification and whether it is ori