原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Un Comtrade MCP Server

作者:cyanheads版本 0.4.0i★ 4i电脑或云端官方网站 ↗
注册名称io.github.cyanheads/un-comtrade-mcp-server

安装方法

What it does

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

  • Connects 电脑或云端
  • Account or key No key needed
  • Category 数据库与数据集

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6291 个 skill

Skill · 操作手册

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6021 个 skill

Skill · 操作手册

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

作者:gosom★ 8,2091 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度21/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应8/8上次检查时云端端点有响应
使用分41/100

质量: 基础检查通过 5/5 项(仅展示,不用于排序) · 上升势头: 34 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Un Comtrade MCP Server。按照 https://mcp.popnx.com/i/cyanheads-un-comtrade-mcp-server.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 5/5 项检查 · 你的提问会经过开发者的服务器(un-comtrade.caseyjhand.com) · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 2 分钟

不需要密钥,不用安装程序 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Un Comtrade MCP Server
    Remote MCP server URL · 地址https://un-comtrade.caseyjhand.com/mcp

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  3. 在聊天中开启

    +ConnectorsUn Comtrade MCP Server

  4. 试一试

    用 Un Comtrade MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Un Comtrade MCP Server,或回答中出现 Un Comtrade MCP Server 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

能否连接 ChatGPT 取决于方案

完整 MCP:网页版 ChatGPT Business、Enterprise 或 Edu · Pro:以读取/获取权限连接,修改数据的工具可能用不了 · Plus:官方文档尚未确认,如果在插件页看到添加自定义 MCP 的选项可以试试 · 仅限网页

  1. 在网页版 ChatGPT 打开添加 MCP 的页面

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 填写名称和地址

    输入名称,在 Connection 下粘贴地址,勾选风险提示,然后点击 Create as a plugin

    Name · 名称Un Comtrade MCP Server
    Connection · 地址https://un-comtrade.caseyjhand.com/mcp
  3. 在聊天中选择 Un Comtrade MCP Server

    开启新聊天,输入前先从插件列表中选择 Un Comtrade MCP Server

  4. 试一试

    用 Un Comtrade MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 ChatGPT 说正在使用 Un Comtrade MCP Server,或回答中出现 Un Comtrade MCP Server 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 OpenAI 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Claude Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  2. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user un-comtrade https://un-comtrade.caseyjhand.com/mcp
  3. 在 Claude Code 中输入 /mcp

    应能看到 Un Comtrade MCP Server 在列表中并显示已连接

  4. 试一试

    用 Un Comtrade MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Un Comtrade MCP Server,或回答中出现 Un Comtrade MCP Server 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  2. 在 Cursor 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 Un Comtrade MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Un Comtrade MCP Server,或回答中出现 Un Comtrade MCP Server 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 2 分钟

不需要密钥,不用安装程序

  1. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  2. 在 VS Code 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 Un Comtrade MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Un Comtrade MCP Server,或回答中出现 Un Comtrade MCP Server 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://un-comtrade.caseyjhand.com/mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Un Comtrade MCP Server 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user un-comtrade https://un-comtrade.caseyjhand.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "un-comtrade": {
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "un-comtrade": {
      "type": "http",
      "url": "https://un-comtrade.caseyjhand.com/mcp"
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user un-comtrade -- npx -y @cyanheads/un-comtrade-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "un-comtrade": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "un-comtrade": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "un-comtrade": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/un-comtrade-mcp-server"
      ]
    }
  }
}

需要你填写的值

  • COMTRADE_SUBSCRIPTION_KEY 机密 env
    来自 comtradedeveloper.un.org 的 Azure API Management 密钥。可选——没有该密钥时,工具会回退到公共预览端点(上限 500 条记录)。
    查看英文原文Azure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap).
  • MCP_LOG_LEVEL env
    设置输出的最低日志级别(例如 'debug'、'info'、'warn')
    查看英文原文Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
637/周
许可证i
Apache-2.0
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
0.4.0
发布到注册中心i
2026年11月13日
代码最后更新i
2026年11月13日
最近检查
2026年11月18日
作者
cyanheads
软件包
npm: @cyanheads/un-comtrade-mcp-server
npm: @cyanheads/un-comtrade-mcp-server
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月18日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • comtrade_lookup_countries

    Resolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial or full name, an official name (e.g. "Republic of Korea"), a common name (e.g. "UK", "Turkey"), or an ISO alpha-2/alpha-3 code (e.g. "USA", "US"), ignoring case and accents; e

  • comtrade_search_commodities

    Find HS or SITC commodity codes by keyword, description, or code prefix. A code written with dots, spaces, or hyphens ("0901.11") matches 090111. Exact codes, code prefixes and contiguous description matches rank first, followed by descriptions containing every query term in any

  • comtrade_list_service_categories

    List service trade categories from the combined EB catalog, including numeric EBOPS and SDMX codes. Returns category codes, descriptions, parent codes, and the EBOPS scheme catalogs that list each code: EB10 (EBOPS 2010), EB10S (EBOPS 2010 SDMX codes), EB02 (EBOPS 2002). Filter b

  • 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; pas

  • comtrade_get_trade_balance

    Compute the trade balance for a country over one or more periods — total exports minus total imports — with an optional HS or SITC commodity filter whose codes must not overlap. Keyless preview makes two requests per served period, at least 4 seconds apart; authenticated calls ba

  • 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 peri

  • comtrade_get_top_reporters

    Rank retrieved reporting areas by reported import or export value for one goods code and period. Partner 0 (World) ranks reporters by their trade with all partners. Use a bilateral partner to rank reporters by their trade with that area. Shares use the retrieved reporting areas b

  • comtrade_get_top_commodities

    Rank HS chapters (2-digit) or headings (4-digit) by trade value for one reporter, flow, and annual or monthly period. Set parent_code and a deeper aggr_level to rank headings or subheadings within one chapter or heading. The tool uses matching TOTAL to identify the HS edition and

  • 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 ty

  • comtrade_get_services_trade

    Fetch annual international trade-in-services data. Classification EB (default) serves each reporter-period as reported, in its own scheme (EB10, EB10S or EB02 codes); EB10 or EB02 selects UN Comtrade's conversion of other schemes into that one. Each row names its classification a

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于6天前

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • ✓ 通过

    端点有响应

    在 614 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 10 个工具描述,未发现针对 AI 的隐藏指令

云端地址最近 4 次检查中有 4 次响应 · 最近一次 614 ms · 检查于 2026年11月18日

已公开的漏洞(OSV.dev)

OSV.dev 中没有 @cyanheads/un-comtrade-mcp-server@0.4.0 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/cyanheads-un-comtrade-mcp-server.svg)](https://mcp.popnx.com/en/servers/cyanheads-un-comtrade-mcp-server)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“数据库与数据集”中的其他服务器比较i

  • 星标数多于此分类中其他 1234 个服务器的 88%
  • 发布到注册中心的时间比此分类中其他 1234 个服务器的 88% 更新
  • 基础检查结果等于或优于此分类中其他 1234 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Un Comtrade MCP Server 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于6天前,最新版本(0.4.0)于6天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

QueryWeaver

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

作者:FalkorDB正在增长★ 109614个月前更新

在你的电脑上运行✓ falkordb.com

Supabase

MCP server for interacting with the Supabase platform

作者:supabase广泛使用↓ 24.6万/周★ 3018 整个仓库的星标昨天更新

电脑或云端✓ 服务方 · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

作者:neondatabase正在增长★ 66613天前更新

在云端运行✓ 服务方 · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

作者:dbcodeio起步阶段↓ 118/周★ 367 整个仓库的星标2个月前更新

在你的电脑上运行✓ 服务方 · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

作者:keboola正在增长↓ 1421/周★ 843天前更新

电脑或云端✓ 服务方 · keboola.com
与相似项目对比
本项
Un Comtrade MCP Server
QueryWeaverSupabaseNeonDBCodeKeboola MCP
运行位置云端或安装在电脑上都可以需要安装在电脑上云端或安装在电脑上都可以在云端运行,无需安装需要安装在电脑上云端或安装在电脑上都可以
需要密钥否否是否否否
可在 Claude 中按 + 添加否否是是否否
基础检查5/53/35/55/52/35/5
许可证Apache-2.0AGPL-3.0Apache-2.0MITNOASSERTIONMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@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. 10 Tools • 3 Resources

Public Hosted Server: https://un-comtrade.caseyjhand.com/mcp


Overview

International merchandise and services trade statistics from UN Comtrade. Resolve country and HS commodity codes, fetch bilateral trade flows and services trade, and compute balances, partner/commodity/reporter rankings, and data availability.

Tools
ToolDescription
comtrade_lookup_countriesResolve country and area names to Comtrade M49 numeric codes.
comtrade_search_commoditiesFind HS or SITC commodity codes in a selected edition by keyword, description, or code prefix.
comtrade_list_service_categoriesFind service trade categories in Comtrade's combined EB catalog, tagged with their EBOPS schemes, by keyword or parent code.
comtrade_get_trade_flowsFetch bilateral trade flow records — value, quantity, and weight per period/commodity/partner.
comtrade_get_trade_balanceCompute a country's trade balance (exports minus imports) across one or more periods.
comtrade_get_top_partnersRank trading partners by trade value for a reporter, commodity, and flow direction.
comtrade_get_top_reportersRank retrieved reporting areas by goods trade value for a commodity and flow direction.
comtrade_get_top_commoditiesRank commodity categories by trade value for a reporter and flow direction.
comtrade_get_data_availabilityCheck which reporter/period/classification combinations have published data.
comtrade_get_services_tradeFetch international trade-in-services data — EB as reported (EB10, EB10S, or EB02 codes), or UN Comtrade's converted EB10/EB02 series.
Resources
ResourceDescription
comtrade://countriesComplete country/area code list with M49 codes, ISO identifiers, and reporter validity.
comtrade://hs-classification/{level}Top-level HS commodity hierarchy at chapter, heading, or subheading level.
skill://un-comtrade-guide/SKILL.mdWorkflow guide for historical classifications, coverage, bilateral/mirror analysis, and unit values.

Country and HS reference data are also reachable through comtrade_lookup_countries and comtrade_search_commodities. The workflow guide ships with npm, Docker, MCPB, and plugins, and is available over MCP as a skill resource.

Capability reference

comtrade_lookup_countries tool
  • Accepts a partial or full country name, an official name ("Republic of Korea"), a common name ("UK", "Turkey"; 17 aliases), or an ISO alpha-2/alpha-3 code, ignoring case, accents, and surrounding spaces. Curly apostrophes and whole-word "St"/"St." also match their catalog spellings; literal ISO codes such as ST retain their meaning. A blank query is rejected, and one of only combining marks matches nothing. role filters to "reporter", "partner" (only entries in UN's partner-area list, so no reporter-only groupings such as the European Union, 97), or "any" (default)
  • validAsReporter flag on each match — most regional groupings (e.g. World) are partner-only, but some report (e.g. the European Union, 97)
  • include_groups (default true) toggles regional/economic groupings in the results; a grouping that is the code a match's goods trade is published under (490 for 158) is kept. When false leaves only groupings out, the notice says so and to retry with true
  • note on a match carries the catalog's long-form name or coverage note (e.g. "France, Monaco" for 251); a match can come from it. Absent when it repeats the name
  • Each match also pulls in entries sharing its ISO-3 identity, and the code UN Comtrade publishes a match's goods trade under: Taiwan's 158 is partner-only, with goods trade published under reporter 490 (Other Asia, nes), so a lookup that matches 158 also returns 490. Use 490 as goods reporter_code or partner_code; use 158 as the services partner_code. Exact matches (alias, ISO code, name, or note equal to the query) list before partial ones, and a pulled-in entry ranks with its match; within a rank: reporter-valid, current before expired, name, then code. Reporter and partner-only area codes remain distinct
  • entryEffectiveDate and entryExpiredDate (YYYY-MM-DD) give each entity's validity, so historical entities (e.g. Fed. Rep. of Germany, ...1990) sort after current ones within a rank
  • Country references load from UN static files at startup — no subscription key required. Rows that fail validation are dropped and logged; startup fails on an empty catalog or when fewer than half a file's rows are valid

comtrade_search_commodities tool
  • Free-text keyword, partial description, or code-prefix search; a code written with dots, spaces, or hyphens (0901.11) matches 090111. Exact code, code prefix, whole-word description, and other contiguous matches rank before descriptions containing every query term in any order; ties retain catalog order. A blank query, or one with no letter or digit, is rejected. classification (case-insensitive, default HS) selects the combined HS discovery reference, an HS edition H0–H6, or SITC SS/S1–S4
  • aggr_level uses the selected catalog's native levels: HS chapters/headings/subheadings use 2/4/6; SITC has levels 1–5. Omit for all levels. The HS all-commodities TOTAL is level 0, which no aggr_level filter returns
  • limit (default 50) is the page size; totalMatches, shown, and truncated describe the page, and offset with the returned nextOffset continues it
  • recommendedQueryCode is the code to pass as cmd_code in a trade query. Use the classification appropriate to the trade series and your access tier
  • Default HS results include editions, the H0–H6 catalogs listing the code, and parentDescription for codes absent from H6 when the immediate parent exists in the discovery catalog. Membership does not establish the same meaning across editions. Identify the series from trade rows or availability, then search its explicit edition; keyless trade queries still use HS. If an edition catalog is unavailable, matches and pagination remain usable without edition-derived fields, with a separate referenceNotice

comtrade_list_service_categories tool
  • Lists the combined EB service categories, optionally filtered by keyword or parent_code; numeric and alphabetic codes are distinct entries. A query ranks exact code, code prefix, whole-word description, then other description matches (ties and unfiltered listings in catalog order); codes compare case-insensitively and keep their dots, and a blank query lists every category. parent_code: "200" lists the EB10 and EB02 top levels
  • schemes on each category names the EBOPS scheme catalogs that list its code (EB10, EB10S, EB02); it is empty when none does and absent, with a notice, when the scheme catalogs could not be loaded. ebParent carries the parent the combined EB catalog gives a code when it differs from parent (TOTAL for EB10's top-level codes, whose parent is 200)
  • limit (default 100) is the page size; totalMatches, shown, and truncated describe the page, and offset with the returned nextOffset continues it
  • Returned id is the service_code for comtrade_get_services_trade

comtrade_get_trade_flows tool
  • Accepts a scalar reporter_code or an array; omission requires an explicit partner_code. Reporter arrays serve the first 20 distinct codes and disclose the remainder in unservedReporters. Served codes of an array that return no rows are listed in reportersWithoutRecords (referenceStatus, optional suggestedReporterCode; omitted when the response is truncated). A scalar partner-only reporter code, or a partner_code with a reporter-valid counterpart, gets a notice naming the code to query instead when no rows come back (reporter 250 → 251, 158 → 490; partner 840 → 842, 158 → 490)
  • Requires flow_code (M import / X export / RX re-export / RM re-import) and period values, all YYYY or all YYYYMM. freq is optional: it is inferred from the period length, mixed lengths are rejected, and an explicit value must match. Up to 120 periods are accepted; keyless calls serve the first 8 distinct periods (12 with a subscription key). Periods past the cap, or whose request is rate limited, hits a UN Comtrade server error or network failure after retries, or runs out of time, are listed in unservedPeriods with a notice naming each failure (the HTTP status for a server error); if every period fails the call returns rate_limited, upstream_unavailable, or deadline_exceeded
  • partner_code: 0 returns the World total; omitting it can return World alongside the partner breakdown. A notice identifies this overlap: exclude World when summing partner rows, and check for other aggregates. classification (case-insensitive, default HS) supports HS, H0–H6, and SITC S1–S4/SS. Explicit HS editions require authenticated data access; keyless HS returns as-reported editions, identified by each row's classificationCode
  • cmd_code[] accepts up to 200 codes and serves the first 20 distinct codes, listing the rest in unservedCmdCodes; omit it or pass ["TOTAL"] for cross-commodity totals. truncated: true plus truncationHint means the response hit the 500-record cap; isReported separates directly reported rows from UN-estimated ones
  • cmdCodesWithoutRecords lists explicitly served selecto

只显示了开头部分;其余内容请在仓库中阅读