# openstreetmap-mcp-server [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/cyanheads/openstreetmap-mcp-server  
**GitHub Stars:** 9  
**npm Downloads (last month):** 2557  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/openstreetmap-mcp-server

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

## Tools
Capabilities this server exposes over MCP:

- **openstreetmap_search_places** — Convert a place name or address to coordinates and structured place data
- **openstreetmap_reverse_geocode** — Convert latitude/longitude to the nearest address or place name
- **openstreetmap_lookup_objects** — Fetch address records for known OSM objects by ID
- **openstreetmap_query_nearby** — Find OSM features within a radius of a point
- **openstreetmap_query_bbox** — Find OSM features inside a bounding box or an OSM boundary such as a city, park, or region
- **openstreetmap_query_raw** — Run a raw Overpass QL query for anything the other tools cannot express

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "openstreetmap-mcp-server": {
    "command": "npx",
    "args": ["-y","@cyanheads/openstreetmap-mcp-server"]
  }
}
```

## Documentation

## What openstreetmap-mcp-server does

openstreetmap-mcp-server exposes six tools for working with OpenStreetMap data through MCP. Nominatim handles place and address resolution, while Overpass supports spatial feature queries.

The location tools cover several common lookup patterns:

- `openstreetmap_search_places` turns a place name or address into coordinates and structured place data.
- `openstreetmap_reverse_geocode` resolves latitude and longitude to a nearby address or place name.
- `openstreetmap_lookup_objects` retrieves address records for known OpenStreetMap objects.
- `openstreetmap_query_nearby` finds tagged features within a radius of a point.
- `openstreetmap_query_bbox` searches inside a bounding box or an OpenStreetMap boundary such as a city, park, or region.
- `openstreetmap_query_raw` accepts an Overpass QL query for searches that the higher-level tools cannot express.

Results can include coordinates, structured addresses, OpenStreetMap object identifiers, bounding boxes, tags, and feature distances, depending on the tool used.

## How it works

The server receives tool calls from an MCP client and forwards location resolution to Nominatim or feature searches to Overpass. Nearby searches can filter by tags and element types, while bounding-box searches can target a geometric area or a named OpenStreetMap boundary. Raw Overpass QL provides a lower-level option when a predefined search shape is insufficient.

Searches support structured or free-form place input, and location results can include administrative labels, importance, OpenStreetMap type and ID, and bounding information. Nearby results are ordered by distance and can return the full tag set or a selected group of tag keys. Pagination information is returned for searches that have more results.

## Setup and configuration

The package is available through npm as `@cyanheads/openstreetmap-mcp-server`. The documented client installation links use `npx -y @cyanheads/openstreetmap-mcp-server`, making it suitable for MCP clients that launch standard STDIO processes.

The server also supports Streamable HTTP. A publicly hosted MCP endpoint is available at `https://openstreetmap.caseyjhand.com/mcp`, which can be used by clients that connect to remote MCP servers.

Direct installation links are provided for Claude Desktop, Cursor, and VS Code. Docker packaging is also published through GitHub Container Registry.

## Tools and capabilities

Place search accepts a free-form query or structured address fields and can apply country, layer, feature type, language, and viewbox restrictions. Reverse geocoding supports zoom levels from country-level results through building-level results and can restrict searches by layer.

Object lookup accepts OpenStreetMap node, way, and relation references in several formats, including OSM URLs. It returns found records and identifies IDs that were not found.

Nearby queries support a radius of up to 50,000 meters, a primary tag, additional filters, node/way/relation selection, exact tag matching, and matching values within semicolon-separated tag lists. Bounding-box and raw-query tools extend searches beyond a single point-radius pattern.

## Limitations and notes

OpenStreetMap tagging is exact, so capitalization, spacing, and the choice of tag key affect results. The tools can return notices suggesting a more appropriate key or spelling when a query does not match expected tagging patterns.

Search and result limits apply. Place searches return up to 40 results, nearby searches up to 500 features per page, and object lookup processes the first 50 unique IDs in a call while returning additional IDs for later processing. Reverse geocoding can fail when no indexed object exists for the requested zoom and layers. Raw queries may also fail when a generated request becomes too long for the service URL limit.

_Full upstream README: https://allmcps.com/mcp/openstreetmap-mcp-server/readme_

