Bamwor MCP Server

MCP server for world geographic data — 261 countries, 13.4M cities. Powered by Bamwor.

Local serverstdio

What is the Bamwor MCP server?

MCP server for world geographic data — 261 countries, 13.4M cities. Powered by Bamwor. That is what the bamwor mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

Getting it running

bamwor-mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

The tools it exposes

The server publishes 8 tools. What each one is for:

  • 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
  • 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

What it needs from you

Configuration is passed through the environment: BAMWOR_API_KEY, BAMWOR_API_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Bamwor's toolset — get_country, search_countries, search_cities and 5 more — is a fair guide to whether it matches your workflow. It is maintained by bamwor-dev; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
get_countryGet detailed data about a country by name, slug, or ISO code. Returns population, area, capital, region, coordinates, and 20+ statistics.
search_countriesSearch for countries by name or keyword. Returns matching countries with basic data.
search_citiesSearch for cities worldwide by name from a database of 13.4M cities.
list_cities_by_countryList cities in a specific country, sorted by population or name. Supports minimum population filter.
compare_countriesCompare two countries side by side across all available metrics: population, area, GDP, HDI, life expectancy, and more.
get_rankingsGet 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_cityGet detailed information about a specific city by its GeoNames ID. Returns coordinates, population, elevation, timezone, and province.
get_nearby_citiesFind cities near a specific city using PostGIS radius search. Returns nearby cities with distance in km.

How to install the Bamwor MCP server

{
  "mcpServers": {
    "bamwor-world-data": {
      "command": "npx",
      "args": ["-y", "bamwor-mcp-server"],
      "env": {
        "BAMWOR_API_KEY": "your_api_key"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
BAMWOR_API_KEYCredential the server authenticates with.Yes
BAMWOR_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Bamwor to get country.
  • Use Bamwor to search countries.
  • Use Bamwor to search cities.

Frequently asked questions

It connects Bamwor to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (get_country, search_countries, search_cities, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Bamwor directly.