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 11 documented tools cover comtrade, trade, commodities, top.
People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-08-21 · ★ 3 · #306 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25
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
An agent gets 11 documented tools spanning comtrade, trade, commodities, top, including comtrade_lookup_countries, comtrade_search_commodities, comtrade_list_service_categories, comtrade_get_trade_flows.
Capability map
Tools grouped from the project's README - what Un Comtrade MCP Server lets an agent do.
Comtrade
9 tools - e.g. Resolve country and area names to Comtrade M49 numeric codes. Accepts partial names or ISO alpha-2/alpha-3 codes. Returns matching entries with validAsReporter ; Find HS commodity codes by keyword…
comtrade_lookup_countries · comtrade_search_commodities · comtrade_list_service_categories · comtrade_get_trade_flows · comtrade_get_trade_balance · comtrade_get_top_partners…
Partner
1 tool - e.g. 0 aggregates across all partners (World total) - no partner lookup needed
partner_code
Aggr
1 tool - e.g. 2 for HS chapter ranking (21 sections), 4 for heading ranking
aggr_level
Latest releases
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…
v0.1.4 · 2026-06-10
Trade data correctness fixes · Fixes three data-accuracy bugs in fetchTradeData: trade totals no longer sum dimension-expanded breakdown rows, partner rankings deduplicate per-partner, and services descriptions resolve…
04 · Who maintains Un Comtrade MCP Server
un-comtrade-mcp-server is maintained by cyanheads. We track 125 MCP servers from cyanheads - 124 actively maintained, 1,730 combined GitHub stars, oldest repo from Dec 2024. Full record: all servers from cyanheads.
- mcp-ts-core Agent-native TypeScript framework for building MCP servers with declarative definitions. ★ 148
- obsidian-mcp-server Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter via MCP. ★ 668
- git-mcp-server Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. ★ 235
- pubmed-mcp-server Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms. ★ 137
- clinicaltrialsgov-mcp-server Search ClinicalTrials.gov - find studies, retrieve results, match patients to eligible trials. ★ 90
- mcp-ts-template TypeScript template for building MCP servers with declarative tooling, observability, and auth. ★ 148
05 · Facts
- repository
- github.com/cyanheads/un-comtrade-mcp-server
- category
- other - ranked #306 of 848 actively-maintained other servers as of 2026-08-25.
- release cadence
- 3 releases in the last 90 days (latest 2026-08-21)
- registry
- io.github.cyanheads/un-comtrade-mcp-server (active, first published 2026-05-26 · 5 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-08-25, its last commit was 2026-08-21 and it shipped 3 releases in the last 90 days. We re-verify nightly.
What can Un Comtrade MCP Server do?
An agent gets 11 documented tools spanning comtrade, trade, commodities, top, including comtrade_lookup_countries, comtrade_search_commodities, comtrade_list_service_categories, comtrade_get_trade_flows.
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,204 · 2026-08-24
- Server Commands An MCP server to run arbitrary commands ★ 38,704 · 2026-08-05
- Zotero MCP (54yyyu) Search, read, annotate, and add to your Zotero research library, local or web. ★ 4,780 · 2026-08-25
- Firebase MCP Gives AI development tools Firebase-specific capabilities and expertise. ★ 4,460 · 2026-08-25
- Microsoft Fabric MCP Server MCP tools for interacting with Microsoft Fabric ★ 3,598 · 2026-08-21
- Ship Swift 40+ production-ready SwiftUI recipes for building full-stack iOS apps via MCP. ★ 2,968 · 2026-08-09
More MCP servers to compare · Worldbank MCP Server · Scaleway Functions · Cygnus SSH MCP · Gsearch · Sigrok
More TypeScript MCP servers · Usaspending MCP Server · Who Gho MCP Server · Wikidata MCP Server · Wikipedia MCP Server · Workflows MCP Server · see all