MCP Hub
Back to servers

bamwor-mcp-server

World geographic data for AI agents. 261 countries, 13.4M cities.

Registryglama
Forks
1
Updated
Mar 14, 2026

Quick Install

npx -y bamwor-mcp-server

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?

SourceCitiesCountriesMultilingualAPI
REST Countries0250YesFree
CountryStateCity151K250NoNo
API Ninjas5MNoPaid
Bamwor13.4M2614 languagesFree + 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

VariableRequiredDescription
BAMWOR_API_KEYYesYour Bamwor API key
BAMWOR_API_URLNoOverride API URL (default: https://bamwor.com/api/v1)

Rate Limits

Depends on your API plan:

PlanRequests/minRequests/dayPrice
Free301,000$0
Pro6010,000$19.99/mo
Premium30050,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

Reviews

No reviews yet

Sign in to write a review