About io.github.cyanheads/un-comtrade-mcp-server
io.github.cyanheads/un-comtrade-mcp-server is an MCP server in the RAG category: uN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
Install
claude mcp add io-github-cyanheads-un-comtrade-mcp-server -- npx -y @cyanheads/un-comtrade-mcp-servernpx -y @cyanheads/un-comtrade-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (9)
comtrade_get_data_availabilityCheck which reporter/period/classification combinations have published data before constructing expensive queries. Returns record count and publication date per dataset.
Parameters not published.
comtrade_get_services_tradeFetch international trade-in-services data (EBOPS 2010). Same bilateral structure as goods trade: returns flow value, period, and reporter/partner/category metadata.
Parameters not published.
comtrade_get_top_commoditiesRank commodity categories for a reporter by trade value for a given flow direction and period. Returns top N HS chapters (2-digit) or headings (4-digit) sorted by descending value.
Parameters not published.
comtrade_get_top_partnersRank trading partners for a reporter by trade value for a given commodity and flow direction. Returns top N partners sorted by descending value for a single period.
Parameters not published.
comtrade_get_trade_balanceCompute trade balance (exports minus imports) for a country over one or more periods with optional commodity filter. Fetches export and import totals in parallel; returns signed balance, component values, and coverage ratio.
Parameters not published.
comtrade_get_trade_flowsFetch bilateral trade flow records. Returns `primaryValue` (USD, FOB for exports / CIF for imports), quantity, net weight, and period/commodity/partner metadata per row. Accepts multiple periods and commodity codes in one call.
Parameters not published.
comtrade_list_service_categoriesList EBOPS 2010 service trade categories — the services-domain equivalent of `comtrade_search_commodities`. Returns codes, descriptions, and parent codes. Filter by keyword or browse from a parent code.
Parameters not published.
comtrade_lookup_countriesResolve country and area names to Comtrade M49 numeric codes. Accepts partial names or ISO alpha-2/alpha-3 codes. Returns matching entries with `validAsReporter` flag — regional groupings are valid partner codes but not reporter codes.
Parameters not published.
comtrade_search_commoditiesFind HS commodity codes by keyword, partial description, or code prefix. Returns codes at 2-, 4-, or 6-digit aggregation with descriptions, parent code, leaf status, and a `recommended_query_code` field.
Parameters not published.
Ask AI
Ask AI about io.github.cyanheads/un-comtrade-mcp-server
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.