directions

Pack: openrouteservice · Endpoint: https://gateway.pipeworx.io/openrouteservice/mcp

“Directions from A to B” / “how far is [X] from [Y]” / “hiking / cycling / wheelchair / walking route” / “truck routing” / “HGV directions” / “driving route” — turn-by-turn routing between coordinates with profile-specific routing. Profiles: driving-car, driving-hgv (trucks), foot-walking, foot-hiking, cycling-regular / mountain / road / electric, wheelchair. Returns geometry, distance, duration, turn-by-turn instructions, elevation. Uses OpenStreetMap data via OpenRouteService. Use for hiking/biking/wheelchair/truck cases where Mapbox/Google don’t have the right profile.

Parameters

NameTypeRequiredDescription
coordinatesarrayyes[[lon, lat], …]
itemsarrayno
itemsnumberno
profilestringno
formatstringnojson (default) | geojson | gpx
instructionsbooleanno

Example call

Arguments

{
  "coordinates": [
    [
      8.681495,
      49.41461
    ],
    [
      8.687872,
      49.420318
    ]
  ],
  "profile": "driving-car",
  "instructions": true
}

curl

curl -X POST https://gateway.pipeworx.io/openrouteservice/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"directions","arguments":{"coordinates":[[8.681495,49.41461],[8.687872,49.420318]],"profile":"driving-car","instructions":true}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('directions', {
  "coordinates": [
    [
      8.681495,
      49.41461
    ],
    [
      8.687872,
      49.420318
    ]
  ],
  "profile": "driving-car",
  "instructions": true
});

More examples

{
  "coordinates": [
    [
      2.352222,
      48.856613
    ],
    [
      2.349902,
      48.853393
    ]
  ],
  "format": "geojson"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Routing response from OpenRouteService"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "openrouteservice": {
      "url": "https://gateway.pipeworx.io/openrouteservice/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026