
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.
概览
一个本地 MCP 服务器,为助手提供全球地理数据:国家资料、城市搜索、排名、对比和周边城市查询。
- 可以做什么
- 按名称、slug 或 ISO 代码查询和搜索国家,返回人口、面积、首都和统计数据,并可在 GDP、HDI、预期寿命等指标上并排比较两个国家。搜索全球城市,或按最低人口筛选列出某国城市。按 GeoNames ID 获取城市详情,包括坐标、海拔和时区,并查找其半径内的附近城市。按人口、面积、GDP、HDI、预期寿命或九个 Bamwor 专有指数获取国家排名。
- 适用场景
- 适合助手在研究、对比、排名或地点背景中需要可靠的国家或城市数据时使用,无需自建地理数据集。适用于涉及地点的分析和写作任务,而非实时地图或路线规划。
- 运行要求
- 通过 npx 或全局 npm 安装后在本地运行,需要 Node.js。它会通过网络调用 Bamwor API;可选的 BAMWOR_API_KEY 可提升访问权限和速率限制,API 基础地址和请求超时可通过环境变量覆盖。
安装
在 SourceWeft 中
- 打开 控制台中的 Bamwor Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Or install globally:
Configuration
Claude Desktop
Add to your claude_desktop_config.json:
Cursor / Windsurf
Add to your MCP settings:
Environment Variables
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.
search_countries
Search for countries by name or keyword. Returns matching countries with basic data.
search_cities
Search for cities worldwide by name from a database of 13.4M cities.
list_cities_by_country
List cities in a specific country, sorted by population or name. Supports minimum population filter.
compare_countries
Compare two countries side by side across all available metrics: population, area, GDP, HDI, life expectancy, and more.
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.
get_city
Get detailed information about a specific city by its GeoNames ID. Returns coordinates, population, elevation, timezone, and province.
get_nearby_cities
Find cities near a specific city using PostGIS radius search. Returns nearby cities with distance in km.
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版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分