table
Pack: osrm · Endpoint: https://gateway.pipeworx.io/osrm/mcp
Distance / duration matrix between source and destination points.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
coordinates | string | yes | Semicolon-separated lon,lat pairs |
profile | string | no | car | bike | foot (default car) |
sources | string | no | Indices into coordinates that are origins (default all) |
destinations | string | no | Indices into coordinates that are destinations (default all) |
annotations | string | no | duration (default) | distance | duration,distance |
Example call
Arguments
{
"coordinates": "-122.42,37.77;-122.39,37.78;-122.41,37.80"
}
curl
curl -X POST https://gateway.pipeworx.io/osrm/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"table","arguments":{"coordinates":"-122.42,37.77;-122.39,37.78;-122.41,37.80"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('table', {
"coordinates": "-122.42,37.77;-122.39,37.78;-122.41,37.80"
});
More examples
{
"coordinates": "-122.42,37.77;-122.39,37.78;-122.41,37.80",
"profile": "foot",
"sources": "0",
"destinations": "1;2",
"annotations": "distance"
}
Response shape
| Field | Type | Description |
|---|---|---|
code | string | Status code (Ok or error) |
durations | array | Matrix of durations in seconds |
distances | array | Matrix of distances in meters (if requested) |
sources | array | Array of source waypoint objects |
destinations | array | Array of destination waypoint objects |
Full JSON Schema
{
"type": "object",
"description": "Distance/duration matrix response from OSRM",
"properties": {
"code": {
"type": "string",
"description": "Status code (Ok or error)"
},
"durations": {
"type": "array",
"description": "Matrix of durations in seconds",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
},
"distances": {
"type": "array",
"description": "Matrix of distances in meters (if requested)",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
},
"sources": {
"type": "array",
"description": "Array of source waypoint objects",
"items": {
"type": "object",
"properties": {
"hint": {
"type": "string"
},
"distance": {
"type": "number"
},
"name": {
"type": "string"
},
"location": {
"type": "array"
}
}
}
},
"destinations": {
"type": "array",
"description": "Array of destination waypoint objects",
"items": {
"type": "object",
"properties": {
"hint": {
"type": "string"
},
"distance": {
"type": "number"
},
"name": {
"type": "string"
},
"location": {
"type": "array"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"osrm": {
"url": "https://gateway.pipeworx.io/osrm/mcp"
}
}
}
See Getting Started for client-specific install steps.