geonames-mcp-server
Server Details
Search GeoNames places, walk admin hierarchies, reverse geocode, get postal codes and country info.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/geonames-mcp-server
- GitHub Stars
- 2
- Server Listing
- @cyanheads/geonames-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 8 tools
The tools mostly target distinct GeoNames operations: search, reverse geocode, place details, hierarchy, children, countries, postal codes, and vocabulary reference. There is some conceptual overlap because get_place, get_hierarchy, get_children, and search_places can all return administrative/place information, but the descriptions draw clear boundaries.
All tools use the same geonames_ prefix and snake_case verb_noun naming pattern: find_postal_codes, get_children, get_countries, get_hierarchy, get_place, list_reference, reverse_geocode, and search_places. The verbs vary appropriately by operation while remaining predictable.
Eight tools is well-scoped for a GeoNames server covering gazetteer search, reverse geocoding, place details, hierarchy, administrative children, country facts, postal lookup, and reference decoding. Each tool maps to a distinct core capability without obvious padding.
The surface covers forward and reverse geocoding, place detail lookup, administrative hierarchy and children, country facts, postal-code lookup, and vocabulary reference. The tools cross-reference geonameIds and follow-up operations, leaving no obvious dead ends for the stated domain.
Available Tools
8 toolsgeonames_find_postal_codesFind GeoNames postal codesARead-onlyIdempotentInspect
Look up postal codes in the GeoNames postal database (122 countries): mode code resolves a postal code to its place, admin names, and centroid; mode place_name finds postal codes for a place name; both page with offset, up to 5000; mode nearby lists postal codes within radiusKm (up to 30 km) of a coordinate, nearest first. Ireland returns only Eircode routing keys and Malta only the letter prefix; the United Kingdom (GB), Canada, and the Netherlands hold both full codes and their outward or district prefixes. Check coverage with geonames_list_reference topic postal_countries. Costs 1 GeoNames credit (2 for nearby); a code or place_name lookup with countries that returns nothing at offset 0 also reads the postal coverage list, 1 more credit unless that list is cached. Repeat lookups are cached.
Inputs: mode (required), lat, lng, limit, +6 more. Returns: cap, mode, error, shown, +4 more
geonames_get_childrenList GeoNames childrenARead-onlyIdempotentInspect
List the direct children of a GeoNames feature — Earth's continents, a continent's countries, a country's first-level divisions, a state's counties, a city's sections — in the administrative tree, or in the tourism tree (islands, coasts, and their municipalities; almost all in Spain) or the dependency tree (a country's dependent territories). Start from a country's geonameId (geonames_get_countries) or any admin division's. Children are mostly admin divisions (class A) and populated places (class P); continents and coasts are class L and islands class T. For other feature types inside a country or admin division, use geonames_search_places with its country in countries and its admin codes (adminLevels of geonames_get_place), which match exactly; a boundingBox also takes in neighboring areas, so keep it for a place that is not a division. GeoNames answers a tourism or dependency request with the administrative children when the feature has no such tree, so the tool compares the two lists and sets sameAsAdministrative when they match, keeping the rows (a real tree can match too). The full child list is fetched once (1 GeoNames credit) and cached, so paging and nameContains filtering are free; a tourism or dependency call also reads the administrative list for the comparison, 1 more credit unless it is cached.
Inputs: geonameId (required), limit, offset, hierarchy, +2 more. Returns: cap, error, found, shown, +9 more
geonames_get_countriesGeoNames country factsARead-onlyIdempotentInspect
Get GeoNames country facts — ISO alpha-2, alpha-3, and numeric codes, FIPS code, geonameId, capital, population, area in km², continent, languages, currency, postal-code format, and mainland bounding box — for the countries named, a continent, or all 250. The geonameId anchors geonames_get_children (a country's first-level divisions) and geonames_get_hierarchy. The full table is fetched once a day (1 GeoNames credit) and cached.
Inputs: limit, offset, continent, countries, +2 more. Returns: cap, error, shown, notice, +5 more
geonames_get_hierarchyGet a GeoNames hierarchyARead-onlyIdempotentInspect
Return the parent chain of a GeoNames feature, ordered from Earth and its continent through the country and admin divisions down to the feature itself, each with its geonameId, feature code, and coordinates. Use it to find which country, state, and county contain a place, or to fill an admin path for a geonameId. An unknown id returns found: false. Costs 1 GeoNames credit; cached.
Inputs: geonameId (required), geonamesUsername. Returns: chain, error, found, guidance, +1 more
geonames_get_placeGet a GeoNames placeARead-onlyIdempotentInspect
Fetch the full GeoNames record for one geonameId: coordinates, feature type, the admin chain with each level's code, name, and geonameId, timezone, bounding box, recorded and DEM elevation, population, Wikipedia URL, names in other languages, postal codes, and external identifiers (IATA, ICAO, UN/LOCODE, Wikidata). Take the geonameId from geonames_search_places, geonames_reverse_geocode, geonames_get_children, or geonames_get_countries. An unknown id returns found: false. Costs 1 GeoNames credit; repeat lookups are cached.
Inputs: geonameId (required), nameLanguages, geonamesUsername. Returns: error, found, place, notice, +1 more
geonames_list_referenceGeoNames reference vocabularyARead-onlyIdempotentInspect
Decode GeoNames vocabulary used by the other tools: topic feature_classes lists the 9 one-letter classes; topic feature_codes lists the 684 feature codes with names and definitions, filterable by class and text; topic postal_countries lists the 122 countries with postal-code data and each one's code range and count. feature_classes and feature_codes are bundled and spend no credits; postal_countries costs 1 GeoNames credit a day (cached).
Inputs: topic (required), limit, offset, featureClass, +2 more. Returns: cap, error, shown, topic, +5 more
geonames_reverse_geocodeReverse geocode with GeoNamesARead-onlyIdempotentInspect
Resolve a latitude/longitude to the country and admin subdivisions that contain it (down to ADM5, each with its geonameId and ISO 3166-2 code where one exists), or the ocean or sea when the point is offshore, plus the nearest populated places with distances; these include neighborhood sections (PPLX) and historical places (PPLH), marked by featureCode. Set featureClasses or featureCodes to list the nearest features of that type instead (peaks, lakes, airports), cities to keep only places above a population tier, and includeTimezone for the IANA timezone with local time, sunrise, and sunset (offshore points get only GeoNames' UTC-offset estimate). A harbor, pier, or shoreline point can fall just outside every country outline and resolve to the sea; coastalBufferKm (up to 50) matches the nearest country within that distance instead. Costs 1 GeoNames credit for containment, with or without the buffer, plus 3 for nearest populated places or 4 for nearest features (nearbyLimit 0 skips them), 1 for the ocean when no country contains the point or lies within the buffer, and 1 for the timezone.
Inputs: lat (required), lng (required), cities, radiusKm, +6 more. Returns: cap, lat, lng, error, +9 more
geonames_search_placesSearch GeoNames placesARead-onlyIdempotentInspect
Search the GeoNames gazetteer of 13M+ places by name and filters: country, admin division by its GeoNames code (adminCode1 TX with countries US for Texas), feature class (P populated places, A admin divisions, T mountains and terrain, H water, S buildings and spots), feature code (PPLC capitals, ADM1 states, MT mountains, AIRP airports), population tier, and bounding box. Results carry the geonameId that geonames_get_place, geonames_get_hierarchy, and geonames_get_children take. The default match requires a query term in the place name while letting other terms match the country or admin names ("Berlin, Germany"). Costs 1 GeoNames credit per call.
Inputs: limit, match, query, cities, +11 more. Returns: cap, error, shown, notice, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Geocode, reverse-geocode, autocomplete, route and search places.
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
Free GeoNames MCP: countries, cities, POIs, distance & nearby. Remote HTTP + agent token signup.
Related MCP Servers
- AlicenseAqualityDmaintenanceUnified place search and geocoding over OpenStreetMap, Google, and your own CSV data. Provider fallback, multi-provider merge + dedup, cost budgets, and a policy engine. Works with zero API keys. Tools: search_places, get_place, geocode_address, reverse_geocode, list_geo_providers.101Apache 2.0
- AlicenseAqualityDmaintenanceProvides forward/reverse geocoding, bounding box extraction, nearby places discovery, batch geocoding, route waypoints, and administrative boundary lookup using OpenStreetMap data.10Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search worldwide cities, landmarks, and regions; retrieve administrative divisions, coordinates, population, nearby places, timezone and sunrise/sunset data; and look up postal codes by place or code.421 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables ZIP and postal code lookups—resolving codes to city, state, and coordinates for 60+ countries, and fetching all postal codes for a city—via the Zippopotam.us API.259 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.