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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.