Un Comtrade MCP Server
Überblick
Beschreibung vom Entwickler (englisches Original)
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
Die drei Säulen von PopNx MCP
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
- Stimmen der NutzeriNoch keine BewertungenBewertungen starten in einem späteren Schritt zusammen mit Benutzerkonten
- Unsere Basischecksi3 von 3 bestandenAnhand öffentlicher Informationen geprüft; Code noch nicht gescannt
- NutzungiAm Anfang↓ 559/Wo. · ★ –
Was du damit machen kannst
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
- Verbindung: Computer oder Cloud
- Transport: stdio, Streamable HTTP
- Kategorie: Datenbanken & Datensätze
Installation
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
Bevor du installierst
- Basischecks: 3 von 3 bestanden
- Läuft auf dem Server des Entwicklers: Was du fragst, läuft über dessen Server.
- Kann 9 Dinge (Tools) comtrade_lookup_countries, comtrade_search_commodities, comtrade_list_service_categories, comtrade_get_trade_flows …
- Das trägst du selbst ein:
COMTRADE_SUBSCRIPTION_KEY,MCP_LOG_LEVEL
Du brauchst
- Läuft in der CloudNichts zu installieren; die Verbindung läuft übers Internet
- npmNode.js installiert (für den Befehl npx)
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Funktioniert in Claude im Web, auf dem Desktop und auf dem Handy:
- Öffne Settings → Connectors
- Tippe auf Add custom connector
- Füge die Adresse unten ein und tippe auf Add
- Wenn eine Anmeldung verlangt wird, melde dich beim Dienst des Entwicklers an
https://un-comtrade.caseyjhand.com/mcpOder führ ihn auf deinem Computer aus
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}Führe das in deinem Terminal aus
claude mcp add --transport http un-comtrade https://un-comtrade.caseyjhand.com/mcpOder führ ihn auf deinem Computer aus
claude mcp add un-comtrade --env COMTRADE_SUBSCRIPTION_KEY=your-value --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/un-comtrade-mcp-serverTrag die leeren Werte ein, bevor du ihn startest.
Oder kopier die Einstellungen selbst
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"un-comtrade": {
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}Oder führ ihn auf deinem Computer aus
Oder kopier die Einstellungen selbst
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Oder kopier die Einstellungen selbst
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"un-comtrade": {
"type": "http",
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}Oder führ ihn auf deinem Computer aus
Oder kopier die Einstellungen selbst
In .vscode/mcp.json in deinem Projekt einfügen
{
"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"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
ChatGPT verbindet sich nur mit Servern im Internet:
- Öffne ChatGPT im Web → Settings → Connectors (Apps)
- Tippe auf Create oder Add (bei manchen Tarifen musst du zuerst Developer mode unter Advanced einschalten)
- Füge die Adresse unten ein, gib ihr einen Namen und speichere
- Wenn eine Anmeldung verlangt wird, melde dich beim Dienst des Entwicklers an
https://un-comtrade.caseyjhand.com/mcpMenünamen können sich je nach Tarif und mit der Zeit leicht unterscheiden.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
Werte, die du selbst einträgst
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').
Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Was er kann
Tool-Namen und -Beschreibungen genau so, wie der Server sie am 6. Nov. 2026 gemeldet hat. Geschrieben hat sie der Entwickler, nicht wir; wir zeigen sie als reinen Text.
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
Basischecksi
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 9. Nov. 2026
- ✓ Bestanden
Entwickler passt zum Repo
Der Registry-Name wurde mit dem GitHub-Konto cyanheads bestätigt, dem das Repo gehört
- … Noch nicht geprüft
Wird noch gepflegt
Dieses Repo haben wir noch nicht von GitHub gelesen
- … Noch nicht geprüft
Hat eine Lizenz
Dieses Repo haben wir noch nicht von GitHub gelesen
- ✓ Bestanden
Endpunkt antwortet
Antwort in 355 ms (HTTP 200)
- – Nicht zutreffend
Anmeldung mit OAuth
Keine Anmeldung nötig
- ✓ Bestanden
Keine versteckten Anweisungen in Tool-Beschreibungen
Wir haben 9 Tool-Beschreibungen gelesen und keine versteckten Anweisungen an die KI gefunden
Im Vergleich mit anderen in Datenbanken & Datensätzei
- Mehr Sterne als 0 % der anderen 1151 Server in dieser Kategorie
- Neuer in der Registry veröffentlicht als 91 % der anderen 1151 Server in dieser Kategorie
- Basischecks gleich gut wie oder besser als bei 100 % der anderen 1151 Server in dieser Kategorie
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Häufige Fragen
Ist Un Comtrade MCP Server sicher?
Er hat 3 von 3 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Welche Schlüssel oder Codes braucht er?
Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.
Läuft er auf meinem Computer oder in der Cloud?
Beides geht: Installiere ihn auf deinem Computer oder verbinde dich mit der Cloud-Version.
Wird er noch gepflegt?
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.3.1) kam vor 3 Tagen in die Registry.
Welche Apps können ihn nutzen?
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Er verbindet sich per URL, also funktionieren auch Apps, die Remote-MCP-Server akzeptieren, zum Beispiel ChatGPT im Entwicklermodus.
Was kann ich stattdessen nutzen?
In derselben Kategorie: Supabase, MongoDB MCP Server, Elasticsearch MCP Server
Alternativen
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
README vom Entwickler
README öffnen
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
@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
Nur der Anfang wird gezeigt; den Rest findest du im Repo