Queries global country and city data, including statistics, rankings, comparisons, coordinates, populations, and nearby locations.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
This server is confirmed live — we successfully called its tools/list endpoint directly (see the verified badge above). We haven't yet sandbox-tested the stdio install command below specifically, which is a separate, ongoing check.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Bamwor MCP Server.
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, with optional region filter. Returns a list of matching countries with basic data.
search_citiesSearch for cities worldwide by name. Returns matching cities from a database of 13.4M cities with population and country.
list_cities_by_countryList cities in a specific country, sorted by population or name. Supports minimum population filter. Covers 13.4M cities globally.
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: population, area, gdp, hdi, life-expectancy, and 9 Bamwor indices (ibeu, ibcp, ibda, ibcx, ibee, ibfm, ibdi, ibed, ibsa). Omit metric to list all.
The bamwor-dev/bamwor-mcp-server MCP server exposes world geographic data through the Model Context Protocol. Its data includes 261 countries and territories, plus a city database containing approximately 13.4 million records. Country records include population, area, capital, region, coordinates, and more than 20 statistics. City records can include population, coordinates, elevation, timezone, province, and country.
The data is sourced from CIA World Factbook, GeoNames, UNDP, and World Bank material. The repository also documents four supported languages: English, Spanish, Portuguese, and Italian.
The MCP process runs locally through the npm package and makes requests to the Bamwor API. MCP-compatible clients can invoke the tools with structured inputs such as a country name, ISO code, city name, GeoNames city ID, ranking metric, or search limit.
A Bamwor API key is optional for anonymous access but is described as providing full access. The API base URL and request timeout can also be changed through environment variables. Nearby-city searches use a PostGIS radius query and return distances in kilometers.
The bamwor-dev/bamwor-mcp-server MCP server is documented as compatible with Claude Desktop, Cursor, Windsurf, and other MCP-compatible clients.
Install and start the server with:
The package can also be installed globally with npm, followed by the bamwor-mcp-server command. For client configuration, add a server entry that runs npx with -y and bamwor-mcp-server as its arguments.
Available environment variables are:
BAMWOR_API_KEY: Optional API key for full access.BAMWOR_API_URL: Optional API base URL override. The documented default is https://bamwor.com/api/v1.BAMWOR_REQUEST_TIMEOUT: Optional request timeout in milliseconds. The documented default is 15000.The bamwor-dev/bamwor-mcp-server MCP server exposes eight tools:
get_country retrieves detailed country data by name, slug, or ISO code.search_countries finds countries by name or keyword, with an optional region filter.search_cities searches the global city database by name.list_cities_by_country lists cities for a country, sorted by population or name, with an optional minimum-population filter.compare_countries compares two countries across available measures such as population, area, GDP, HDI, and life expectancy.get_rankings ranks countries by population, area, GDP, HDI, life expectancy, or one of nine Bamwor indices. Omitting the metric lists available metrics.get_city retrieves a city by GeoNames ID.get_nearby_cities finds cities within a specified radius of another city and includes distance in kilometers.The repository describes coverage and available fields, but it does not guarantee that every record contains every statistic. City detail and proximity tools require a GeoNames city ID rather than only a free-form city name. API access limits, pricing beyond the documented free key, and service availability are not specified in the provided material.
The project is licensed under MIT. The bamwor-dev/bamwor-mcp-server MCP server depends on the external Bamwor API, so changing the API URL or relying on anonymous access may affect the data or access available to a client.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/bamwor-dev-bamwor-mcp-server)<a href="https://allmcps.com/mcp/bamwor-dev-bamwor-mcp-server"><img src="https://allmcps.com/api/badge/bamwor-dev-bamwor-mcp-server?style=directory" alt="Bamwor MCP Server on AllMCPs" /></a>