JustRouting MCP
JustRouting MCP lets AI assistants such as Claude and Cursor use JustRouting for road routing, geocoding, distance and travel-time comparison, and multi-vehicle route optimization. Designed for Southeast Asia.What you can do
The tools are designed around three simple tasks:
- route — calculate
- table — compare
- optimize — decide
Installation
One-line installer
On macOS or Linux:justrouting-mcp.
To install a specific version:
From source
If you have Go installed:justrouting-mcp is available in your PATH.
Prebuilt binaries for supported platforms are also available from GitHub Releases.
Configuration
The server reads the JustRouting API key from theJUSTROUTING_API_KEY environment variable:
Which tool should I use?
Use the simplest tool that matches the user’s task:
A simple rule:
- One route →
route - Many routes to compare →
table - Many jobs to assign and order →
optimize - Place name or address →
geocodefirst
Tools
Geocode
Convert a place name or address into coordinates.
Route
Calculate one route between two locations.
Table
Compare travel times or distances between multiple locations.
Optimize
Assign jobs to vehicles and order their stops.
Agent workflows
JustRouting MCP is designed so that AI assistants can combine the tools into larger workflows.Route between two places
For:How long does it take to drive from Marina Bay Sands to Changi Airport?Use:
- Geocode the origin.
- Geocode the destination.
- Verify the selected results match the intended places.
- Pass their
coordinatesvalues toroute.
Find the nearest driver
For:Which driver is closest to this customer?Use:
- Geocode the customer.
- Geocode each driver.
- Keep the locations in a fixed order.
- Put the customer in
sources. - Put the drivers in
destinations. - Compare the corresponding distance or duration values.
- Ignore unreachable
nullvalues.
Plan multiple vehicles
For:I have two vans and six customers. Assign the customers to the vans and determine the stop order.Use:
- Geocode each vehicle’s start/end location.
- Geocode every job location.
- Create one vehicle entry per vehicle.
- Create one job entry per customer.
- Call
optimize. - Read
routes[].stepsto determine each vehicle’s itinerary. - Check
unassignedfor jobs that could not be served.
Coordinate format
All routing tools use:Claude
Claude Code
Add JustRouting MCP with:Claude Desktop
Add the server toclaude_desktop_config.json:
