get_country
Pack: worldbank · Endpoint: https://gateway.pipeworx.io/worldbank/mcp
Get basic information about a country: full name, region, income level, capital city, and coordinates. Use ISO 3166-1 alpha-2 or alpha-3 country codes (e.g., “US”, “GBR”, “IN”).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country_code | string | yes | ISO country code (2 or 3 letters, e.g., “US”, “GBR”, “CN”) |
Example call
Arguments
{
"country_code": "US"
}
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":"get_country","arguments":{"country_code":"US"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_country', {
"country_code": "US"
});
More examples
{
"country_code": "GBR"
}
Response shape
Always returns: id, iso2, name, region, admin_region, income_level, lending_type, capital, longitude, latitude
| Field | Type | Description |
|---|---|---|
id | string | World Bank country ID |
iso2 | string | ISO 3166-1 alpha-2 country code |
name | string | Full country name |
region | string | null | World region name |
admin_region | string | null | Administrative region name |
income_level | string | null | Income level classification |
lending_type | string | null | World Bank lending type |
capital | string | null | Capital city name |
longitude | number | null | Capital city longitude coordinate |
latitude | number | null | Capital city latitude coordinate |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "World Bank country ID"
},
"iso2": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code"
},
"name": {
"type": "string",
"description": "Full country name"
},
"region": {
"type": [
"string",
"null"
],
"description": "World region name"
},
"admin_region": {
"type": [
"string",
"null"
],
"description": "Administrative region name"
},
"income_level": {
"type": [
"string",
"null"
],
"description": "Income level classification"
},
"lending_type": {
"type": [
"string",
"null"
],
"description": "World Bank lending type"
},
"capital": {
"type": [
"string",
"null"
],
"description": "Capital city name"
},
"longitude": {
"type": [
"number",
"null"
],
"description": "Capital city longitude coordinate"
},
"latitude": {
"type": [
"number",
"null"
],
"description": "Capital city latitude coordinate"
}
},
"required": [
"id",
"iso2",
"name",
"region",
"admin_region",
"income_level",
"lending_type",
"capital",
"longitude",
"latitude"
]
}
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.