OpenStreetMap logo

OpenStreetMap

Plan trips with OSM geocoding, routing, POI search, isochrones, and route optimization through read-only MCP tools.

Install OpenStreetMap

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": {
      "command": "npx",
      "args": [
        "-y",
        "osm-mcp"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

OpenStreetMap MCP server exposes read-only tools for geocoding, reverse geocoding, routing, route comparison, stop ordering, isochrones, and OpenStreetMap POI lookup. It uses public OSM services over HTTPS, including Nominatim, Photon, OSRM, Valhalla, and Overpass, with optional OpenRouteService support through an API key. Reach for it when an agent needs real-world walking, driving, or cycling travel data rather than straight-line distances. It runs with Node.js 24 or newer and requires internet access, but no API key is needed for the default public services.

Use cases

  • Geocode addresses before planning a trip
  • Compare travel times from hotels to attractions
  • Optimize a multi-stop walking or driving itinerary
  • Find nearby services and inspect their OSM details
  • Suggest a meeting place for people in different locations

Key features

  • Walking, driving, and cycling route calculations
  • Multi-origin route matrices
  • Traveling-salesman stop optimization
  • Time- or distance-based isochrones
  • Nearby POI search with arbitrary OSM tags
  • Optional Photon and OpenRouteService backends

Tools11

What OpenStreetMap lets your agent do. Expand a tool for its parameters.

Verified live~2.4k 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 1d ago

Recent health check succeeded.

10/10 checks healthy over the last 55d

What it can do

From the 11 tools this server returned when we ran it; 11 declare their own safety hints.

Makes network requests · 11Read-only tools · 11
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age65 days
Maintainers1

Observed 2026-10-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · osm-mcp (npm)

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
npm downloads1.5kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How OpenStreetMap works

What OpenStreetMap does

OpenStreetMap provides location and travel-planning capabilities through eleven read-only MCP tools. Agents can turn addresses or place names into coordinates, resolve coordinates back to nearby addresses, calculate travel distances and durations, compare many origin-destination pairs, and reorder stops for an efficient itinerary.

The server also supports reachability analysis, nearby point-of-interest searches, detailed OSM record lookup, meeting-place suggestions, straight-line distance calculations, and links to OpenStreetMap maps or directions. Walking, driving, and cycling are supported for road-based routes. The tools are suited to questions such as where to meet, which hotel is closest to several attractions, or what can be reached on foot within a time limit.

How it works

Requests go through public OpenStreetMap-related services over HTTPS. Nominatim handles standard geocoding and reverse geocoding, while Photon can be selected for more typo-tolerant place-name searches. Routing, matrices, and stop optimization use OSRM by default; Valhalla supplies isochrones. Overpass provides point-of-interest searches and detailed element records.

An optional OpenRouteService API key changes the routing, matrix, and isochrone backends to OpenRouteService. The default setup requires no API key. The server applies per-service rate limits, identifies itself with a User-Agent, caches responses in memory, and limits concurrent Overpass requests. It can also fail over between configured Overpass endpoints when a service request fails.

Setup and configuration

Run the server with Node.js 24 or newer and internet access to the public services. All configuration variables are optional. Set OSM_USER_AGENT to provide an identifying User-Agent, particularly when using Nominatim.

Service endpoints can be replaced with NOMINATIM_BASE_URL, PHOTON_BASE_URL, OSRM_BASE_URL, OVERPASS_BASE_URL, and VALHALLA_BASE_URL. OVERPASS_BASE_URL accepts a comma-separated list of endpoints. Set ORS_API_KEY and, if needed, ORS_BASE_URL to use OpenRouteService. The documented free OpenRouteService tier allows 2,000 directions per day and 40 per minute.

OSM_CACHE_TTL controls the in-memory cache lifetime in seconds; setting it to 0 disables caching. Tool exposure can be narrowed with comma-separated names in OSM_ALLOW_TOOLS and OSM_DENY_TOOLS. The special essential allow-list enables geocode, reverse_geocode, find_nearby_pois, poi_details, route, and map_link. Wildcard entries ending in * match tool families, and an allow-list entry that matches nothing causes startup to abort.

Tools and capabilities

  • geocode finds matching places and returns coordinates, display labels, and OSM IDs. Nominatim is the default provider; Photon is available for fuzzy searches.
  • reverse_geocode finds the nearest address or place name for coordinates.
  • route calculates ordered travel distances and times for walking, driving, or cycling, with optional turn-by-turn steps.
  • route_matrix compares every origin with every destination and returns null for unreachable pairs.
  • optimize_route orders stops as a traveling-salesman itinerary, with optional return to the starting point.
  • isochrone summarizes the area reachable from a place using exactly one time or distance budget.
  • find_nearby_pois searches nearby OSM features by category or arbitrary tags and sorts results by distance.
  • poi_details returns all tags, coordinates, and a map link for an OSM element.
  • suggest_meeting_point selects a venue near the geographic midpoint with balanced travel times.
  • straight_line_distance calculates great-circle distance without using a road network.
  • map_link creates an OpenStreetMap marker or directions URL.

Limitations and notes

Results depend on the coverage and freshness of OpenStreetMap data and the availability of the configured public services. Road routes and straight-line distances are different measurements; use route for travel on roads and straight_line_distance for direct distance. Public service rate limits apply, including one request per second for Nominatim and OSRM. OpenRouteService usage is subject to its configured quota when that backend is enabled.

Reviews

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

Frequently Asked Questions about OpenStreetMap

OpenStreetMap is an MCP server that connects AI clients to OpenStreetMap-related geocoding, routing, and POI services. Its main tools geocode places, calculate walking, driving, and cycling routes, search nearby points of interest, optimize multi-stop trips, generate isochrones, and create map links. All tools are read-only.

Run it with Node.js 24 or newer and internet access to the public OpenStreetMap services. The server works without an API key using its default backends. Configure service URLs, caching, User-Agent settings, or tool filters through environment variables when needed.

No, the default public services require no API key. You can optionally set `ORS_API_KEY` to use OpenRouteService for routes, matrices, and isochrones instead of the default OSRM and Valhalla backends.

Yes, `route` calculates walking, driving, and cycling distances and times from OpenStreetMap data. It accepts two or more places in a specified order and can include a turn-by-turn summary.

Set `OSM_ALLOW_TOOLS` to a comma-separated list, use the `essential` preset, or add a trailing `*` to match a tool family. `OSM_DENY_TOOLS` removes matching tools from the result, and unmatched allow-list entries cause startup to fail.

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 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openstreetmap?style=directory)](https://allmcps.com/mcp/openstreetmap)
HTML Embed
<a href="https://allmcps.com/mcp/openstreetmap"><img src="https://allmcps.com/api/badge/openstreetmap?style=directory" alt="OpenStreetMap on AllMCPs" /></a>