Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Un Comtrade MCP Server
Un Comtrade MCP Server logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 7:22:17 PM

Un Comtrade MCP Server

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository3 GitHub StarsTotal stargazers on GitHub for the source repository (3 stars).Visit Website

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "un-comtrade-mcp-server": {
      "command": "bunx",
      "args": [
        "@cyanheads/un-comtrade-mcp-server@latest"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

@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.

9 Tools β€’ 2 Resources

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Note: The UN Comtrade license agreement (Β§5) prohibits redistributing data without prior written UN permission. Connect with your own Comtrade subscription key.


Tools

9 tools covering the full UN Comtrade workflow β€” reference resolution, trade data retrieval, aggregated rankings, and coverage checking:

ToolDescription
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.
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.
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.
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.
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.
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.
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.
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.
comtrade_get_data_availabilityCheck which reporter/period/classification combinations have published data before constructing expensive queries. Returns record count and publication date per dataset.

comtrade_lookup_countries

Resolve reporter and partner codes from natural-language names or ISO identifiers.

  • Accepts partial country name, ISO alpha-2 (US), or ISO alpha-3 (USA)
  • role filter: "reporter", "partner", or "any" β€” narrows results to only valid reporters or all partner areas
  • validAsReporter flag on each result β€” regional groupings (e.g., Africa, ASEAN) are valid as partners but cannot be used as reporter_code
  • Optional include_groups to surface regional aggregate codes
  • Reference data is loaded from UN static files at startup β€” no key required, instant response

comtrade_search_commodities

Find the HS code for any product before querying trade flows.

  • Free-text keyword search across HS descriptions (e.g., "semiconductors", "crude oil")
  • Accepts known code prefixes β€” "8471" returns the matching chapter and all descendants
  • Aggregation level control: start with aggr_level: 2 (chapters) to scope a sector, then narrow to 4 or 6 for specific headings or subheadings
  • recommended_query_code field on each result β€” the best level for downstream comtrade_get_trade_flows calls
  • Reference data loaded at startup from UN HS files, covering HS combined and editions H0–H6

comtrade_get_trade_flows

Fetch bilateral trade records β€” the primary data retrieval tool.

  • reporter_code + flow_code (M import / X export / RX re-export / RM re-import) + period[] required
  • period accepts annual (YYYY) or monthly (YYYYMM); pass multiple years as an array for time-series in one request (avoids multiple API calls against the 500-req/day free limit)
  • partner_code: 0 aggregates across all partners (World total) β€” no partner lookup needed
  • cmd_code[] accepts comma-separated HS codes; omit or use TOTAL for cross-commodity totals
  • Free-tier cap: 500 records per call; truncated: true + hint when the cap is hit
  • Joins country and commodity descriptions from the in-memory reference cache β€” preview-endpoint responses omit *Desc fields

comtrade_get_trade_balance

Compute signed trade balance from parallel export + import fetches.

  • Runs export (flowCode=X) and import (flowCode=M) requests in parallel, then computes locally
  • Returns balance (USD, signed), exports, imports, and coverageRatio (exports / imports)
  • Optional cmd_code filter for commodity-specific balance (e.g., energy trade balance)
  • Surfaces mirror-asymmetry caveat β€” the balance reflects values as reported by this country, not the mirror reporter

comtrade_get_top_partners

Rank trading partners by value for a single period.

  • Fetches one record per partner by omitting the partner filter, then sorts locally
  • Joins partner names from the in-memory reference cache
  • limit controls N returned (default 10)
  • Answers "who does Germany mainly export machinery to?" in one call

comtrade_get_top_commodities

Rank commodity chapters or headings by value for a single period.

  • aggr_level: 2 for HS chapter ranking (21 sections), 4 for heading ranking
  • Optional partner_code to scope the ranking to a specific bilateral relationship
  • Answers "what does Japan mainly import?" β€” symmetric counterpart to comtrade_get_top_partners

comtrade_get_data_availability

Check data coverage before querying.

  • Accepts optional reporter_code, period, freq (A annual / M monthly), and classification filters
  • Returns dataset records with period, classification, record count, and publication date
  • Annual data is typically published 3–12 months after the reference year β€” call this before querying recent periods to avoid empty results

comtrade_get_services_trade

Fetch services trade data (EBOPS 2010 classification).

  • Same bilateral structure and parameters as comtrade_get_trade_flows
  • service_code accepts an EBOPS category code β€” use comtrade_list_service_categories to find the right code
  • Covers financial services, transport, travel, insurance, and all EBOPS 2010 categories

Resources and prompts

TypeNameDescription
Resourcecomtrade://countriesComplete country/area code list β€” M49 numeric codes, ISO identifiers, validAsReporter flag, and group membership. Loaded from UN reference data at startup.
Resourcecomtrade://hs-classification/{level}Top-level HS commodity hierarchy at aggregation level 2 (chapters), 4 (headings), or 6 (top ~1 200 subheadings). Full leaf enumeration is too large to inject β€” use comtrade_search_commodities for keyword search.

All resource data is also reachable via tools. comtrade://hs-classification/{level} provides a browsable hierarchy; for keyword resolution use comtrade_search_commodities instead.

Features

Built on @cyanheads/mcp-ts-core:

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • AgentPhone logoAgentPhone

    Give AI agents real phone numbers, messages, and voice calls via MCP.

    πŸ’» Developer Tools0 views
    Compare vs AgentPhone β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’
  • Comtrade logoComtrade

    Comtrade MCP β€” UN Comtrade API for international bilateral trade data

    πŸ’» Developer Tools0 views
    Compare vs Comtrade β†’
  • Labelhead Artist Momentum logoLabelhead Artist Momentum

    Trending hip-hop artist momentum scores across four cultural dimensions.

    πŸ’» Developer Tools0 views
    Compare vs Labelhead Artist Momentum β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Un Comtrade MCP Server

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "un-comtrade-mcp-server": { "command": "npx", "args": ["-y", "un-comtrade-mcp-server"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUn Comtrade MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/un-comtrade-mcp-server?style=directory)](https://allmcps.com/mcp/un-comtrade-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/un-comtrade-mcp-server"><img src="https://allmcps.com/api/badge/un-comtrade-mcp-server?style=directory" alt="Un Comtrade MCP Server on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars3
GitHub Star CountTotal stargazers on GitHub representing community popularity (3 stars).
37Quality signal: Fair Β· 37/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools16/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Un Comtrade MCP Server β†’Install in Claude DesktopInstall in CursorInstall in VS Code