Worldbank Mcp

io.github.tianyuio由 GitHub 账号 tianyuio 发布v1.0.1更新于 Oct 24, 2026

World Bank Open Data MCP Server

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,查询世界银行开放数据,让助手获取国家信息及经济、社会、教育和健康指标。

可以做什么
按地区或收入水平列出并筛选世界银行国家,并获取指定国家代码的详细信息。按关键词搜索可用指标。获取 GDP、通胀、失业率等多年经济数据。获取人口、识字率、入学率、预期寿命、免疫接种等社会、教育和健康数据。所有数据均来自世界银行开放数据 API 的实时调用。
适用场景
适合需要助手在对话中直接获取某国官方发展统计数据,或跨国比较指标的场景,例如研究、报告撰写和背景资料查询。
运行要求
以 Node.js 本地进程运行,可通过 npm 全局安装或用 npx 直接运行。需要能访问世界银行开放数据 API 的网络。清单声明需要一个名为 YOUR_API_KEY 的必需密钥环境变量,但 README 的配置示例中并未出现该密钥。
安装前请注意
清单要求名为 YOUR_API_KEY 的环境变量,但 README 未说明其用途和获取方式,提供任何凭据前请先确认。查询会发送至世界银行公共 API。该服务器为只读,不会修改数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Worldbank Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

World Bank MCP 🌐

[npm version] [License: MIT] [GitHub issues]

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

bash
npm install -g worldbank-mcp

Run instantly with npx

bash
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:

json
{  "mcpServers": {    "worldbank-mcp": {      "name": "World Bank Data",      "command": "worldbank-mcp",      "description": "World Bank Open Data MCP Server"    }  }}

Run instantly with npx:

json
{  "mcpServers": {    "worldbank-mcp": {      "name": "World Bank Data",      "command": "npx",      "args": ["worldbank-mcp"],      "description": "World Bank Open Data MCP Server"    }  }}

Run directly with node:

json
{  "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

json
{  "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

json
{  "name": "get-country-info",   "description": "Get detailed information for a specific country",  "parameters": {    "countryCode": "Country code (e.g.: CN, US)"  }}

3. Search Indicators

json
{  "name": "search-indicators",  "description": "Search for available indicators",  "parameters": {    "keyword": "Search keyword"  }}

4. Get Economic Data

json
{  "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

json
{  "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

json
{  "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

json
{  "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 CodeDescriptionUnit
GDPGross Domestic ProductCurrent US$
GDP_GROWTHGDP growth rateAnnual %
GDP_PER_CAPITAGDP per capitaCurrent US$
GNIGross National IncomeCurrent US$
GNI_PER_CAPITAGNI per capitaCurrent US$
EXPORTS_GDPExports of goods and services% of GDP
FDI_NETForeign direct investment, net inflowsCurrent US$
INFLATIONInflation rateAnnual %
UNEMPLOYMENTUnemployment rate% of total labor force

Social Indicators

Indicator CodeDescriptionUnit
POPULATIONPopulation, totalPeople
LIFE_EXPECTANCYLife expectancy at birthYears
BIRTH_RATEBirth rateper 1,000 people
DEATH_RATEDeath rateper 1,000 people
INTERNET_USERSInternet users% of population

Education Indicators

Indicator CodeDescriptionUnit
LITERACY_RATELiteracy rate% of people ages 15 and above
SCHOOL_ENROLLMENTSchool enrollment, primary% gross
SCHOOL_COMPLETIONPrimary completion rate% of relevant age group
TEACHERS_PRIMARYTeachers in primary educationCount
EDUCATION_EXPENDITUREGovernment expenditure on education% of GDP

Health and Nutrition Indicators

Indicator CodeDescriptionUnit
HEALTH_EXPENDITURECurrent health expenditure% of GDP
PHYSICIANSPhysiciansper 1,000 people
HOSPITAL_BEDSHospital bedsper 1,000 people
IMMUNIZATIONImmunization, measles% of children ages 12-23 months
HIV_PREVALENCEPrevalence of HIV% of population ages 15-49
MALNUTRITIONPrevalence of undernourishment% of population
TUBERCULOSISIncidence of tuberculosisper 100,000 people

Common Country Codes

CountryCodeCountryCode
ChinaCNUnited StatesUS
JapanJPGermanyDE
United KingdomGBFranceFR
IndiaINBrazilBR
RussiaRUAustraliaAU

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.

来源:README.md,提交 254cc78

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分