• RATIOS
  • TRENDS
  • BENCHMARKS
  • HUMAN

How to analyze government social spending with your AI

Connect your AI to World Bank data to compare how different countries fund their essential services.

Ask AI about this page

Short answer

How can I compare health and education spending against GDP?

Your AI pulls World Bank indicators to calculate health and education spending as a percentage of a nation's GDP. You get a direct comparison of how much each country invests in these sectors relative to its economy.

The results you get

Data-driven spending insights

The AI handles the data retrieval and math, leaving you with the core metrics.

RATIOS

Direct GDP percentages

The AI pulls health and education figures and calculates their weight against total GDP. You get clean percentages for any country.

TRENDS

Spending over time

Compare how these ratios change across different years. Your AI identifies if a nation is increasing or decreasing its social investment.

BENCHMARKS

Cross-border comparisons

Run side-by-side comparisons between different nations. This helps you see which countries prioritize these sectors most heavily.

HUMAN

Policy interpretation

The AI provides the numbers, but you decide what the spending gaps mean for local policy or economic development.

The workflow

What your AI does when the request arrives.

The AI acts as a data analyst, pulling raw metrics and performing the necessary math.

  1. Fetch health data

    The AI pulls specific health expenditure figures for the requested country.

    get_health_expenditure
  2. Fetch education data

    The AI retrieves education and health indicators from the World Bank database.

    get_edu_health_indicator
  3. Calculate ratios

    The AI divides the retrieved spending totals by the country's GDP to find the relative percentage.

    get_edu_health_indicator
  4. Format comparison

    The AI organizes the results into a clear list or table for your review.

    get_edu_health_indicator

Try it

Copy these to start.

Use these prompts to trigger the analysis immediately.

Starting points

Swap out the country names and years to get specific results.

World Bank Open Data Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_1oWUduRKXv6YyVeSA5XoN0jyDn4na1iZB9oIyaWS/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — World Bank Open Data capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "world-bank-education-health-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_1oWUduRKXv6YyVeSA5XoN0jyDn4na1iZB9oIyaWS/mcp"
    }
  }
}
Copy into chat04
  • Compare health spending as a percentage of GDP for Brazil and Mexico using the World Bank data.

  • What was the education spending ratio for Kenya in 2020 compared to 2015?

  • List the top five countries with the highest health expenditure relative to their GDP.

  • Calculate the education and health spending ratio for Japan for the last three years.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect World Bank Education & Health once, then ask.

One click connects this MCP to your AI client. Your credentials stay encrypted and the setup is handled on our end.

Connect World Bank Education & Health to your AI

FAQ

How this task behaves

  • 01

    Can the AI change the actual World Bank data?

    No. The AI can only read and analyze the data provided by the tools.

  • 02

    Does the AI perform the GDP math itself?

    Yes. Once it pulls the spending and GDP indicators, your AI performs the division to give you the ratio.

  • 03

    Can I ask for data from years not covered by the tools?

    No. The AI is limited to the data available through the get_health_expenditure and get_edu_health_indicator tools.

  • 04

    Will the AI write a full policy report for me?

    The AI can draft a report based on the numbers it finds, but you must review and finalize the content.

  • 05

    Can the AI pull data for any country in the world?

    It can pull data for any country that has recorded indicators within the World Bank database.

  • More questions about World Bank Education & Health? The Connector page answers them. See everything the World Bank Education & Health Connector can do

Connect World Bank Open Data to Claude, Cursor, ChatGPT & more