# Geonames [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-geonames  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1014  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/geonames

## Description
GeoNames MCP — GeoNames geographical database API

## Tools
Capabilities this server exposes over MCP:

- **search_geonames** — Search for places (cities, towns, landmarks, regions) by name and get which STATE / PROVINCE / COUNTY / PREFECTURE / administrative division (German Bundesland, UK county, Canadian province, Japanese prefecture, Indian/Australian/Mexican state, etc.) they are in, plus country, coordinates, population, and feature type. Answers "what state is <city> in", "which US/German/Australian state is <city> in", "what province/county/prefecture/region is <place> in" — the `admin_region` field is the state/province/county/prefecture (e.g. search_geonames("Naperville", "US") → Illinois; ("Heidelberg", "DE") → Baden-Württemberg; ("Leeds", "GB") → England; ("Osaka", "JP") → Osaka). Worldwide coverage. Example: search_geonames("Paris", "FR"). Use get_nearby to find places near a known location.
- **get_nearby** — Find places near a given latitude/longitude. Returns nearby cities, landmarks, and features sorted by distance. Example: get_nearby(48.8566, 2.3522) for places near Paris.
- **get_timezone** — Get timezone information for a latitude/longitude location. Returns timezone ID, GMT offset, DST offset, current local time, sunrise, and sunset. Example: get_timezone(40.7128, -74.0060) for New York.
- **find_postal_codes** — Look up postal/ZIP codes and places by each other. Pass "postal_code" (+ country) to find the place(s) a code maps to ("what city is ZIP 90210"); or pass "place" (+ country) to find the postal codes for a place name ("postal codes for Paris"). Returns place name, country, admin region (state/county), postal code, and coordinates.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "geonames": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-geonames"]
  }
}
```

## Documentation

## What Geonames MCP server does

Geonames MCP server exposes geographic lookups from the GeoNames API to MCP-compatible applications. It is useful when an agent needs structured location facts rather than a general web search: administrative divisions, coordinates, population, feature types, nearby places, timezone information, or postal-code mappings.

The integration is an independent, unofficial connection delivered through Pipeworx. Geographic searches have worldwide coverage, and administrative results use the relevant local division, such as a US state, German Bundesland, UK county or region, Canadian province, Japanese prefecture, or Indian, Australian, or Mexican state.

## How it works

The hosted MCP endpoint is available at `https://gateway.pipeworx.io/geonames/mcp`. Add that URL to an MCP client to connect over HTTP. The same gateway also provides a full endpoint at `https://gateway.pipeworx.io/mcp`; the pack endpoint lists the Geonames tools directly, while both endpoints can access Pipeworx routing through `ask_pipeworx`.

For clients without MCP support, individual tools can be called over HTTP. For local MCP configurations, the `@pipeworx/mcp-geonames` npm package acts as a stdio bridge and forwards requests to the hosted gateway. The bridge requires network access and has no offline mode.

## Setup and configuration

A hosted configuration can use:

```json
{
  "mcpServers": {
    "geonames": {
      "url": "https://gateway.pipeworx.io/geonames/mcp"
    }
  }
}
```

The local stdio option starts the package with `npx`:

```json
{
  "mcpServers": {
    "geonames": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-geonames"]
    }
  }
}
```

Anonymous use is available with a limit of 50 calls per day. A free Pipeworx account increases the allowance to 200 calls per day. Supply the account key as `PIPEWORX_API_KEY` in the MCP server environment when using authenticated access. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list Pipeworx-wide tools such as `ask_pipeworx`. Behind an HTTPS proxy, newer Node.js versions can use the proxy environment settings when `NODE_USE_ENV_PROXY=1` is enabled.

## Tools and capabilities

- `search_geonames` searches cities, towns, landmarks, regions, and other places by name. Results include the administrative region, country, coordinates, population, and feature type.
- `get_nearby` finds cities, landmarks, and other features around a latitude and longitude, ordered by distance.
- `get_timezone` returns the timezone ID, GMT offset, daylight-saving offset, local time, sunrise, and sunset for coordinates.
- `find_postal_codes` searches in both directions: provide a postal code to find matching places, or provide a place to find postal codes. Results include place, country, administrative region, postal code, and coordinates.

The gateway also supports natural-language requests through `ask_pipeworx`, which selects a suitable tool and fills its arguments.

## Limitations and notes

The npm bridge forwards every request to the hosted Pipeworx endpoint, so it cannot operate offline. Usage is metered: anonymous and authenticated accounts have different daily allowances, and authenticated calls use a Bearer token. Pack endpoints also expose shared Pipeworx meta-tools in addition to the Geonames tools; the exact tool list is reported during MCP initialization. The project is not affiliated with, endorsed by, or published by the upstream GeoNames provider.

_Full upstream README: https://allmcps.com/mcp/geonames/readme_

