io.github.cyanheads/un-comtrade-mcp-server MCP Server
io.github.cyanheads/un-comtrade-mcp-server
What this kind of tool is for
- Query, inspect, or seed a database without writing a one-off script.
- Let your agent look up schema details before it writes migration code.
- Move a small dataset between tools without leaving the terminal.
How to compare servers like this
- Engine match:
- Confirm it speaks your exact database and version, not just the family.
- Access scope:
- Read-only connections are the safe default — start there before granting writes.
- Safety rails:
- Check whether destructive statements need an explicit confirmation before they run.
- Maintenance signal:
- Database drivers change; a recently updated tool is less likely to break mid-query.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the io.github.cyanheads/un-comtrade-mcp-server MCP server?
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
How to install io.github.cyanheads/un-comtrade-mcp-server
Copy-paste configuration for popular MCP clients.
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_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTThe hostname for the HTTP server.
MCP_HTTP_PORTThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
{
"mcpServers": {
"un-comtrade-mcp-server": {
"command": "node",
"args": [
"-y",
"@cyanheads/un-comtrade-mcp-server",
"run",
"start:stdio"
],
"env": {
"COMTRADE_SUBSCRIPTION_KEY": "<YOUR_COMTRADE_SUBSCRIPTION_KEY>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
"MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
"MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
"MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
"MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
}
}
}
}Related MCP servers
Query UNHCR refugee, IDP, and stateless populations, asylum decisions, returns, and resettlement.
Protein research over UniProtKB — search by function, fetch curated records, map IDs, proteomes.
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Search foods, compare nutrients, and look up the full USDA FoodData Central database.
Query real-time and historical USGS water data from ~8,000 stream gages and groundwater wells.
Wake LAN machines with Wake-on-LAN magic packets from host profiles, then confirm they came up.
