MCP Server Studio

geonames-mcp-server MCP server

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

Registry name: io.github.cyanheads/geonames-mcp-server

Publisher
cyanheads
Runs
Local or hosted
Package
npm
Version
0.2.1
Category
Search & knowledge
Updated
2026-11-16

Source code on GitHub

Set up geonames-mcp-server (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "geonames-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/geonames-mcp-server@0.2.1"
      ],
      "env": {
        "GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add geonames-mcp-server -e GEONAMES_USERNAME='<GEONAMES_USERNAME>' -e MCP_LOG_LEVEL='<MCP_LOG_LEVEL>' -- npx -y @cyanheads/geonames-mcp-server@0.2.1

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "geonames-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/geonames-mcp-server@0.2.1"
      ],
      "env": {
        "GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "geonames-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/geonames-mcp-server@0.2.1"
      ],
      "env": {
        "GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "geonames-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/geonames-mcp-server@0.2.1"
      ],
      "env": {
        "GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Set up geonames-mcp-server (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "geonames-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://geonames.caseyjhand.com/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

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

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

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

Windsurf

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

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

Settings

NameRequiredWhat it is
GEONAMES_USERNAMENoGeoNames account used when a call passes no geonamesUsername. Free accounts must enable free web services on their geonames.org account page.
MCP_LOG_LEVELNoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More search & knowledge MCP servers