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 分