Osrm logo

Osrm

Routes, builds distance matrices, matches GPS traces, and solves trips through OSRM without authentication.

Install Osrm

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

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

Automated check passed— started and listed 5 tools correctly ().

Overview

Osrm MCP server exposes OSRM routing capabilities through MCP, including routes, distance matrices, nearest-road lookup, map matching, and trip optimization. It uses the public OSRM demo server by default and supports car, bike, and foot profiles. Connect through the Pipeworx gateway or run the package locally over stdio. Use it for route and geospatial tasks when public-demo fair-use limits are acceptable.

Use cases

  • Calculate driving, cycling, or walking routes between waypoints
  • Build distance and duration matrices for locations
  • Snap coordinates or GPS traces to the road network
  • Optimize the order of stops in a multi-location trip

Key features

  • Route calculation with car, bike, and foot profiles
  • Distance and duration matrices
  • Nearest-road lookup
  • GPS trace map matching
  • TSP-style trip ordering
  • Hosted gateway and standalone stdio modes

Tools5

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

Verified live~817 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.

16/16 checks healthy over the last 83d

What it can do

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

Makes network requests · 5Read-only tools · 5
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age194 days
Maintainers1

Observed 2026-11-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 1d ago via OSV.dev · @pipeworx/mcp-osrm (npm)

Adoption & maintenance

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

npm downloads977Package downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Osrm works

What the Osrm MCP server does

The Osrm MCP server gives MCP clients access to selected OSRM routing operations. It can calculate the fastest route between waypoints, create a distance and duration matrix, find the closest road to a coordinate, match noisy GPS points to the road network, and arrange stops for a TSP-style trip.

The available profiles are car, bike, and foot, with car used by default. Route-related options can control items such as geometry detail, alternatives, turn-by-turn steps, annotations, source and destination selection, and search radiuses, depending on the tool.

How it works

The hosted configuration sends requests through the Pipeworx gateway, with the public OSRM demo server at https://router.project-osrm.org/ as the data source. An MCP client can connect to the scoped endpoint at https://gateway.pipeworx.io/osrm/mcp, or to the full Pipeworx gateway at https://gateway.pipeworx.io/mcp.

The scoped gateway endpoint lists the OSRM tools together with shared Pipeworx meta-tools. Those shared tools can route broader questions through the gateway, while the local package exposes only the OSRM tool set. The gateway also provides HTTP access to individual operations, such as osrm_route, for clients that do not support MCP.

Setup and configuration

For a hosted connection, add the gateway URL to an MCP client configuration. The README names Claude Desktop, Cursor, and Windsurf as examples. No authentication is required for the initial calls described by the project.

For a standalone setup, run npx -y @pipeworx/mcp-osrm as an MCP stdio process, or configure that command and package in the client. This mode does not require a Pipeworx account and communicates over standard input and output. It also avoids the gateway's shared meta-tools and gateway round-trip.

The Osrm MCP server does not document required environment variables.

Tools and capabilities

  • route: calculates a route between supplied coordinates.
  • table: returns distance and duration values between coordinate sources and destinations.
  • nearest: locates the closest road-network position for a point.
  • match: map-matches a sequence of potentially inaccurate GPS coordinates.
  • trip: solves a trip-ordering problem for multiple coordinates.

The tools accept coordinate data and optional routing parameters. The HTTP gateway example passes coordinates as a semicolon-separated string containing longitude and latitude pairs.

Limitations and notes

The default data source is a public OSRM demo service and is intended for fair use. The project recommends running an OSRM instance of your own for production load. The hosted gateway and standalone package expose the same routing tools, but they differ in transport and in whether Pipeworx-wide meta-tools are included.

The Osrm MCP server is focused on routing data. The exact tool count on the scoped gateway can change because its initialization response defines the current set of shared tools.

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 Osrm

Osrm is an MCP server that connects AI clients to the public OSRM demo routing service. Its main tools calculate routes, build distance matrices, find the nearest road, map-match GPS traces, and solve TSP-style trips. It supports car, bike, and foot profiles and requires no authentication for the documented hosted setup.

Install it by running `npx -y @pipeworx/mcp-osrm` as a local MCP stdio server, or add that command to an MCP client configuration. The standalone mode needs no Pipeworx account. You can instead configure the hosted endpoint at `https://gateway.pipeworx.io/osrm/mcp`.

Yes, Osrm works with Cursor through the documented MCP gateway configuration. Add `https://gateway.pipeworx.io/osrm/mcp` as the server URL, or configure the standalone `npx` command. The hosted endpoint also includes shared Pipeworx meta-tools alongside the routing tools.

Use your own OSRM instance for production load. The default configuration sends requests to the public OSRM demo server, which is intended for fair use. The material does not provide deployment instructions or the setting used to switch the server to a custom OSRM host.

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