bamwor-mcp-server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| BAMWOR_API_KEY | No | (anonymous) | API key for full access. Get one free at bamwor.com/en/developers/quickstart |
| BAMWOR_API_URL | No | https://bamwor.com/api/v1 | API base URL override |
| BAMWOR_REQUEST_TIMEOUT | No | 15000 | Request 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.
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)