OSRM Routing
liveTransportGeographyOpen Source Routing Machine — routing, distance matrix, snap-to-road, map-matching, TSP. Keyless via demo server.
5tools
0msauth
free tier50 calls/day
Tools
routerequired: coordinatesFastest route between waypoints.
Parameters
NameTypeDescription
coordinatesreqstringSemicolon-separated lon,lat pairsprofileoptstringcar | bike | footoverviewoptstringsimplified | full | falsealternativesoptboolean—stepsoptboolean—annotationsoptstring—Try it
Response
tablerequired: coordinatesDistance/duration matrix.
Parameters
NameTypeDescription
coordinatesreqstring—profileoptstring—sourcesoptstring—destinationsoptstring—annotationsoptstring—Try it
Response
nearestrequired: longitude, latitudeSnap to road network.
Parameters
NameTypeDescription
longitudereqnumber—latitudereqnumber—profileoptstring—numberoptnumber—Try it
Response
matchrequired: coordinatesMap-match a noisy GPS trace.
Parameters
NameTypeDescription
coordinatesreqstring—profileoptstring—radiusesoptstring—Try it
Response
triprequired: coordinatesTSP-like trip solver.
Parameters
NameTypeDescription
coordinatesreqstring—profileoptstring—roundtripoptboolean—sourceoptstring—destinationoptstring—Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/osrm/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/osrm/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"route","arguments":{"coordinates": "example"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("route", {"coordinates":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("open source routing machine — routing, distance matrix, snap-to-road, map-matching, tsp");