osrmroute
Products

MCP · AI Agents

Location tools for compatible MCP clients

Connect a compatible Model Context Protocol client to the OSRMRoute tools enabled for your API key. Available operations and limits follow your plan and the server version.

Agent workflow

Example workflow

  1. Input

    Get your API key

    API key · route scope
  2. Processing

    Add the server to your MCP client

    MCP · route
  3. Result

    Ask your agent

    GeoJSON LineString

Selected OSRMRoute tools through MCP

The Model Context Protocol lets a compatible client call external tools. The OSRMRoute MCP server exposes selected routing, geocoding and optimization operations using your API key; review the tool list and request limits before use.

Available tool operations

Each call uses your OSRMRoute API key and its applicable service access and limits.

geocode_address

Address or place name → coordinates

reverse_geocode

Coordinates → nearest address

autocomplete_address

Partial text → ranked address suggestions

get_route

Driving, cycling or walking route with distance & time

distance_matrix

Travel time & distance between every pair of points

get_isochrone

Reachable area within a time budget

optimize_route

Multi-stop, multi-vehicle route optimization

get_timezone

Timezone & UTC offset for a coordinate

natural_search

Find places using a short English query.

suggest_addresses

Build place search with suggestions and a secure retrieval step.

retrieve_place

Read source attributes from a retrieved suggestion or route search.

place_details

Read source attributes from a retrieved suggestion or route search.

list_styles

Manage map styles, datasets and publication from your application.

list_datasets

Find nearby features in your own uploaded geographic datasets.

preview_style

Describe palette and layer changes, review the map, then apply.

Configure an MCP client

1

Get your API key

Create a key in your OSRMRoute dashboard and confirm that its plan permits the operations you need.

2

Add the server to your MCP client

Add the documented server configuration to a compatible MCP client, then restart or reload that client as its documentation requires.

3

Ask your agent

Ask the client to run an available location operation, then inspect the returned input, output and any coverage limitation before using it in a workflow.

{
  "mcpServers": {
    "osrmroute": {
      "command": "npx",
      "args": ["-y", "https://osrmroute.com/downloads/osrmroute-mcp-1.1.2.tgz"],
      "env": { "OSRMROUTE_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Why OSRMRoute for agents

Worldwide coverage

Driving, walking and cycling routes and address search worldwide. Routes require mapped, connected roads or paths that allow the selected travel mode. Detailed local data varies by service.

Compare your workload

A matrix costs 0.4 credits per cell, rounded up, with a minimum of 1. A 10 × 10 matrix costs 40 credits. Your allowance is used first, then purchased credits.

MCP integration

Use one configuration for the OSRMRoute tools your plan enables. Unsupported operations and unavailable coverage remain explicit in the response.

Questions

Which MCP clients are supported?

Use a client that supports the documented transport and configuration. Claude Desktop, Cursor and Cline are examples; verify the current client and server compatibility before rollout.

How is it billed?

Tool calls use your normal OSRMRoute API key and count against your plan, exactly like direct API requests. No separate MCP fee.

Evaluate MCP tools with representative requests

Configure a compatible client, use a scoped API key and test the returned data and limits before production use.

Integration and migrationAPI credit ratesSandboxMeasured evidence

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.