Skip to content
MCP server

geonames-mcp-server

Search GeoNames places, walk admin hierarchies, reverse geocode, get postal codes and…

Install
Pricing
Open source
Runs
Locally or Remotely
Version
0.2.1
Listing updated
4 days ago

About geonames-mcp-server

geonames-mcp-server is an open-source MCP server. It can run locally on your machine or as a hosted remote server.

Search GeoNames places, walk admin hierarchies, reverse geocode, get postal codes and country info.

Install

Run in a terminal

claude mcp add --transport http geonames-mcp-server https://geonames.caseyjhand.com/mcp

Add to Settings → Connectors → Add custom connector

https://geonames.caseyjhand.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "geonames-mcp-server": {
      "url": "https://geonames.caseyjhand.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "geonames-mcp-server": {
      "type": "http",
      "url": "https://geonames.caseyjhand.com/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "geonames-mcp-server": {
      "serverUrl": "https://geonames.caseyjhand.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "geonames-mcp-server": {
      "type": "http",
      "url": "https://geonames.caseyjhand.com/mcp"
    }
  }
}

Configuration

  • GEONAMES_USERNAMEGeoNames account used when a call passes no geonamesUsername. Free accounts must enable free web services on their geonames.org account page.
  • MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
  • MCP_TRANSPORT_TYPESelects the HTTP transport.
  • GEONAMES_USERNAMEGeoNames account used when a call passes no geonamesUsername. Free accounts must enable free web services on their geonames.org account page.
  • MCP_HTTP_HOSTThe hostname for the HTTP server.
  • MCP_HTTP_PORTThe port to run the HTTP server on.
  • MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
  • MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
  • MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Pricing

Open source

geonames-mcp-server FAQ

Is geonames-mcp-server free?

Yes. geonames-mcp-server is open source, so you can use and self-host it for free.

How do I add geonames-mcp-server to Claude Code?

Run this command in your terminal: claude mcp add --transport http geonames-mcp-server https://geonames.caseyjhand.com/mcp