Openstreetmap MCP Server logo

Openstreetmap MCP Server

Geocode locations and query OpenStreetMap features through Nominatim and Overpass using six MCP tools.

Install Openstreetmap MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "openstreetmap-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openstreetmap-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @cyanheads/openstreetmap-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

openstreetmap-mcp-server connects MCP clients to OpenStreetMap through Nominatim and the Overpass API. It supports place search, reverse geocoding, OSM object lookups, nearby and boundary-based feature queries, and raw Overpass QL. The server can run over STDIO or Streamable HTTP, with a hosted endpoint also available. Use it for agent workflows that need structured location data or spatial searches from OpenStreetMap.

Use cases

  • Resolve user-entered addresses into coordinates
  • Find amenities near a known location
  • Search features inside a city or regional boundary
  • Inspect known OpenStreetMap objects by ID
  • Run custom Overpass QL searches

Key features

  • Nominatim place and address geocoding
  • Reverse geocoding with configurable zoom and layers
  • Nearby and bounding-box OpenStreetMap queries
  • OpenStreetMap object lookup by ID or URL
  • Raw Overpass QL execution
  • STDIO and Streamable HTTP support

Tools6

What Openstreetmap MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~137 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @cyanheads/openstreetmap-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
npm downloads2.6kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed6Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Openstreetmap MCP Server works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openstreetmap MCP Server

openstreetmap-mcp-server is an MCP server that connects AI clients to OpenStreetMap through Nominatim and Overpass. Its six tools search places, reverse-geocode coordinates, look up OSM objects, find nearby or bounding-box features, and run raw Overpass QL queries. It supports STDIO and Streamable HTTP connections.

Install it from npm with `npx -y @cyanheads/openstreetmap-mcp-server` through an MCP client that supports STDIO servers. Direct installation links are provided for Claude Desktop, Cursor, and VS Code. A hosted Streamable HTTP endpoint is also available at `https://openstreetmap.caseyjhand.com/mcp`.

Yes, openstreetmap-mcp-server has a Cursor installation link. Cursor can launch the npm package with `npx -y @cyanheads/openstreetmap-mcp-server`.

Yes, use `openstreetmap_query_raw` to submit an Overpass QL query. This tool is intended for spatial searches that the nearby and bounding-box tools cannot express.

Yes, `openstreetmap_query_nearby` finds OpenStreetMap features within a radius of a latitude and longitude. It supports tag-based filtering, optional node/way/relation selection, and result paging.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenstreetmap MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openstreetmap-mcp-server?style=directory)](https://allmcps.com/mcp/openstreetmap-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/openstreetmap-mcp-server"><img src="https://allmcps.com/api/badge/openstreetmap-mcp-server?style=directory" alt="Openstreetmap MCP Server on AllMCPs" /></a>