Geonames logo

Geonames

Query worldwide place data, nearby features, time zones, and postal codes through MCP.

Install Geonames

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "geonames": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-geonames"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Geonames MCP server connects AI clients to the GeoNames geographical database through the Pipeworx gateway. Its four tools search places, find nearby features, retrieve timezone details, and map postal codes to places or vice versa. Use it for worldwide location lookups such as identifying a city’s state, province, county, prefecture, or other administrative region. It supports hosted HTTP access and a local npm-based stdio bridge.

Use cases

  • Identify the administrative region for a city worldwide
  • Find landmarks and settlements near coordinates
  • Convert postal codes to places and places to postal codes
  • Retrieve local time and daylight information for coordinates

Key features

  • Worldwide place and administrative-region search
  • Nearby feature lookup sorted by distance
  • Timezone, GMT offset, sunrise, and sunset data
  • Bidirectional postal-code lookup
  • Hosted HTTP and local npm stdio access
  • Optional natural-language routing through Pipeworx

Tools4

What Geonames lets your agent do. Expand a tool for its parameters.

Verified live~803 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age119 days
Maintainers1

Observed 2026-10-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @pipeworx/mcp-geonames (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1kPackage downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Geonames works

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:

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

The local stdio option starts the package with npx:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Geonames

Geonames is an MCP server that connects AI clients to the GeoNames geographical database through the Pipeworx gateway. Its main tools search places, find nearby features, retrieve timezone details, and look up postal codes by place or place by postal code, with worldwide geographic coverage.

Add the hosted `https://gateway.pipeworx.io/geonames/mcp` URL to your MCP client, or run `npx -y @pipeworx/mcp-geonames` as a local stdio server. The npm bridge forwards requests to Pipeworx and requires network access.

Yes, Geonames works with Cursor through the hosted MCP URL or the local npm stdio configuration. Add the server entry to Cursor’s MCP settings and choose either the gateway endpoint or the `npx` command.

Use `search_geonames` with the place name and, when useful, a country code. The response includes an `admin_region` field representing the relevant state, province, county, prefecture, or other administrative division.

Yes, use `find_postal_codes` with a postal code and country to find matching places, or with a place and country to find postal codes. Results include coordinates and the administrative region.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGeonames AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/geonames?style=directory)](https://allmcps.com/mcp/geonames)
HTML Embed
<a href="https://allmcps.com/mcp/geonames"><img src="https://allmcps.com/api/badge/geonames?style=directory" alt="Geonames on AllMCPs" /></a>