comtrade_country_codes
Pack: comtrade · Endpoint: https://gateway.pipeworx.io/comtrade/mcp
Look up country ISO numeric codes for trade queries (e.g., “840” = US, “156” = China). Returns code and country name pairs.
Example call
Arguments
{}
curl
curl -X POST https://gateway.pipeworx.io/comtrade/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"comtrade_country_codes","arguments":{}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('comtrade_country_codes', {});
Response shape
Always returns: note, countries
| Field | Type | Description |
|---|---|---|
note | string | Usage guidance for numeric codes |
countries | array | List of countries with numeric codes |
Full JSON Schema
{
"type": "object",
"properties": {
"note": {
"type": "string",
"description": "Usage guidance for numeric codes"
},
"countries": {
"type": "array",
"description": "List of countries with numeric codes",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Country label or abbreviation"
},
"numeric_code": {
"type": "number",
"description": "ISO numeric country code"
},
"full_name": {
"type": "string",
"description": "Full country name"
}
}
}
}
},
"required": [
"note",
"countries"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"comtrade": {
"url": "https://gateway.pipeworx.io/comtrade/mcp"
}
}
}
See Getting Started for client-specific install steps.