Use the World Bank CLI from KosmoKrator to call World Bank tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
World Bank can be configured headlessly with `kosmokrator integrations:configure worldbank`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure worldbank --enable --read allow --write ask --jsonkosmokrator integrations:doctor worldbank --jsonkosmokrator integrations:status --json
Credentials
Authentication type: No credentialsnone. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
No credentials are required.
Call World Bank Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to World Bank.
worldbank.worldbank_countries
Read read
List or search countries from the World Bank. Optional query filters by name. Filter by region (EAS, ECS, LCN, MEA, NAC, SAS, SSF) or income level (HIC, UMC, LMC, LIC).
Search economic indicators by keyword. If no query is provided, returns common indicators. Use the indicator code with `worldbank_get_data` to fetch data.
Common indicator codes:
{$indicators}
Fetch economic indicator data for one or more countries from the World Bank. Supports date ranges and most-recent-value mode. Use `worldbank_indicators` to find indicator codes and `worldbank_countries` to find ISO codes.
Compare a single economic indicator across multiple countries. Returns the most recent value for each country side-by-side. Use `worldbank_indicators` to find indicator codes.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
worldbank.worldbank_countries
List or search countries from the World Bank. Optional query filters by name. Filter by region (EAS, ECS, LCN, MEA, NAC, SAS, SSF) or income level (HIC, UMC, LMC, LIC).
Search query — country name or ISO code to filter results.
region
string
no
Filter by region code: EAS (East Asia), ECS (Europe & Central Asia), LCN (Latin America), MEA (Middle East), NAC (North America), SAS (South Asia), SSF (Sub-Saharan Africa).
income_level
string
no
Filter by income level: HIC (High), UMC (Upper Middle), LMC (Lower Middle), LIC (Low).
worldbank.worldbank_indicators
Search economic indicators by keyword. If no query is provided, returns common indicators. Use the indicator code with `worldbank_get_data` to fetch data.
Common indicator codes:
{$indicators}
Fetch economic indicator data for one or more countries from the World Bank. Supports date ranges and most-recent-value mode. Use `worldbank_indicators` to find indicator codes and `worldbank_countries` to find ISO codes.
World Bank indicator code (e.g. "NY.GDP.MKTP.CD", "SP.POP.TOTL"). Use worldbank_indicators to find codes.
countries
string
no
Semicolon-separated ISO country codes (e.g. "US;CN;DE"). Use "all" for global data (default).
date_range
string
no
Date range filter (e.g. "2020:2023", "2023", "2000:2023"). Omit to use mrnev (most recent value).
mrnev
string
no
Number of most recent non-empty values to return per country (default: "1" when no dateRange).
per_page
string
no
Number of results per page (default: "100", max: 500).
worldbank.worldbank_compare_data
Compare a single economic indicator across multiple countries. Returns the most recent value for each country side-by-side. Use `worldbank_indicators` to find indicator codes.
World Bank indicator code (e.g. "NY.GDP.MKTP.CD", "SP.POP.TOTL"). Use worldbank_indicators to find codes.
countries
string
yes
Semicolon-separated ISO country codes (e.g. "US;CN;DE;JP").
date_range
string
no
Date range filter (e.g. "2020:2023"). Omit to get most recent value per country.
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.