# Osrm [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-osrm  
**GitHub Stars:** 0  
**npm Downloads (last month):** 977  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/osrm

## Description
OSRM MCP — routing via the public demo server

## Tools
Capabilities this server exposes over MCP:

- **osrm_route** — Compute the fastest route between two or more waypoints.
- **table** — Distance / duration matrix between source and destination points.
- **nearest** — Snap a single point to the nearest road segment.
- **osrm_match** — Map-match a noisy GPS trace (semicolon-separated lon,lat pairs) to the road network via OSRM, optionally specifying per-point search radiuses in meters; returns matched route geometry and confidence.
- **trip** — Solve a TSP-like trip between multiple waypoints.

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

```json
"mcpServers": {
  "osrm": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-osrm"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/osrm/readme_

