MCP server exposing 7 tools for worldbank.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/worldbank/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
worldbank_get_country — 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").worldbank_get_indicator — Get World Bank time-series data — economic, social, and development statistics — for ANY country worldwide (Spain, Brazil, Germany, Nigeria, Japan, etc.). PREFER for "unemployment rate in <country>", "<country> inflation rate", "GDP of <country>", "<country> population / life expectancy / poverty rate / CO2 emissions", "what share of GDP comes from agriculture in <country>" / "agriculture's share of GDP". Pass the ISO country code + a World Bank indicator code; common ones: GDP=NY.GDP.MKTP.CD, GDP per capita=NY.GDP.PCAP.CD, inflation=FP.CPI.TOTL.ZG, unemployment=SL.UEM.TOTL.ZS, population=SP.POP.TOTL, life expectancy=SP.DYN.LE00.IN, poverty rate=SI.POV.DDAY, literacy=SE.ADT.LITR.ZS, agriculture value added (% of GDP)=NV.AGR.TOTL.ZS. For CO2 use the dedicated country_co2_emissions tool (the old EN.ATM.CO2E.* codes were DELETED by the World Bank; the live series is EN.GHG.CO2.MT.CE.AR5). For governance/corruption/rule-of-law/political-stability use the dedicated get_governance_indicators tool (Worldwide Governance Indicators, codes like GOV_WGI_CC.EST). Several countries over time in one call ("cereal yield in Brazil, Argentina and the US over the past decade", "inflation in Spain vs Italy since 2015"): pass up to 8 codes separated by ";" — each country comes back as its own series. Agriculture: cereal yield (kg per hectare)=AG.YLD.CREL.KG. (Annual data — a national statistics office may have fresher monthly figures.)get_population — Fetch annual total population (SP.POP.TOTL) for a country from the World Bank, defaulting to 2015–2024. Returns a year-by-year array of values. Shortcut for get_indicator.get_gdp — Fetch annual GDP in current USD (NY.GDP.MKTP.CD) for a country from the World Bank, defaulting to 2015–2024. Returns a year-by-year array of values. Shortcut for get_indicator.compare_countries — Compare a World Bank indicator across MULTIPLE countries in one call, returned ranked high→low. PREFER for "GDP per capita: US vs China vs Germany", "rank the G7 by CO2 emissions", "compare population of <countries>", "rank <countries> by rule of law / corruption / government effectiveness". Pass 2+ ISO country codes. Defaults to each country's most-recent available value; pass a year for a specific year. Common indicators: NY.GDP.MKTP.CD (GDP), NY.GDP.PCAP.CD (GDP per capita), SP.POP.TOTL (population), EN.GHG.CO2.MT.CE.AR5 (CO2, Mt), FP.CPI.TOTL.ZG (inflation %), GOV_WGI_CC.EST / GOV_WGI_RL.EST / GOV_WGI_GE.EST / GOV_WGI_RQ.EST / GOV_WGI_PV.EST / GOV_WGI_VA.EST (Worldwide Governance Indicators — corruption, rule of law, government effectiveness, regulatory quality, political stability, voice & accountability). For CO2 rankings prefer country_co2_emissions; for a single country's full governance profile prefer get_governance_indicators.country_co2_emissions — National CO2 emissions for ANY country worldwide, annual, from the World Bank (AR5 basis, excluding LULUCF). PREFER for "CO2 emissions of <country>", "how much CO2 does <country> emit", "carbon emissions by country", "rank countries by CO2", "<country> emissions per capita", "CO2 emissions trend for <country>". Pass one country for a year-by-year series, or several to rank them high→low. Set per_capita for tonnes per person. NOTE: other emissions tools in this catalog are US-only (EPA facility/sector data) or electricity grid-intensity — this is the one for country-level national totals.get_governance_indicators — World Bank, Worldwide Governance Indicators (WGI) — six governance-quality dimensions for ANY country: Voice and Accountability, Political Stability and Absence of Violence/Terrorism, Government Effectiveness, Regulatory Quality, Rule of Law, and Control of Corruption. PREFER for "how corrupt is <country>", "rule of law in <country>", "political stability of <country>", "government effectiveness <country>", "governance quality <country>", or as country-risk context alongside news-event data. Pass one ISO country code; returns the latest year available plus the prior year for trend, for all six dimensions, each as a governance estimate (-2.5 weakest to +2.5 strongest) and a percentile-style score (0-100, higher = stronger governance relative to other countries that year).Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/worldbank/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io