MCP server for world geographic data — 261 countries, 13.4M cities. Powered by Bamwor.
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.
bamwor-mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
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+ statisticssearch_countries — Search for countries by name or keyword. Returns matching countries with basic datasearch_cities — Search for cities worldwide by name from a database of 13.4M citieslist_cities_by_country — List cities in a specific country, sorted by population or name. Supports minimum population filtercompare_countries — Compare two countries side by side across all available metrics: population, area, GDP, HDI, life expectancy, and moreget_rankings — Get country rankings by metric. Available metrics: population, area, gdp, hdi, life-expectancy, and 9 Bamwor proprietary indices (ibeu, ibcp, ibdaget_city — Get detailed information about a specific city by its GeoNames ID. Returns coordinates, population, elevation, timezone, and provinceget_nearby_cities — Find cities near a specific city using PostGIS radius search. Returns nearby cities with distance in kmConfiguration 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.
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.
| Tool | What it does |
|---|---|
| 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. |
{
"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.
| Variable | Description | Required |
|---|---|---|
| BAMWOR_API_KEY | Credential the server authenticates with. | Yes |
| BAMWOR_API_URL | Endpoint or connection string the server talks to. | Yes |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.