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.

  1. obsidian-mcp-server Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter via MCP. ★ 690
  2. mcp-ts-core Agent-native TypeScript framework for MCP servers. ★ 152
  3. git-mcp-server Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. ★ 240
  4. clinicaltrialsgov-mcp-server Search ClinicalTrials.gov - find studies, retrieve results, match patients to eligible trials. ★ 96
  5. openalex-mcp-server Access the OpenAlex academic research catalog - 270M+ publications. ★ 14
  6. mcp-ts-template TypeScript template for building MCP servers with declarative tooling, observability, and auth. ★ 152

05 · Facts

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