geonames-mcp-server
Search GeoNames places, walk admin hierarchies, reverse geocode, get postal codes and country info.
Connect it
Settings → Connectors → Add custom connector
URL: https://geonames.caseyjhand.com/mcpSettings → Apps & Connectors → Advanced → Developer mode
Create connector with URL: https://geonames.caseyjhand.com/mcp{
"mcpServers": {
"geonames-mcp-server": {
"url": "https://geonames.caseyjhand.com/mcp"
}
}
}claude mcp add --transport http geonames-mcp-server https://geonames.caseyjhand.com/mcp{
"servers": {
"geonames-mcp-server": {
"type": "http",
"url": "https://geonames.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"geonames-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/geonames-mcp-server@0.1.2"
],
"env": {
"GEONAMES_USERNAME": "<value>"
}
}
}
}claude mcp add geonames-mcp-server -- npx -y @cyanheads/geonames-mcp-server@0.1.28 tools, verified live
geonames_search_placesread-onlySearch the GeoNames gazetteer of 13M+ places by name and filters: country, 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 tak
geonames_get_placeread-onlyFetch 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_
geonames_get_hierarchyread-onlyReturn 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.
geonames_get_childrenread-onlyList 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_coun
geonames_reverse_geocoderead-onlyResolve 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 th
geonames_find_postal_codesread-onlyLook 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; 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, a
geonames_get_countriesread-onlyGet 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
geonames_list_referenceread-onlyDecode 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_countri
Alternatives in Search & Research
Compare →
pmndrs docsA
Search and read the docs and examples of react-three-fiber, drei, zustand, jotai... from your agent
PMPubmed MCP ServerA
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Google Ads + Meta Ads + SEO/GEO MCPA
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI
MFmcp.film directoryA
Search the curated directory of MCP servers for AI filmmaking and plan a full production stack.
ESExa SearchA
Search the live web and fetch clean content from source pages.
CAConnected AppsA
Read Gmail, search GitHub, update Sheets, and post to Slack through Composio.