MCP directory
OM

Openstreetmap Mcp Server

by github.com/cyanheads · v0.7.4 · updated Nov 23, 2026

Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://openstreetmap.caseyjhand.com/mcp

Claude Code

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

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • 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, for an instance whose operator allows parallel queries, never a public instance such...

  • OSM_OVERPASS_MAX_CONCURRENCY

    Concurrent Overpass queries per endpoint: OSM_OVERPASS_BASE_URL, and every OSM_OVERPASS_ENDPOINTS entry not sized with |N. With no |N entry it is also the most queries in flight across all endpoints. A query waits at most 30 seconds in total for a slot, then fails with pacer_shed and a retryAfter. T...

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • 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'.

  • 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, for an instance whose operator allows parallel queries, never a public instance such...

  • OSM_OVERPASS_MAX_CONCURRENCY

    Concurrent Overpass queries per endpoint: OSM_OVERPASS_BASE_URL, and every OSM_OVERPASS_ENDPOINTS entry not sized with |N. With no |N entry it is also the most queries in flight across all endpoints. A query waits at most 30 seconds in total for a slot, then fails with pacer_shed and a retryAfter. T...

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers