Un Comtrade MCP Server
개요
제작자가 쓴 설명(영어 원문)
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
PopNx MCP의 세 기둥
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
- 사용자 의견i아직 리뷰가 없어요리뷰는 다음 단계에서 계정 기능과 함께 열려요
- 우리의 기본 점검i3개 중 3개 통과공개된 정보로 점검했으며, 코드는 아직 스캔하지 않았어요
- 사용 정도i초기↓ 559/주 · ★ –
할 수 있는 일
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
- 연결 방식: 컴퓨터 또는 클라우드
- 전송 방식: stdio, Streamable HTTP
- 카테고리: 데이터베이스 및 데이터셋
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
설치하기 전에
- 기본 점검: 3개 중 3개 통과
- 제작자의 서버에서 실행돼요. 내가 요청한 내용은 제작자의 서버를 거쳐요.
- 할 수 있는 일 9가지(도구) comtrade_lookup_countries, comtrade_search_commodities, comtrade_list_service_categories, comtrade_get_trade_flows …
- 직접 입력할 값:
COMTRADE_SUBSCRIPTION_KEY,MCP_LOG_LEVEL
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
웹, 데스크톱, 모바일의 Claude에서 쓸 수 있어요:
- Settings → Connectors 열기
- Add custom connector 누르기
- 아래 주소를 붙여 넣고 Add 누르기
- 로그인하라고 하면 제작자의 서비스에 로그인하기
https://un-comtrade.caseyjhand.com/mcp또는 내 컴퓨터에서 실행하기
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add --transport http un-comtrade https://un-comtrade.caseyjhand.com/mcp또는 내 컴퓨터에서 실행하기
claude mcp add un-comtrade --env COMTRADE_SUBSCRIPTION_KEY=your-value --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/un-comtrade-mcp-server실행하기 전에 빈 값을 채워 주세요.
또는 설정을 직접 복사하기
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"un-comtrade": {
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}또는 내 컴퓨터에서 실행하기
또는 설정을 직접 복사하기
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
또는 설정을 직접 복사하기
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"un-comtrade": {
"type": "http",
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}또는 내 컴퓨터에서 실행하기
또는 설정을 직접 복사하기
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"un-comtrade": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요:
- 웹에서 ChatGPT 열기 → Settings → Connectors (Apps)
- Create 또는 Add 누르기(일부 요금제는 먼저 Advanced에서 Developer mode를 켜야 해요)
- 아래 주소를 붙여 넣고 이름을 정한 뒤 저장하기
- 로그인하라고 하면 제작자의 서비스에 로그인하기
https://un-comtrade.caseyjhand.com/mcp메뉴 이름은 요금제나 시기에 따라 조금 다를 수 있어요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
직접 입력할 값
COMTRADE_SUBSCRIPTION_KEYenvAzure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap).MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
할 수 있는 일
도구 이름과 설명은 서버가 2026년 11월 6일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.
comtrade_lookup_countriesResolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial name, full name, or ISO alpha-2/alpha-3 code (e.g. "United States", "USA", "US"). Returns matching entries with their numeric code, ISO identifiers, a validAsReporter flag, an
comtrade_search_commoditiesFind HS or SITC commodity codes by keyword, partial description, or code prefix in the selected classification. Returns descriptions, native aggregation levels, parents, leaf status, and recommendedQueryCode for subsequent trade queries. HS uses levels 2 (chapter), 4 (heading), a
comtrade_list_service_categoriesList 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_flowsFetch 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_balanceCompute the trade balance for a country over one or more periods — total exports minus total imports — with optional HS or SITC commodity filter. Keyless preview makes two requests per served period, at least 4 seconds apart; authenticated calls batch periods. Returns the signed
comtrade_get_top_partnersRank 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_commoditiesRank HS chapters (2-digit) or headings (4-digit) by trade value for one reporter, flow, and annual or monthly period. Retrieves matching TOTAL and the reporter’s HS edition, then queries explicit commodity codes in chunks; capped chunks are subdivided. Shares use matching TOTAL.
comtrade_get_data_availabilityCheck 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_tradeFetch 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월 9일 점검
- ✓ 통과
제작자와 저장소 일치
레지스트리 이름이 GitHub 계정 cyanheads 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
- … 아직 점검 안 함
계속 관리되고 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- … 아직 점검 안 함
라이선스 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- ✓ 통과
엔드포인트 응답
355ms 만에 응답(HTTP 200)
- – 해당 없음
OAuth로 로그인
로그인 필요 없음
- ✓ 통과
도구 설명에 숨겨진 지시 없음
도구 설명 9개를 읽었고, AI에게 보내는 숨겨진 지시는 없었어요
데이터베이스 및 데이터셋 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 1153개 중 0%보다 스타가 많아요
- 이 카테고리의 다른 서버 1153개 중 90%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 1153개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
Un Comtrade MCP Server, 안전한가요?
해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
둘 다 가능해요. 내 컴퓨터에 설치해도 되고, 클라우드 버전에 연결해도 돼요.
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.3.1)은 4일 전 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되기 때문에, 원격 MCP 서버를 지원하는 앱(예: 개발자 모드의 ChatGPT)에서도 쓸 수 있어요.
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: Supabase, MongoDB MCP Server, Elasticsearch MCP Server
대안
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
제작자의 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. 9 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 rankings, and data availability.
Tools
| Tool | Description |
|---|---|
comtrade_lookup_countries | Resolve country and area names to Comtrade M49 numeric codes. |
comtrade_search_commodities | Find HS or SITC commodity codes in a selected edition by keyword, description, or code prefix. |
comtrade_list_service_categories | Find service trade categories in Comtrade's combined EB catalog, tagged with their EBOPS schemes, 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 — EB as reported (EB10, EB10S, or EB02 codes), or UN Comtrade's converted EB10/EB02 series. |
Resources
| Resource | Description |
|---|---|
comtrade://countries | Complete 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.md | Workflow 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, or an ISO alpha-2/alpha-3 code;
rolefilters to"reporter","partner"(only entries in UN's partner-area list), or"any"(default) validAsReporterflag on each match — most regional groupings (e.g. World) are partner-only, but some report (e.g. the European Union, 97)include_groups(defaulttrue) toggles regional/economic groupings in the results- Each match also pulls in entries sharing its ISO-3 identity, ordered exact ISO match, reporter-valid, current before expired, name, then code; reporter and partner-only area codes remain distinct
entryEffectiveDateandentryExpiredDate(YYYY-MM-DD) give each entity's validity, so historical entities (e.g. Fed. Rep. of Germany, ...1990) sort after current ones- 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;
classification(case-insensitive, defaultHS) selects the currentHSreference, an HS editionH0–H6, or SITCSS/S1–S4 aggr_leveluses the selected catalog's native levels: HS chapters/headings/subheadings use2/4/6; SITC has levels1–5. Omit for all levels. The HS all-commoditiesTOTALis level 0, which noaggr_levelfilter returnslimit(default 50) is the page size;totalMatches,shown, andtruncateddescribe the page, andoffsetwith the returnednextOffsetcontinues itrecommendedQueryCodeon each result — the code to pass ascmd_codein trade queries, with the sameclassification
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.parent_code: "200"lists the EB10 and EB02 top levels schemeson 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.ebParentcarries the parent the combined EB catalog gives a code when it differs fromparent(TOTALfor EB10's top-level codes, whoseparentis200)limit(default 100) is the page size;totalMatches,shown, andtruncateddescribe the page, andoffsetwith the returnednextOffsetcontinues it- Returned
idis theservice_codeforcomtrade_get_services_trade
comtrade_get_trade_flows tool
- Accepts a scalar
reporter_codeor an array; omission requires an explicitpartner_code. Reporter arrays serve the first 20 distinct codes and disclose the remainder inunservedReporters. Served codes of an array that return no rows are listed inreportersWithoutRecords(referenceStatus, optionalsuggestedReporterCode; omitted when the response is truncated). A scalar partner-only code with no rows gets a notice naming its reporter-valid counterpart (250 → 251) - Requires
flow_code(Mimport /Xexport /RXre-export /RMre-import) andperiodvalues, allYYYYor allYYYYMM.freqis 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 (12 with a subscription key). Periods past the cap, or whose request is rate limited or runs out of time, are listed inunservedPeriodswith a notice; if every period fails the call returnsrate_limitedordeadline_exceeded partner_code: 0returns the World total; omit it for a per-partner breakdown.classification(case-insensitive, defaultHS) supportsHS,H0–H6, and SITCS1–S4/SS. Explicit HS editions require authenticated data access; keylessHSreturns as-reported editions, identified by each row'sclassificationCodecmd_code[]accepts up to 200 codes and serves the first 20, listing the rest inunservedCmdCodes; omit it or pass["TOTAL"]for cross-commodity totals.truncated: trueplustruncationHintmeans the response hit the 500-record cap;isReportedseparates directly reported rows from UN-estimated ones- Quantity and alternate quantity retain unit codes/abbreviations and estimation flags where available. UN Comtrade sends
0for what it does not report, soqty/altQtyof 0 with unit code-1, andnetWgt/grossWgt/cifvalue/fobvalueof 0 beside a positiveprimaryValue, are omitted: an absent field means not reported, not zero. A 0 in a real unit stays a measurement
comtrade_get_trade_balance tool
- Returns
balanceUsd(signed),exportsUsd,importsUsd, andcoverageRatio(exports / imports) per period. Optionalcmd_code[]restricts the balance to HS or SITC commodities partner_codedefaults to World (0); a country code computes the reporter's bilateral balance and is echoed with the partner name.classificationis case-insensitive with defaultHS;freqis optional and inferred from the period length (mixed lengths are rejected; an explicit value must match)- Accepts up to 120 periods and 200 codes. Keyless calls serve the first 4 periods (two requests each; 12 with a subscription key) and 20 codes, listing the rest in
unservedPeriods/unservedCmdCodes; a period is served only when both flows complete, and one whose export or import request is rate limited or runs out of time is listed too. Anoticewarns when either flow hit the 500-record cap and the balance may be incomplete - A partner-only reporter code (0 World, 250 Metropolitan France) with no data fails with
partner_only_reporter, naming the reporter-valid counterpart when one exists (250 → 251) mirrorCaveaton every response: the balance reflects this reporter's own values, not the partner's mirror data
comtrade_get_top_partners tool
- Takes one
reporter_code,flow_code(M/X), and singleperiod; optional singlecmd_code(omit for total merchandise trade) in the selectedclassification(case-insensitive, defaultHS;H0–H6with a subscription key, SITCS1–S4/SS) - Infers annual or monthly frequency from the period; monthly values require a calendar month from
01through12 - Returns the top
limitpartners (default 10; any larger value is honored, with no return-all threshold), each withrank,primaryValueUsd, andsharePercent;totalPartnersandtotalValueUsdcover every partner retrieved, and shares divide bytotalValueUsd;classificationnames the catalog thecmd_codewas read in truncated: truewhen the fetch hit the 500-record cap. An empty result for a partner-only reporter code ends its notice with the reporter-valid counterpart (250 → 251)
comtrade_get_top_commodities tool
- Takes one
reporter_code,flow_code, and singleperiod;aggr_levelis2(HS chapter, default) or4(heading).partner_codedefaults to World (0); set it to scope to one partner - Infers frequency from
period. Fetches matchingTOTALto identif
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요