World Bank Intelligence MCP — 17K Development Indicators avatar

World Bank Intelligence MCP — 17K Development Indicators

Pricing

$3.00 / 1,000 result item returneds

Go to Apify Store
World Bank Intelligence MCP — 17K Development Indicators

World Bank Intelligence MCP — 17K Development Indicators

Access the World Bank Open Data API through a fully MCP-compatible server. Query GDP, inflation, unemployment, poverty, education, and 25+ curated development indicators for 217 countries. Works directly with Claude Desktop, Cursor, GPT-4 plugins, and any MCP client. No API ke...

Pricing

$3.00 / 1,000 result item returneds

Rating

0.0

(0)

Developer

Andrew Avina

Andrew Avina

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

20 days ago

Last modified

Share

World Bank Intelligence MCP — 17,000+ Development Indicators, 217 Countries

Access the World Bank Open Data API through a fully MCP-compatible server. Query GDP, inflation, unemployment, poverty, education, and 25+ curated development indicators for 217 countries. Works directly with Claude Desktop, Cursor, GPT-4 plugins, and any MCP client. No API key required.


What This Actor Does

The World Bank Open Data platform hosts over 17,000 development indicators spanning 217 countries from 1960 to the present. This Apify actor wraps the public World Bank API in a production-grade MCP server, making it trivially easy for AI assistants to access macroeconomic intelligence.

In batch mode, you specify an indicator, a list of countries, and a year range. The actor fetches the data, normalises it into clean records, and pushes results to the Apify dataset.

In MCP server mode, the actor starts a lightweight HTTP server on port 4321. Your AI assistant can call any of the 5 MCP tools in real time. The server runs until you stop the actor (up to 24 hours per run).


Curated Indicator Library (27 Indicators)

Rather than memorising obscure World Bank indicator IDs, use the human-readable keys below. The actor also accepts raw WB indicator IDs directly (e.g. NY.GDP.MKTP.CD).

Economic Indicators

KeyWorld Bank IDDescription
gdpNY.GDP.MKTP.CDGDP (current US$)
gdp_growthNY.GDP.MKTP.KD.ZGGDP growth rate (% annual)
gdp_per_capitaNY.GDP.PCAP.CDGDP per capita (current US$)
inflationFP.CPI.TOTL.ZGInflation, CPI (% annual)
unemploymentSL.UEM.TOTL.ZSUnemployment rate (% of labor force)
fdiBX.KLT.DINV.CD.WDForeign direct investment, net inflows
exportsNE.EXP.GNFS.CDExports of goods and services (current US$)
importsNE.IMP.GNFS.CDImports of goods and services (current US$)
trade_percent_gdpNE.TRD.GNFS.ZSTrade as % of GDP
current_accountBN.CAB.XOKA.CDCurrent account balance (BoP, current US$)
debt_gdpGC.DOD.TOTL.GD.ZSCentral government debt (% of GDP)
reservesFI.RES.TOTL.CDTotal reserves including gold (current US$)

Social Indicators

KeyWorld Bank IDDescription
populationSP.POP.TOTLTotal population
pop_growthSP.POP.GROWPopulation growth rate (% annual)
life_expectancySP.DYN.LE00.INLife expectancy at birth (years)
infant_mortalitySP.DYN.IMRT.INInfant mortality rate (per 1,000 live births)
literacy_rateSE.ADT.LITR.ZSAdult literacy rate (% ages 15+)
school_enrollmentSE.PRM.ENRRPrimary school enrollment, gross (%)
poverty_rateSI.POV.NAHCPoverty headcount at national poverty lines (%)
giniSI.POV.GINIGini index (income inequality)
internet_usersIT.NET.USER.ZSInternet users (% of population)
mobile_subscriptionsIT.CEL.SETS.P2Mobile cellular subscriptions (per 100 people)

Environmental Indicators

KeyWorld Bank IDDescription
co2_emissionsEN.ATM.CO2E.KTCO2 emissions (kilotonnes)
renewable_energyEG.FEC.RNEW.ZSRenewable energy consumption (% of total)
electricity_accessEG.ELC.ACCS.ZSAccess to electricity (% of population)
forest_areaAG.LND.FRST.ZSForest area (% of land area)
agri_landAG.LND.AGRI.ZSAgricultural land (% of land area)

MCP Tools

get_indicator

Get time-series data for a specific indicator across one or more countries.

{
"name": "get_indicator",
"arguments": {
"indicator": "gdp_growth",
"countries": ["US", "CN", "IN", "BR"],
"years": 10
}
}

Returns an array of records with fields: country, country_code, indicator, indicator_id, year, value, unit, source.

compare_countries

Side-by-side comparison of multiple countries on a single indicator.

{
"name": "compare_countries",
"arguments": {
"countries": ["US", "DE", "JP", "KR"],
"indicator": "debt_gdp",
"years": 5
}
}

search_indicators

Discover World Bank indicators by keyword. Returns indicator ID, name, topics, and whether it has a curated key.

{
"name": "search_indicators",
"arguments": {
"query": "renewable energy",
"limit": 15
}
}

get_country_profile

Snapshot of key stats for a country — GDP, per capita income, inflation, unemployment, population, life expectancy, poverty, internet access, and CO2 emissions (most recent year).

{
"name": "get_country_profile",
"arguments": {
"country_code": "IN",
"indicators": ["gdp", "gdp_per_capita", "inflation", "population", "life_expectancy"]
}
}

list_indicators

List all 27 curated indicators with keys, World Bank IDs, names, and categories.

{
"name": "list_indicators",
"arguments": {}
}

Input Parameters

ParameterTypeDefaultDescription
indicatorstringgdpCurated key or raw WB indicator ID
countriesarray["US","CN","DE"]ISO-2 country codes
yearsinteger10Most-recent years to retrieve (max 60)
serveMcpbooleanfalseStart MCP server on port 4321

Output Record Schema

{
"country": "United States",
"country_code": "USA",
"indicator": "GDP growth (%)",
"indicator_id": "NY.GDP.MKTP.KD.ZG",
"year": "2023",
"value": 2.5,
"unit": "",
"source": "worldbank.org"
}

Example Use Cases

Q: How fast is India's economy growing compared to China?

Tool: get_indicator
indicator: gdp_growth, countries: [IN, CN], years: 10

Q: Which G20 country has the highest debt-to-GDP ratio?

Tool: compare_countries
indicator: debt_gdp, countries: [US, JP, DE, FR, IT, GB, CN, IN, BR, CA], years: 1

Q: What is Kenya's current economic and social profile?

Tool: get_country_profile
country_code: KE

Q: Find indicators related to climate change.

Tool: search_indicators
query: climate change

Country Code Reference

Use ISO 3166-1 alpha-2 codes. Common examples:

CodeCountryCodeCountry
USUnited StatesCNChina
DEGermanyINIndia
GBUnited KingdomBRBrazil
JPJapanZASouth Africa
FRFranceMXMexico
AUAustraliaKRSouth Korea
CACanadaSGSingapore
NGNigeriaEGEgypt
IDIndonesiaPKPakistan
TRTurkeySASaudi Arabia

Use "all" to retrieve data for all 217 countries. Note that results may contain many records and take longer to process.


API Details

  • Data source: World Bank Open Data — https://api.worldbank.org/v2/
  • Auth: None required
  • Rate limits: None officially documented; actor respects the API with per-request async calls
  • Coverage: 217 countries, 17,000+ indicators, annual data back to 1960 in many series
  • Update frequency: Monthly by World Bank

MCP Server Mode

Set serveMcp: true to start the MCP server. Configure your MCP client:

{
"mcpServers": {
"worldbank": {
"url": "http://<apify-run-hostname>:4321"
}
}
}

The server stays alive for up to 24 hours per run. Use the Apify API to start/stop on demand.

Endpoints:

  • GET /mcp/tools — returns all 5 tool schemas
  • POST /mcp/call — invoke a tool with {"name": "...", "arguments": {...}}
  • GET /health — liveness check

Error Handling

All tool functions catch exceptions and return a structured error record rather than crashing:

[{"_meta": {"error": "...", "fallback_tried": true}}]

Invalid country codes return empty data (World Bank returns no records for unknown codes). Invalid indicator keys that are not in the curated library are passed through to the WB API as raw IDs.


License

World Bank data is available under the Creative Commons Attribution 4.0 International license (CC BY 4.0). Actor code is MIT-licensed.