Catalog
io.github.cyanheads/un-comtrade-mcp-server
Officialby cyanheads · TypeScript
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
Query UN Comtrade international trade statistics with country and commodity lookups.
Topics
ai-agentsai-toolscommoditiescomtradecyanheadsexportshs-codesimportsinternational-trademcpmcp-servermodel-context-protocoltradetypescriptunited-nationstrade-statistics
README not available yet.
Install
Configuration
Environment variables
COMTRADE_SUBSCRIPTION_KEYAzure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap).
MCP_LOG_LEVELdefault infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTdefault 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
claude_desktop_config.json
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server@0.1.5",
"run",
"start:stdio"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "info"
}
}
}
}