worldbank-mcp
Provides query capabilities for global economic and social development data from the World Bank Open Data API.
README
World Bank MCP š
World Bank Model Context Protocol service based on World Bank Open Data API, which provides query capabilities for global economic and social development data.
š Features
- ā Country information query
- ā Indicator search (education, health, environment, etc.)
- ā Economic data query (GDP, inflation, unemployment, etc.)
- ā Social development data query (population, life expectancy, internet usage, etc.)
- ā Education data query (literacy rate, school enrollment, etc.)
- ā Health and nutrition data query (hospitals, immunization, HIV prevalence, malnutrition, etc.)
- ā Real-time World Bank API integration
- ā Model Context Protocol compatibility
š¦ Installation
Install globally with npm
npm install -g worldbank-mcp
Run instantly with npx
npx worldbank-mcp
š» Usage in MCP Clients
To use this service in MCP-compatible clients (such as Claude Desktop, Cursor, Cherry Studio, etc.), you need to configure it as follows:
Configuration example:
Run with npm if you have installed it globally:
{
"mcpServers": {
"worldbank-mcp": {
"name": "World Bank Data",
"command": "worldbank-mcp",
"description": "World Bank Open Data MCP Server"
}
}
}
Run instantly with npx:
{
"mcpServers": {
"worldbank-mcp": {
"name": "World Bank Data",
"command": "npx",
"args": ["worldbank-mcp"],
"description": "World Bank Open Data MCP Server"
}
}
}
Run directly with node:
{
"mcpServers": {
"worldbank-mcp": {
"name": "World Bank Data",
"command": "node",
"args": ["path/to/worldbank-mcp/build/index.js"],
"description": "World Bank Open Data MCP Server"
}
}
}
Replace path/to/ with the actual path to your project directory.
š§ MCP Tools
1. Get Countries List
{
"name": "get-countries",
"description": "Get all countries supported by World Bank",
"parameters": {
"region": "Filter by region (optional)",
"incomeLevel": "Filter by income level (optional)"
}
}
2. Get Country Information
{
"name": "get-country-info",
"description": "Get detailed information for a specific country",
"parameters": {
"countryCode": "Country code (e.g.: CN, US)"
}
}
3. Search Indicators
{
"name": "search-indicators",
"description": "Search for available indicators",
"parameters": {
"keyword": "Search keyword"
}
}
4. Get Economic Data
{
"name": "get-economic-data",
"description": "Get economic data for a country",
"parameters": {
"countryCode": "Country code",
"indicator": "Economic indicator (GDP, GDP_GROWTH, GDP_PER_CAPITA, GNI, GNI_PER_CAPITA, EXPORTS_GDP, FDI_NET, INFLATION, UNEMPLOYMENT)",
"years": "Number of years to query (optional, default 10 years)"
}
}
5. Get Social Development Data
{
"name": "get-social-data",
"description": "Get social development data for a country",
"parameters": {
"countryCode": "Country code",
"indicator": "Social indicator (POPULATION, LIFE_EXPECTANCY, BIRTH_RATE, DEATH_RATE, INTERNET_USERS)",
"years": "Number of years to query (optional, default 10 years)"
}
}
6. Get Education Data
{
"name": "get-education-data",
"description": "Get education data for a country",
"parameters": {
"countryCode": "Country code",
"indicator": "Education indicator (LITERACY_RATE, SCHOOL_ENROLLMENT, SCHOOL_COMPLETION, TEACHERS_PRIMARY, EDUCATION_EXPENDITURE)",
"years": "Number of years to query (optional, default 10 years)"
}
}
7. Get Health and Nutrition Data
{
"name": "get-health-data",
"description": "Get health and nutrition data for a country",
"parameters": {
"countryCode": "Country code",
"indicator": "Health indicator (HEALTH_EXPENDITURE, PHYSICIANS, HOSPITAL_BEDS, IMMUNIZATION, HIV_PREVALENCE, MALNUTRITION, TUBERCULOSIS)",
"years": "Number of years to query (optional, default 10 years)"
}
}
š Supported Indicators
Economic Indicators
| Indicator Code | Description | Unit |
|---|---|---|
| GDP | Gross Domestic Product | Current US$ |
| GDP_GROWTH | GDP growth rate | Annual % |
| GDP_PER_CAPITA | GDP per capita | Current US$ |
| GNI | Gross National Income | Current US$ |
| GNI_PER_CAPITA | GNI per capita | Current US$ |
| EXPORTS_GDP | Exports of goods and services | % of GDP |
| FDI_NET | Foreign direct investment, net inflows | Current US$ |
| INFLATION | Inflation rate | Annual % |
| UNEMPLOYMENT | Unemployment rate | % of total labor force |
Social Indicators
| Indicator Code | Description | Unit |
|---|---|---|
| POPULATION | Population, total | People |
| LIFE_EXPECTANCY | Life expectancy at birth | Years |
| BIRTH_RATE | Birth rate | per 1,000 people |
| DEATH_RATE | Death rate | per 1,000 people |
| INTERNET_USERS | Internet users | % of population |
Education Indicators
| Indicator Code | Description | Unit |
|---|---|---|
| LITERACY_RATE | Literacy rate | % of people ages 15 and above |
| SCHOOL_ENROLLMENT | School enrollment, primary | % gross |
| SCHOOL_COMPLETION | Primary completion rate | % of relevant age group |
| TEACHERS_PRIMARY | Teachers in primary education | Count |
| EDUCATION_EXPENDITURE | Government expenditure on education | % of GDP |
Health and Nutrition Indicators
| Indicator Code | Description | Unit |
|---|---|---|
| HEALTH_EXPENDITURE | Current health expenditure | % of GDP |
| PHYSICIANS | Physicians | per 1,000 people |
| HOSPITAL_BEDS | Hospital beds | per 1,000 people |
| IMMUNIZATION | Immunization, measles | % of children ages 12-23 months |
| HIV_PREVALENCE | Prevalence of HIV | % of population ages 15-49 |
| MALNUTRITION | Prevalence of undernourishment | % of population |
| TUBERCULOSIS | Incidence of tuberculosis | per 100,000 people |
Common Country Codes
| Country | Code | Country | Code |
|---|---|---|---|
| China | CN | United States | US |
| Japan | JP | Germany | DE |
| United Kingdom | GB | France | FR |
| India | IN | Brazil | BR |
| Russia | RU | Australia | AU |
Project Structure
worldbank-mcp/
āāā src/
ā āāā index.ts # Main entry file
ā āāā types.ts # Type definitions
āāā build/ # Compiled output
āāā package.json # Project configuration
āāā tsconfig.json # TypeScript configuration
āāā README.md # Documentation
Technology Stack
- TypeScript - Type-safe development language
- Model Context Protocol SDK - MCP protocol implementation
- Axios - HTTP client
- Zod - Data validation
- Commander - Command-line tool
API Endpoints
Project uses World Bank Open Data API:
- Base URL:
https://api.worldbank.org/v2 - Country data:
/countries - Indicator data:
/indicators - Country indicator data:
/country/{code}/indicator/{id}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.