Openstreetmap MCP Server

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

Remote serverstreamable-http

What is the Openstreetmap MCP Server?

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

What you get

Configuration and credentials

  • Bun v1.3.0 or higher (or Node.js ≥24.0.0). - No API key required — Nominatim and Overpass are public APIs. For heavy use, consider pointing OSM_NOMINATIM_BASE_URL and OSM_OVERPASS_BASE_URL at self-hosted or mirror instances.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
openstreetmap_search_placesConvert a place name or address to geographic coordinates and structured place data
openstreetmap_reverse_geocodeConvert latitude/longitude coordinates to the nearest address or place name
openstreetmap_lookup_objectsFetch address details for one or more known OSM objects by their IDs
openstreetmap_query_nearbyFind OSM features within a radius around a geographic point
openstreetmap_query_bboxFind OSM features within a rectangular bounding box
openstreetmap_query_rawExecute a raw Overpass QL query for advanced spatial operations

How to install the Openstreetmap MCP Server

{
  "mcpServers": {
    "openstreetmap-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/openstreetmap-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Bun v1.3.0 or higher (or Node.js ≥24.0.0). - No API key required — Nominatim and Overpass are public APIs. For heavy use, consider pointing OSM_NOMINATIM_BASE_URL and OSM_OVERPASS_BASE_URL at self-hosted or mirror instances.
VariableDescriptionRequired
MCP_TRANSPORT_TYPEConfiguration value read at startup.Optional
MCP_LOG_LEVELConfiguration value read at startup.Optional
OSM_NOMINATIM_BASE_URLEndpoint or connection string the server talks to.Yes
OSM_OVERPASS_BASE_URLEndpoint or connection string the server talks to.Yes
MCP_HTTP_ENDPOINT_PATHFilesystem location the server is allowed to use.Optional
MCP_PUBLIC_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Openstreetmap to openstreetmap search places.”
  • “Use Openstreetmap to openstreetmap reverse geocode.”
  • “Use Openstreetmap to openstreetmap lookup objects.”

Frequently asked questions

Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.