cities_by_coordinates_closest
Find cities nearest to given coordinates, ordered by distance.
Cities, countries, regions and languages as tools — with a keyless mode that answers city prefix searches for free.
LABSCO SUMMARY
Keyless mode is not a crippled trial: the autocomplete tool runs against pre-built static files, which is why it stays the fastest search path even after you add a key. The compound tools are where the subscription pays for itself — city_context and country_overview each replace three calls.
An MCP server over the Geomelon geographic API. It covers cities with population and name translations, countries and their administrative regions, distances and nearest-city lookups, plus compound tools that chain several API calls into one round trip.
Node.js 18 or newer. The geomelon-mcp package ships two binaries: geomelon-mcp over stdio for Claude Desktop, Cursor, Cline and Continue, and geomelon-mcp-http for Streamable HTTP. GEOMELON_API_KEY is a RapidAPI key with the Geomelon API subscribed; without it the server still starts, exposing search_cities_autocomplete only. A public keyless instance runs at https://mcp.geomelon.dev/mcp. The HTTP transport is stateless with CORS open, PORT changes the port it binds, and GET / returns a status object saying whether that instance has a key.
Add the configuration to your client
USE CASES
Country-scoped, language-specific prefix search, sorted by population, with an English fallback name.
One call instead of three, or two cities and the distance between them in one.
Nearest cities by distance, or the largest ones in the area by population.
The country, all its administrative regions and its most populous cities, from a UUID or a name prefix.
Every available translation for a city or region, rather than guessing the local spelling.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
cities_by_coordinates_closestFind cities nearest to given coordinates, ordered by distance.
cities_by_coordinates_largestFind the largest cities near given coordinates, ordered by population.
cities_distanceCalculate the distance in kilometres between two cities.
city_contextGet a city together with its full country and region details in one call.
compare_citiesFetch full details for two cities and the distance between them in one call.
country_overviewGet a country's details, all its regions, and its most populous cities in one call. Accepts either a country UUID or a name prefix.
find_cities_near_cityFind cities near a given city. Resolves the city's coordinates and returns nearby cities ordered by distance or population.
get_cityGet full details for a single city by its UUID.
get_city_settlement_typesGet settlement-type classifications for a city (e.g. city, town, village) by its UUID.
get_city_translationsGet all available name translations for a city by its UUID.
get_countryGet full details for a single country by its UUID, including translations and regions.
get_country_regionsGet all administrative regions belonging to a country by its UUID.
get_country_translationsGet name translations for a country by its UUID.
get_languageGet details for a single language by its UUID.
get_regionGet full details for a single region by its UUID.
get_region_translationsGet name translations for a region by its UUID.
list_countriesList countries with optional filtering by name prefix or telephone code. Supports localized names via preferredLanguages.
list_languagesList languages available in the Geomelon database.
list_regionsList administrative regions, optionally filtered by country.
search_citiesSearch cities by name, country, population range, and more. Returns matching cities with geographic and translation data.
search_cities_autocompleteFast country-scoped, language-specific city name prefix search backed by pre-built static files. Works without a Geomelon API key. Returns up to 10 cities sorted by population, with the requested language name and an English fallback.
search_cities_in_countrySearch cities using a country name instead of an ISO code. Resolves the country first, then searches cities within it.
BEFORE YOU INSTALL
22 tools when we connected. Without GEOMELON_API_KEY only search_cities_autocomplete registers, and the public hosted instance at mcp.geomelon.dev runs in that keyless mode; run your own instance with a RapidAPI key for all 22.
GEOMELON_API_KEY in your environment
CONTEXT COST
Rated by the size of the 22 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
{
"mcpServers": {
"geomelon": {
"command": "npx",
"args": [
"-y",
"geomelon-mcp"
],
"env": {
"GEOMELON_API_KEY": "<YOUR_GEOMELON_API_KEY>"
}
}
}
}In the folder you will run the server from, create a .env file containing GEOMELON_API_KEY=your RapidAPI key (without it the server runs in keyless mode with search_cities_autocomplete only)
Start the HTTP server there and leave it running
npx -y -p geomelon-mcp geomelon-mcp-httpIn a second terminal, register it with Claude Code
claude mcp add --transport http geomelon http://localhost:3000/mcp
claude mcp listhttps://mcp.geomelon.dev/mcp