Bamwor Mcp Server

io.github.bamwor-dev由 GitHub 帳號 bamwor-dev 發布v0.2.2更新於 Oct 24, 2026

World geographic data for AI agents: 261 countries, 5.2M cities, rankings, and 9 indexes.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為助理提供全球地理資料:國家資料、城市搜尋、排名、比較與鄰近城市查詢。

可以做什麼
依名稱、slug 或 ISO 代碼查詢與搜尋國家,回傳人口、面積、首都與統計資料,並可在 GDP、HDI、預期壽命等指標上並排比較兩個國家。搜尋全球城市,或依最低人口篩選列出某國城市。依 GeoNames ID 取得城市詳情,包括座標、海拔與時區,並找出其半徑內的鄰近城市。依人口、面積、GDP、HDI、預期壽命或九個 Bamwor 專有指數取得國家排名。
適用情境
適合助理在研究、比較、排名或地點背景中需要可靠國家或城市資料時使用,無須自行建立地理資料集。適用於涉及地點的分析與寫作任務,而非即時地圖或路線規劃。
執行需求
透過 npx 或全域 npm 安裝後在本機執行,需要 Node.js。它會經由網路呼叫 Bamwor API;選用的 BAMWOR_API_KEY 可提升存取權限與速率限制,API 基礎位址與請求逾時可透過環境變數覆寫。
安裝前請注意
API 金鑰以明文形式透過環境變數傳入,請勿放入共用設定檔。查詢會傳送到第三方 Bamwor API,所查地點與關鍵字會離開本機。資料為唯讀,但數值來自外部來源與專有指數,重要結果應自行核實。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Bamwor Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

bamwor-mcp-server

MCP Server for world geographic data — 261 countries, 13.4M cities. Connect AI agents to real country and city data.

Works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.

Quick Start

bash
npx bamwor-mcp-server

Or install globally:

bash
npm install -g bamwor-mcp-serverbamwor-mcp-server

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "bamwor-world-data": {      "command": "npx",      "args": ["-y", "bamwor-mcp-server"],      "env": {        "BAMWOR_API_KEY": "your_api_key"      }    }  }}

Cursor / Windsurf

Add to your MCP settings:

json
{  "bamwor-world-data": {    "command": "npx",    "args": ["-y", "bamwor-mcp-server"],    "env": {      "BAMWOR_API_KEY": "your_api_key"    }  }}

Environment Variables

VariableRequiredDefaultDescription
BAMWOR_API_KEYNo(anonymous)API key for full access. Get one free at bamwor.com/en/developers/quickstart
BAMWOR_API_URLNohttps://bamwor.com/api/v1API base URL override
BAMWOR_REQUEST_TIMEOUTNo15000Request timeout in ms

Available Tools (8)

get_country

Get detailed data about a country by name, slug, or ISO code. Returns population, area, capital, region, coordinates, and 20+ statistics.

Input: { "query": "Japan" }

search_countries

Search for countries by name or keyword. Returns matching countries with basic data.

Input: { "query": "south", "limit": 10 }

search_cities

Search for cities worldwide by name from a database of 13.4M cities.

Input: { "query": "Tokyo", "limit": 5 }

list_cities_by_country

List cities in a specific country, sorted by population or name. Supports minimum population filter.

Input: { "country": "brazil", "min_population": 1000000, "limit": 10 }

compare_countries

Compare two countries side by side across all available metrics: population, area, GDP, HDI, life expectancy, and more.

Input: { "country_a": "France", "country_b": "Germany" }

get_rankings

Get country rankings by metric. Available metrics: population, area, gdp, hdi, life-expectancy, and 9 Bamwor proprietary indices (ibeu, ibcp, ibda, ibcx, ibee, ibfm, ibdi, ibed, ibsa). Omit metric to list all available.

Input: { "metric": "population", "limit": 10, "countries_only": true }

get_city

Get detailed information about a specific city by its GeoNames ID. Returns coordinates, population, elevation, timezone, and province.

Input: { "city_id": 1850147 }

get_nearby_cities

Find cities near a specific city using PostGIS radius search. Returns nearby cities with distance in km.

Input: { "city_id": 1850147, "radius": 50, "limit": 10 }

Data Coverage

  • 261 countries and territories with 20+ statistics each
  • 13.4 million cities with coordinates, population, elevation, timezone
  • 9 proprietary indices (IBEU, IBCP, IBDA, IBCX, IBEE, IBFM, IBDI, IBED, IBSA)
  • Rankings by any metric
  • Country comparisons — 67,860 combinations
  • 4 languages — English, Spanish, Portuguese, Italian

Data sourced from CIA World Factbook, GeoNames, UNDP, and World Bank.

Links

License

MIT

來源:README.md,提交 8ce0b15

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分