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
| Users (last 30 days) | 0 |
| Handshake | Healthy |
| Auth needed | None |
| Tool count | 11 |
| Latency | 1624 ms |
| Last checked (UTC) | 2026-12-01T00:25:17.602Z |
| Checked (UTC) | Status | Latency | Error |
|---|---|---|---|
| 2026-12-01T00:25:17.602Z | Healthy | 1624 | |
| 2026-11-28T14:35:11.209Z | Healthy | 859 | |
| 2026-11-26T06:35:32.574Z | Healthy | 1937 | |
| 2026-11-24T00:20:55.268Z | Healthy | 3396 | |
| 2026-11-21T20:05:28.469Z | Healthy | 914 | |
| 2026-11-19T17:15:14.745Z | Healthy | 1887 | |
| 2026-11-17T15:35:27.333Z | Healthy | 611 | |
| 2026-11-15T15:20:47.334Z | Healthy | 2555 | |
| 2026-11-13T16:26:06.876Z | Healthy | 2738 | |
| 2026-11-11T18:30:37.980Z | Healthy | 1715 | |
| 2026-11-09T21:40:36.815Z | Healthy | 1575 | |
| 2026-11-08T02:15:20.632Z | Healthy | 1156 | |
| 2026-11-06T07:55:49.694Z | Healthy | 1526 | |
| 2026-11-04T14:15:43.716Z | Healthy | 3442 | |
| 2026-11-02T21:40:28.575Z | Healthy | 3337 | |
| 2026-11-01T06:05:26.507Z | Healthy | 853 | |
| 2026-10-30T15:35:27.865Z | Healthy | 1096 | |
| 2026-10-29T01:40:18.335Z | Healthy | 1448 | |
| 2026-10-27T12:10:16.607Z | Healthy | 1818 | |
| 2026-10-26T00:10:10.633Z | Healthy | 2000 |
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. "USA", "US"), ignoring case and accents; exact matches are lis |
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 descriptions containing every query term in any order. Default |
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 SDMX codes), EB02 (EBOPS 2002). Search by keyword or by seve |
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 cifvalue and fobvalue when comparing mirror flows. Accepts multi |
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 least 4 seconds apart; authenticated calls batch periods. Re |
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 coverageNotice before interpreting ranks, totals, or shares. Take |
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 converted series. Shares divide by the sum of eligible retrieved pa |
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. Shares use the retrieved reporting areas before the display li |
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 matching TOTAL to identify the HS edition and queries explicit co |
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 where available. Annual data is typically published 3–12 months |
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 one. Each row names its classification and whether it is ori |