un-comtrade-mcp-server
An MCP server that provides access to UN Comtrade international merchandise and services trade statistics. It supports country lookups, HS commodity searches, bilateral trade flow retrieval, trade balance computations, partner and commodity rankings, and data availability checks via STDIO or Streamable HTTP.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Resolve country and area names to Comtrade M49 numeric codes
- Find HS commodity codes by keyword, description, or code prefix
- Fetch bilateral trade flow records including value, quantity, and weight
- Compute a country's trade balance across one or more periods
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@cyanheads/un-comtrade-mcp-server 0.2.0
{
"version": "0.2.0",
"transport": "stdio",
"identifier": "@cyanheads/un-comtrade-mcp-server",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "COMTRADE_SUBSCRIPTION_KEY",
"format": "string",
"description": "Azure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap)."
},
{
"name": "MCP_LOG_LEVEL",
"format": "string",
"default": "info",
"description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn')."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server@0.2.0"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Cline
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server@0.2.0"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}VS Code
{
"servers": {
"un-comtrade-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server@0.2.0"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server@0.2.0"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Let your agent find its tools
Find servers like un-comtrade-mcp-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.