bamwor-mcp-server
MCP server providing structured geographic data for AI agents. Access 261 countries and millions of cities via Bamwor API.
README
bamwor-mcp-server
World Geographic Data for AI Agents — MCP server providing structured access to 261 countries and 13.4M cities worldwide.
Built on the Model Context Protocol (MCP) for seamless integration with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.
Why Bamwor?
| Source | Cities | Countries | Multilingual | API |
|---|---|---|---|---|
| REST Countries | 0 | 250 | Yes | Free |
| CountryStateCity | 151K | 250 | No | No |
| API Ninjas | 5M | — | No | Paid |
| Bamwor | 13.4M | 261 | 4 languages | Free + Paid |
Quick Start
1. Get a free API key
Register at bamwor.com/developers/quickstart — takes 30 seconds.
2. Configure your MCP client
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bamwor-world-data": {
"command": "npx",
"args": ["-y", "bamwor-mcp-server"],
"env": {
"BAMWOR_API_KEY": "bw_live_your_key_here"
}
}
}
}
Cursor / Windsurf
Add to your MCP settings:
{
"bamwor-world-data": {
"command": "npx",
"args": ["-y", "bamwor-mcp-server"],
"env": {
"BAMWOR_API_KEY": "bw_live_your_key_here"
}
}
}
3. Start using it
Ask your AI assistant things like:
- "What is the population of Brazil?"
- "List the 10 largest cities in India"
- "Compare Japan and South Korea"
- "Search for cities named Springfield"
- "Which countries are in Africa?"
Available Tools
get_country
Get detailed data about a country including population, area, capital, region, coordinates, and 20+ statistics.
Input: { query: "Brazil" } — accepts name, slug, or ISO code
search_countries
Search for countries by name or keyword with optional region filter.
Input: { query: "south", region: "Americas", limit: 10 }
search_cities
Search for cities worldwide by name from a database of 13.4M cities.
Input: { query: "Tokyo", limit: 10 }
list_cities_by_country
List cities in a specific country, sorted by population or name.
Input: { country: "germany", min_population: 500000, limit: 20 }
compare_countries
Compare two countries side by side across all available metrics.
Input: { country_a: "France", country_b: "Germany" }
Docker (Isolated Setup)
For containerized deployment:
cd mcp/
cp .env.example .env
# Edit .env and add your BAMWOR_API_KEY
docker compose build
docker compose run --rm -i bamwor-mcp
The Docker setup is 100% isolated — it creates its own network, exposes no ports, shares no volumes, and communicates only via the public Bamwor API over HTTPS.
Environment Variables
| Variable | Required | Description |
|---|---|---|
BAMWOR_API_KEY |
Yes | Your Bamwor API key |
BAMWOR_API_URL |
No | Override API URL (default: https://bamwor.com/api/v1) |
Rate Limits
Depends on your API plan:
| Plan | Requests/min | Requests/day | Price |
|---|---|---|---|
| Free | 30 | 1,000 | $0 |
| Pro | 60 | 10,000 | $19.99/mo |
| Premium | 300 | 50,000 | $39.99/mo |
Register for a free key at bamwor.com/developers/quickstart.
Data Sources
- Countries: CIA World Factbook, UN, World Bank — 261 countries and territories
- Cities: GeoNames — 13.4M populated places with coordinates, population, timezone, elevation
- Statistics: 20+ metrics per country (GDP, HDI, life expectancy, literacy, and more)
Links
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。