MCP Server Studio
Search GeoNames places, walk admin hierarchies, reverse geocode, get postal codes and country info.
Registry name: io.github.cyanheads/geonames-mcp-server
Add to claude_desktop_config.json:
{
"mcpServers": {
"geonames-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
"MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
}
}
}
}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/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"geonames-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
"MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"geonames-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
"MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"geonames-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/[email protected]"
],
"env": {
"GEONAMES_USERNAME": "<GEONAMES_USERNAME>",
"MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"geonames-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://geonames.caseyjhand.com/mcp"
]
}
}
}Run in your terminal:
claude mcp add --transport http geonames-mcp-server https://geonames.caseyjhand.com/mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"geonames-mcp-server": {
"url": "https://geonames.caseyjhand.com/mcp"
}
}
}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"
}
}
}| Name | Required | What it is |
|---|---|---|
GEONAMES_USERNAME | No | GeoNames account used when a call passes no geonamesUsername. Free accounts must enable free web services on their geonames.org account page. |
MCP_LOG_LEVEL | No | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |