io.github.cyanheads/un-comtrade-mcp-server
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Repository
- github.com/cyanheads/un-comtrade-mcp-server
- Server address
https://un-comtrade.caseyjhand.com/mcp(streamable-http)- Version
- 0.5.1
- Author
- cyanheads (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 28, 2026)
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Questions for the author
No question yet.
Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.
How to install it
Variables to fill in: COMTRADE_CLAMP_LIMITS, COMTRADE_SUBSCRIPTION_KEY, MCP_LOG_LEVEL.
Remote server (nothing to install)
Claude Code
In a terminal:
claude mcp add --transport http un-comtrade-mcp-server https://un-comtrade.caseyjhand.com/mcpClaude (app and claude.ai)
Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.
https://un-comtrade.caseyjhand.com/mcpChatGPT
In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.
https://un-comtrade.caseyjhand.com/mcpCursor ~/.cursor/mcp.json
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):
{
"mcpServers": {
"un-comtrade-mcp-server": {
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}VS Code .vscode/mcp.json
Add this to your project’s .vscode/mcp.json:
{
"servers": {
"un-comtrade-mcp-server": {
"type": "http",
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add un-comtrade-mcp-server -e COMTRADE_CLAMP_LIMITS=YOUR_COMTRADE_CLAMP_LIMITS -e COMTRADE_SUBSCRIPTION_KEY=YOUR_COMTRADE_SUBSCRIPTION_KEY -e MCP_LOG_LEVEL=YOUR_MCP_LOG_LEVEL -- npx -y @cyanheads/[email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"COMTRADE_CLAMP_LIMITS": "YOUR_COMTRADE_CLAMP_LIMITS",
"COMTRADE_SUBSCRIPTION_KEY": "YOUR_COMTRADE_SUBSCRIPTION_KEY",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"COMTRADE_CLAMP_LIMITS": "YOUR_COMTRADE_CLAMP_LIMITS",
"COMTRADE_SUBSCRIPTION_KEY": "YOUR_COMTRADE_SUBSCRIPTION_KEY",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"un-comtrade-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"COMTRADE_CLAMP_LIMITS": "YOUR_COMTRADE_CLAMP_LIMITS",
"COMTRADE_SUBSCRIPTION_KEY": "YOUR_COMTRADE_SUBSCRIPTION_KEY",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
Responds The server speaks MCP and lists its tools.
- Date
- Nov 28, 2026, 09:17 (test run by L’Atlas)
- Response time
- 1,242 ms (whole test)
- Tools found
- 11
- Announced name
- un-comtrade-mcp-server 0.5.0
- Protocol
- MCP 2025-11-25
- Next test
- Dec 5, 2026
See the tools (11)
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. "Ucomtrade_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 descriptcomtrade_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 2010comtrade_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 pcomtrade_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 leastcomtrade_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 icomtrade_get_top_services_partners
Rank partners of one reporter by trade value for a single annual EBOPS series. Omit service_code for total services, or use comtrade_list_service_categories to find one category. EB serves original reports, while EB10 and EB02 serve convertcomtrade_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. Shcomtrade_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 matchcomtrade_get_data_availability
Check which reporter/period/classification combinations have published data before querying trade. Returns datasets ordered by reporter code, newest period first within each reporter, with classification, record count and release dates whercomtrade_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
What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more
Cite this entry
For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.
io.github.cyanheads/un-comtrade-mcp-server · L’Agora · Tested on
[io.github.cyanheads/un-comtrade-mcp-server — L’Agora](https://lagora.dev/en/entry/io.github.cyanheads/un-comtrade-mcp-server)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.cyanheads/un-comtrade-mcp-server)HTML
<a href="https://lagora.dev/en/entry/io.github.cyanheads/un-comtrade-mcp-server"><img src="https://lagora.dev/badge/io.github.cyanheads/un-comtrade-mcp-server.svg?lang=en" alt="io.github.cyanheads/un-comtrade-mcp-server on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.
By the same author
io.github.cyanheads/clinicaltrialsgov-mcp-server Responds
io.github.cyanheads/openlibrary-mcp-server Responds
io.github.cyanheads/arxiv-mcp-server Responds