UN Comtrade MCP Server
by cyanheadsio.github.cyanheads/un-comtrade-mcp-serverv0.1.8
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install UN Comtrade MCP server
Install in Claude Code
claude mcp add un-comtrade -- npx -y @cyanheads/un-comtrade-mcp-serverInstall in Cursor
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"un-comtrade": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"un-comtrade": {
"command": "npx",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| COMTRADE_SUBSCRIPTION_KEY | — | — | Azure API Management key from comtradedeveloper.un.org. Optional — without it, tools fall back to the public preview endpoint (500-record cap). |
| MCP_LOG_LEVEL | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| MCP_TRANSPORT_TYPE | — | — | Selects the HTTP transport. |
| MCP_HTTP_HOST | — | — | The hostname for the HTTP server. |
| MCP_HTTP_PORT | — | — | The port to run the HTTP server on. |
| MCP_HTTP_ENDPOINT_PATH | — | — | The endpoint path for the MCP server. |
| MCP_AUTH_MODE | — | — | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
Freshness
Active — last maintenance signal 2d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-07 · 3d ago · GitHub
Latest release
2026-10-07 · 2d ago · GitHub · v0.1.8
Package published
no data · npm/PyPI
Registry entry updated
2026-10-07 · 2d ago · official registry · v0.1.8
FAQ
›How do I install the UN Comtrade MCP server in Claude Code?
Run: claude mcp add un-comtrade -- npx -y @cyanheads/un-comtrade-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does UN Comtrade require an API key?
No required environment variables are declared in its published metadata.
›Can I use UN Comtrade as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is UN Comtrade in the official MCP registry?
Yes, as io.github.cyanheads/un-comtrade-mcp-server.