Openstreetmap MCP Server
by cyanheadsio.github.cyanheads/openstreetmap-mcp-serverv0.6.0
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
context tax
queued
security
queued
cold start
queued
freshness
Active6d ago
Install Openstreetmap MCP server
Install in Claude Code
claude mcp add openstreetmap -- npx -y @cyanheads/openstreetmap-mcp-server run start:stdioInstall in Cursor
{
"mcpServers": {
"openstreetmap": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openstreetmap-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"openstreetmap": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openstreetmap-mcp-server",
"run",
"start:stdio"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"openstreetmap": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/openstreetmap-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"openstreetmap": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openstreetmap-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OSM_NOMINATIM_BASE_URL | — | — | Nominatim API base URL. Override to use a private or mirror instance. |
| OSM_USER_AGENT | — | — | User-Agent sent to Nominatim and Overpass. Required by usage policy. |
| OSM_OVERPASS_BASE_URL | — | — | Overpass API endpoint URL. When set, pins every query to this one endpoint and disables mirror failover; OSM_OVERPASS_MAX_CONCURRENCY sizes it and a |N suffix is rejected. Leave unset to use OSM_OVERPASS_ENDPOINTS. |
| OSM_OVERPASS_ENDPOINTS | — | — | Comma-separated ordered list of Overpass endpoints. A failure advances to the next entry within the same tool call; a single entry means no failover. An entry written url|N gets N slots of its own and adds capacity; an unsuffixed later entry is failover only. Write a | inside a URL as %7C. Verify a mirror's usage policy, data coverage, and freshness before adding it. Ignored when OSM_OVERPASS_BASE_URL is set. |
| OSM_OVERPASS_MAX_CONCURRENCY | — | — | Concurrent Overpass queries per endpoint: the pinned OSM_OVERPASS_BASE_URL and every OSM_OVERPASS_ENDPOINTS entry without a |N suffix. A query waits at most 30 seconds in total for a slot. Match the slot budget the endpoint advertises at /api/status. |
| MCP_LOG_LEVEL | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| MCP_HTTP_HOST | — | — | The hostname for the HTTP server. |
| MCP_HTTP_PORT | — | — | The port to run the HTTP server on. |
| MCP_HTTP_ENDPOINT_PATH | — | — | The endpoint path for the MCP server. |
| MCP_PUBLIC_URL | — | — | Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com). |
| MCP_AUTH_MODE | — | — | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
Remote endpoints
- streamable-http
https://openstreetmap.caseyjhand.com/mcp
Freshness
Active — last maintenance signal 6d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-03 · 6d ago · GitHub
Latest release
2026-10-03 · 6d ago · GitHub · v0.6.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-03 · 6d ago · official registry · v0.6.0
FAQ
›How do I install the Openstreetmap MCP server in Claude Code?
Run: claude mcp add openstreetmap -- npx -y @cyanheads/openstreetmap-mcp-server run start:stdio. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Openstreetmap require an API key?
No required environment variables are declared in its published metadata.
›Can I use Openstreetmap as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Openstreetmap in the official MCP registry?
Yes, as io.github.cyanheads/openstreetmap-mcp-server.
Alternatives to Openstreetmap
Other maps & location MCP servers.