compare_countries
Pack: worldbank · Endpoint: https://gateway.pipeworx.io/worldbank/mcp
Compare a World Bank indicator across MULTIPLE countries in one call, returned ranked high→low. PREFER for “GDP per capita: US vs China vs Germany”, “rank the G7 by CO2 emissions”, “compare population of
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country_codes | string | yes | 2+ ISO country codes, comma- or semicolon-separated (e.g. “US,CN,DE” or “USA;CHN;DEU”). |
indicator | string | yes | World Bank indicator code (e.g. “NY.GDP.PCAP.CD”, “SP.POP.TOTL”, “EN.GHG.CO2.MT.CE.AR5”). |
year | string | no | Optional 4-digit year (e.g. “2023”). Omit for each country’s most-recent available value. |
Example call
Arguments
{
"country_codes": "US,CN,DE",
"indicator": "NY.GDP.PCAP.CD"
}
curl
curl -X POST https://gateway.pipeworx.io/worldbank/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compare_countries","arguments":{"country_codes":"US,CN,DE","indicator":"NY.GDP.PCAP.CD"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('compare_countries', {
"country_codes": "US,CN,DE",
"indicator": "NY.GDP.PCAP.CD"
});
More examples
{
"country_codes": "GB;FR;JP;CA",
"indicator": "SP.DYN.LE00.IN",
"year": "2022"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"worldbank": {
"url": "https://gateway.pipeworx.io/worldbank/mcp"
}
}
}
See Getting Started for client-specific install steps.