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

NameTypeRequiredDescription
country_codestringyesISO 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

FieldTypeDescription
idstringWorld Bank country ID
iso2stringISO 3166-1 alpha-2 country code
namestringFull country name
regionstring | nullWorld region name
admin_regionstring | nullAdministrative region name
income_levelstring | nullIncome level classification
lending_typestring | nullWorld Bank lending type
capitalstring | nullCapital city name
longitudenumber | nullCapital city longitude coordinate
latitudenumber | nullCapital 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.

Regenerated from source · build May 9, 2026