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.
Example workflow
- Input
Get your API key
API key · route scope - Processing
Add the server to your MCP client
MCP · route - 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_addressAddress or place name → coordinates
reverse_geocodeCoordinates → nearest address
autocomplete_addressPartial text → ranked address suggestions
get_routeDriving, cycling or walking route with distance & time
distance_matrixTravel time & distance between every pair of points
get_isochroneReachable area within a time budget
optimize_routeMulti-stop, multi-vehicle route optimization
get_timezoneTimezone & UTC offset for a coordinate
natural_searchFind places using a short English query.
suggest_addressesBuild place search with suggestions and a secure retrieval step.
retrieve_placeRead source attributes from a retrieved suggestion or route search.
place_detailsRead source attributes from a retrieved suggestion or route search.
list_stylesManage map styles, datasets and publication from your application.
list_datasetsFind nearby features in your own uploaded geographic datasets.
preview_styleDescribe palette and layer changes, review the map, then apply.
Configure an MCP client
Get your API key
Create a key in your OSRMRoute dashboard and confirm that its plan permits the operations you need.
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.
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.