Repository avatar
Other Tools
v1.0.1
active

osrm-global-road-routing-mcp

io.github.theluckystrike/osrm-global-road-routing-mcp

Global OpenStreetMap road driving routes, travel-time distance matrices, and nearest road snapping.

Documentation

osrm-global-road-routing-mcp

Global road network routing server over Model Context Protocol (MCP) powered by OpenStreetMap OSRM. Dispatch teams, logistics planners, and geospatial engineers can calculate driving routes, compute NxN fleet distance matrices, snap GPS points to roads, and check walking or cycling times with zero API keys and zero sign-up. It responds fast.

Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

https://osrm-global-road-routing-mcp.lipmichal.workers.dev/mcp

Available tools

ToolPurpose
get_osrm_driving_routeCompute global road driving distance and travel time between two latitude and longitude points
find_osrm_nearest_roadsSnap GPS coordinates to the nearest OpenStreetMap road segments with street names and snap distance
compute_osrm_distance_matrixCompute an NxN driving travel-time and distance matrix across up to 10 fleet stops
get_osrm_walking_routeCompute an OSRM pedestrian route distance and duration between two coordinates
get_osrm_cycling_routeCompute an OSRM bicycle route distance and duration between two coordinates

Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

{
  "mcpServers": {
    "osrm-global-road-routing": {
      "url": "https://osrm-global-road-routing-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

npm install
npm run build
npm start

Compliance and reliability

Every upstream request queries router.project-osrm.org/ with a polite User-Agent header (mcpstamp-osrm-global-road-routing/1.0.1 (hello@mcpstamp.com)) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.

More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.