mcpbeat Sign in

Un Comtrade MCP Server

answering

Un Comtrade MCP Server is answering right now. Last checked 1 min ago. 154 installs a week from npm. It exposes 9 tools. Last commit 18 Oct 2026.

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

Installs per day peak 134 · avg 20 · +60% w/w
a month agotoday
Uptime history 20 days of history · worst day 98%
20 days agonow
100.0%
Uptime 24h
92 of 92 checks
9
Tools
read from the server
573 ms
Response time
average over 24h
154
Installs / week
npm and PyPI

Nothing serious here today

Today is the operative word: we check Un Comtrade MCP Server every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Connect this server

Endpoint below is the one we actually reach during checks — not the one copied from a README. Last verified 1 min ago.

run in your terminal
claude mcp add un-comtrade-mcp-server --transport http https://un-comtrade.caseyjhand.com/mcp
Settings → Connectors → Add custom connector, then paste this address
https://un-comtrade.caseyjhand.com/mcp
~/.codex/config.toml
[mcp_servers.un-comtrade-mcp-server]
url = "https://un-comtrade.caseyjhand.com/mcp"
.cursor/mcp.json
{
  "mcpServers": {
    "un-comtrade-mcp-server": {
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "un-comtrade-mcp-server": {
      "type": "http",
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}

Available tools 9

Read directly from the server with tools/list, grouped by what they act on. If a tool disappears, we record the date.

comtrade
comtrade_get_data_availability
Check which reporter/period/classification combinations have published data before constructing expensive trade queries. Returns dataset records with period, classification, record count, and first/latest release dates. Call this before querying recent periods — annual data is typically published 3–12 months after the reference year and not all countries report every year. Omit all parameters to browse the full availability index.
comtrade_get_services_trade
Fetch international trade-in-services data (EBOPS 2010 classification). Same bilateral structure as goods trade: returns flow value in USD, period, and reporter/partner/category metadata for each row. Use comtrade_list_service_categories to find the right service code before querying. Preview makes one paced request per served period, capped at 500 records per request. Services coverage is more limited than goods trade.
comtrade_get_top_commodities
Rank commodity categories for a reporter by trade value for a given flow direction and period. Returns the top N HS chapters (2-digit) or headings (4-digit) sorted by descending value — answers "what does country X mainly export?" or "what does country X mainly import?". Symmetric counterpart to comtrade_get_top_partners. Optionally filter to a single partner country.
comtrade_get_top_partners
Rank trading partners for a reporter by trade value for a given commodity and flow direction. Returns the top N partners sorted by descending value — answers "who does country X mainly export product Y to?" or "where does country X mainly import product Z from?" for a single period. Fetches a disaggregated breakdown across all partners then sorts locally. Omit cmd_code to rank partners for total trade.
comtrade_get_trade_balance
Compute the trade balance for a country over one or more periods — total exports minus total imports — with optional HS or SITC commodity filter. Preview makes two paced requests per served period; authenticated calls batch periods. Returns the signed balance (USD), export value, import value, and coverage ratio (exports / imports). Note: mirror asymmetry is common — balance reflects values as reported by this country; the same flow may be recorded differently by the partner. Uses comtrade_lookup_countries to resolve reporter codes.
comtrade_get_trade_flows
Fetch bilateral trade flow records — the primary data retrieval tool. Returns trade value in USD (primaryValue — FOB for exports, CIF for imports), quantity, net weight, and period/commodity/partner metadata for each row. Accepts multiple periods and commodity codes per call; pass partner_code 0 to get totals aggregated across all partners. Omit cmd_code or pass "TOTAL" to aggregate all commodities. Preview makes one paced request per served period, with a 500-record cap per request. Use comtrade_lookup_countries to resolve reporter/partner codes and comtrade_search_commodities to resolve HS codes. For SITC, supply codes from the selected SITC revision.
comtrade_list_service_categories
List EBOPS 2010 service trade categories — the equivalent of comtrade_search_commodities for the services domain. Returns category codes, descriptions, and parent codes. Filter by keyword to find a specific service type (e.g. "transport", "financial", "travel"), or browse from a parent category code. Use the returned id as service_code in comtrade_get_services_trade.
comtrade_lookup_countries
Resolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial name, full name, or ISO alpha-2/alpha-3 code (e.g. "United States", "USA", "US"). Returns matching entries with their numeric code, ISO identifiers, and a validAsReporter flag — regional groupings like "World" (code 0) are valid partners but not valid reporters. Use this before any trade data tool that requires reporter_code or partner_code. To aggregate across all partners, use partner code 0 (World) — no lookup needed.
comtrade_search_commodities
Find HS commodity codes by keyword, partial description, or known code prefix. Returns matched codes at the requested aggregation level (2-, 4-, or 6-digit) with full descriptions, parent code, leaf status, and a recommended_query_code field indicating the best code level for subsequent trade queries (2-digit chapter for broad analysis, 4- or 6-digit for specific products). This is the critical resolution step — agents cannot derive HS codes from product names without this tool. Use aggr_level 2 to start broad; narrow with aggr_level 4 or 6 once you have a chapter. To get all commodities for an entire chapter, pass the 2-digit code as cmd_code in trade tools.

Endpoints

URLTransportStateLatencyChecked
https://un-comtrade.caseyjhand.com/mcp streamable-http answering 530 ms 1 min ago

Alternatives to Un Comtrade MCP Server

same job, measured the same way
Comtrade
by pipeworx-io

Comtrade MCP — UN Comtrade API for international bilateral trade data

424 installs/wk 48 tools answering
Bis
by pipeworx-io

BIS MCP — Bank for International Settlements statistics (no auth)

407 installs/wk 48 tools answering
Ilostat
by pipeworx-io

ILOSTAT (International Labour Organization statistics) MCP — global labour market data via the…

397 installs/wk 47 tools answering
VoixCall
by voixcall

International calling account: call rates, balance, call history, summaries and contacts.

answering
Census Trade
by pipeworx-io

Census Trade MCP — US Census Bureau International Trade data

215 installs/wk 48 tools answering
Fincontext
by fincontext

Read-only bank & investment accounts via Plaid: balances, holdings, transactions, SQL analytics.

answering
Geo Explorer MCP
by arnienemeth

Country facts, administrative boundaries and regional statistics, for interactive geography.

95 installs/wk local only
Radio Browser MCP by UnClick
by malamutemayhem

Search internet radio stations by country, tag, popularity, and votes. No API key. By UnClick.

39 installs/wk local only

Un Comtrade MCP Server — questions

Answers built from our own checks of this server.

What can Un Comtrade MCP Server do?
It exposes 9 tools, read directly from the server on our last check. Among them: comtrade_get_data_availability, comtrade_get_services_trade, comtrade_get_top_commodities, comtrade_get_top_partners, comtrade_get_trade_balance, comtrade_get_trade_flows and 3 more. The full list with descriptions is on this page — we take it from the server itself via tools/list, not from a README. How MCP servers expose tools in the first place →
Is Un Comtrade MCP Server working right now?
We send a real MCP handshake every 15 minutes. Over the last 24 hours 92 of 92 checks got a reply (100.0%), average response time 573 ms. The bar chart above shows every period we have measured.
How do I connect Un Comtrade MCP Server?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It is a remote server, so there is nothing to install — the client connects to the address.
Does Un Comtrade MCP Server need an API key?
No. Un Comtrade MCP Server completed a full MCP handshake with us as an anonymous client and listed its tools without asking for anything. All 9 of them are readable on this page. This is what we observed, not what the docs claim.
How fast is Un Comtrade MCP Server?
It answers our handshake in 573 ms on average, which is faster than 20% of all working MCP servers we measure. That is on the slow side — worth knowing if the tool sits inside an interactive loop. The comparison comes from our own checks across the whole registry, every 15 minutes.
How many people use Un Comtrade MCP Server?
The npm package @cyanheads/un-comtrade-mcp-server was installed 154 times in the last week. Week over week that is +60%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Un Comtrade MCP Server open source?
The code is open source: it is published under the Apache-2.0 licence, written in TypeScript, 4 stars on GitHub and 2 open issues. The licence covers the code in the repository, not the hosted service at un-comtrade.caseyjhand.com, which runs on its operator's own terms.