GnistAI GnistAI
Log in

World Bank

World Bank development indicators — poverty, health, education, and economic data by country.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Economics

Data source: World Bank Open Data

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/worldbank/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-worldbank": {
      "url": "https://context.gnist.ai/mcp/worldbank/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/worldbank/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_indicator", "arguments": {"country_code": "example", "indicator_code": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/worldbank/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/worldbank/get_indicator?country_code=example&indicator_code=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/worldbank/get_indicator",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "country_code": "example",
        "indicator_code": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc worldbank

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_indicator
Fetch a time series for a World Bank indicator.
ParameterTypeRequiredDescription
country_codestringrequiredISO 3166-1 alpha-2 or alpha-3 country code (e.g. "US", "USA", "NO"). Use "WLD" for global aggregates or "all" for every country.
indicator_codestringrequiredWorld Bank indicator ID (e.g. "NY.GDP.MKTP.CD" for GDP, "SP.POP.TOTL" for population). Use search_indicators to find codes.
year_fromanyoptionalStart year (inclusive). If omitted, uses mrv instead.
year_toanyoptionalEnd year (inclusive). If omitted, uses year_from as single year.
mrvintegeroptionalMost recent values to return (1–50, default 10). Used when year_from/year_to are not set. (default: 10)
search_indicators
Search the World Bank indicator catalog by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch term (e.g. "gdp", "literacy rate", "co2 emissions").
per_pageintegeroptionalNumber of results to return (1–50, default 20). (default: 20)
country_profile
Get a snapshot of key development indicators for a country.
ParameterTypeRequiredDescription
country_codestringrequiredISO 3166-1 alpha-2 or alpha-3 country code (e.g. "NO", "USA", "DE").
yearanyoptionalSpecific year to retrieve. Defaults to most recent available data.
compare_countries
Compare one indicator across multiple countries for a given year.
ParameterTypeRequiredDescription
indicator_codestringrequiredWorld Bank indicator ID (e.g. "NY.GDP.MKTP.CD"). Use search_indicators to find the right code.
country_codeslist[string]requiredList of ISO 3166-1 alpha-2 or alpha-3 codes (e.g. ["US", "DE", "JP"]). Maximum 20 countries per request.
yearintegerrequiredThe year to compare (e.g. 2022).
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related