Un Comtrade MCP Server
@cyanheads/un-comtrade-mcp-server Access UN Comtrade international merchandise and services trade statistics - country lookups, HS commodity search, bilateral trade flows, balances, rankings, and data availability - via MCP. STDIO or Streamable HTTP. Its 9 documented tools cover comtrade, trade, commodities, top.
People who work with comtrade, trade and commodities and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-09-20 · ★ 3 · #361 OF 998 MAINTAINED OTHER · VERIFIED 2026-09-30
Apache-2.0 · TypeScript servers · how we verify → /methodology
01 · Install Un Comtrade MCP Server
before you install - you'll need
Set MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, COMTRADE_SUBSCRIPTION_KEY before connecting.
Claude Code
claude mcp add cyanheads-un-comtrade-mcp-server -- npx -y @cyanheads/un-comtrade-mcp-server Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"cyanheads-un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license Apache-2.0 - declared in the repository
npm package @cyanheads/un-comtrade-mcp-server - published under the repo owner's npm scope (@cyanheads)
registry namespace io.github.cyanheads is GitHub-verified and matches the repo owner
03 · What Un Comtrade MCP Server can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can resolve country and area names to Comtrade M49 numeric codes, fetch bilateral trade flow records - value, quantity, and weight per period/commodity/partner, check which reporter/period/classification combinations have published data, and fetch international trade-in-services data (EBOPS 2010).
The 9 tools it gives your agent
Extracted from the project's README - what un-comtrade-mcp-server lets an agent do.
- comtrade_lookup_countries
- - Resolve country and area names to Comtrade M49 numeric codes.
- comtrade_search_commodities
- - Find HS commodity codes by keyword, description, or code prefix.
- comtrade_list_service_categories
- - List EBOPS 2010 service trade categories by keyword or parent code.
- comtrade_get_trade_flows
- - Fetch bilateral trade flow records - value, quantity, and weight per period/commodity/partner.
- comtrade_get_trade_balance
- - Compute a country's trade balance (exports minus imports) across one or more periods.
- comtrade_get_top_partners
- - Rank trading partners by trade value for a reporter, commodity, and flow direction.
- comtrade_get_top_commodities
- - Rank commodity categories by trade value for a reporter and flow direction.
- comtrade_get_data_availability
- - Check which reporter/period/classification combinations have published data.
- comtrade_get_services_trade
- - Fetch international trade-in-services data (EBOPS 2010).
Latest releases
v0.1.7 · 2026-09-20
mcp-ts-core 0.13.6 adoption, stateless sessions · MCP_SESSION_MODE defaults to stateless, declared via createApp in src/index.ts (#12) · A rejected tool call classifies as InvalidParams (-32602) with a synthesized…
v0.1.6 · 2026-08-21
mcp-ts-core ^0.10.6 -> ^0.12.3 - SDK v2 baseline, enrichment notices, strict inputs · Empty-result and truncation notices moved off the output schema onto ctx.enrich across all eight tools; they reach structuredContent…
v0.1.5 · 2026-06-13
mcp-ts-core 0.10.6 adoption, search truncation flags · Adopts the @cyanheads/mcp-ts-core ^0.10.6 framework and adds explicit truncation signalling to the search tools. · Added: · truncated boolean on…
04 · Who maintains Un Comtrade MCP Server
un-comtrade-mcp-server is maintained by cyanheads. We track 137 MCP servers from cyanheads - 131 actively maintained, 1,856 combined GitHub stars, oldest repo from Dec 2024. Full record: all servers from cyanheads.
- obsidian-mcp-server Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter via MCP. ★ 690
- mcp-ts-core Agent-native TypeScript framework for MCP servers. ★ 152
- git-mcp-server Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. ★ 240
- clinicaltrialsgov-mcp-server Search ClinicalTrials.gov - find studies, retrieve results, match patients to eligible trials. ★ 96
- openalex-mcp-server Access the OpenAlex academic research catalog - 270M+ publications. ★ 14
- mcp-ts-template TypeScript template for building MCP servers with declarative tooling, observability, and auth. ★ 152
05 · Facts
- repository
- github.com/cyanheads/un-comtrade-mcp-server
- category
- other - ranked #361 of 998 actively-maintained other servers as of 2026-09-30.
- release cadence
- 2 releases in the last 90 days (latest 2026-09-20)
- registry
- io.github.cyanheads/un-comtrade-mcp-server (active, first published 2026-05-26 · 6 versions)
- packages
- npm:@cyanheads/un-comtrade-mcp-server · npm:@cyanheads/un-comtrade-mcp-server
06 · Un Comtrade MCP Server FAQ
Is Un Comtrade MCP Server still maintained?
Yes - as of 2026-09-30, its last commit was 2026-09-20 and it shipped 2 releases in the last 90 days. We re-verify nightly.
What can Un Comtrade MCP Server do?
With this server connected, an agent can resolve country and area names to Comtrade M49 numeric codes, fetch bilateral trade flow records - value, quantity, and weight per period/commodity/partner, check which reporter/period/classification combinations have published data, and fetch international trade-in-services data (EBOPS 2010).
How do I install Un Comtrade MCP Server?
Run `npx -y @cyanheads/un-comtrade-mcp-server`. The README documents 3 environment variables (MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, COMTRADE_SUBSCRIPTION_KEY) to set first. Set MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, COMTRADE_SUBSCRIPTION_KEY before connecting. You can also paste the ready-made client config above.
Does Un Comtrade MCP Server run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Un Comtrade MCP Server
Alternatives to Un Comtrade MCP Server
Maintained other servers if Un Comtrade MCP Server isn't the fit.
- Heyputer MCP Server Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more ★ 43,609 · 2026-09-29
- Server Commands An MCP server to run arbitrary commands ★ 39,168 · 2026-09-24
- basebalance.cloud - x402 RPC & MCP gateway USDC-gated Base JSON-RPC: free 10 req/min, $0.50 per 10k. Failover, cache, /mcp, ledger. ★ 6,763 · 2026-08-26
- Zotero MCP (54yyyu) Search, read, annotate, and add to your Zotero research library, local or web. ★ 5,203 · 2026-09-30
- Firebase MCP Gives AI development tools Firebase-specific capabilities and expertise. ★ 4,475 · 2026-09-30
- Microsoft Fabric MCP Server MCP tools for interacting with Microsoft Fabric ★ 3,722 · 2026-09-29
More MCP servers to compare · Worldbank MCP Server · Scaleway Functions · Cygnus SSH MCP · Gsearch · Sigrok
More TypeScript MCP servers · Uniprot MCP Server · Usaspending MCP Server · Who Gho MCP Server · Wikidata MCP Server · Wikipedia MCP Server · see all