Repository navigation
JustRouting MCP v0.2.1
The optimize tool now covers the complete Fleet Optimization API — shipments, capacity, skills, time windows, priorities, breaks, vehicle costs and limits, custom matrices, and route geometry — and the server is built on the upgraded Go client with full REST parameter coverage.
What's new
optimize — full Fleet Optimization API coverage
The optimize tool now supports every parameter of the Fleet Optimization API:
- Shipments — pickup-and-delivery pairs served in order by the same vehicle, alongside regular jobs
- Amounts and capacity — multi-dimensional
capacity,delivery,pickup, andamountvectors (e.g. weight and pallets); mismatched vector lengths are caught before the request is sent - Skills — integer capability tags: a task is only served by a vehicle that has all of its skills
- Time windows — per-task and per-vehicle service windows, with early arrivals waiting automatically
- Priorities — 0–100 ranking for deciding which tasks are kept when not everything fits
- Breaks — vehicle rest periods with their own time windows, durations, and load limits
- Vehicle costs and limits — fixed and per-hour/per-km costs, speed factors, max tasks, max travel time, and max distance
- Per-type setup and service times — vehicle types with per-type overrides for setup and service durations
- Custom matrices — supply your own travel-time, distance, and cost matrices per profile, with index-based locations
- Warm-start vehicle steps — pre-seed the search with a custom route
- Route geometry —
options.greturns an encoded polyline and distances for drawing routes on a map
The result is also richer:
- Total
deliveryandpickupsums in the summary and per route - Per-stop
id,load, andlocation_indexfields - Vehicle
descriptionand routegeometry violationsfields for API completeness
Validation is friendlier too: priorities out of range, reversed time windows, mismatched amount lengths, and duplicate ids are all rejected locally with messages that point at the exact field, before a request is spent.
Platform
- Built on
github.com/justrouting/go-clientv0.3.2, which models every parameter documented for the Routes, Matrix, Map Matching, Trip, Nearest, Geocode, and Fleet Optimization REST endpoints - The optimize section of the README has been rewritten with a richer example and new sections for amounts, skills, time windows, priority, shipments, breaks, custom matrices, and route geometry
What's included
Tools
geocode— structured place and address search, returning coordinates ready to pass to other routing toolsroute— calculate a route between two locations with distance, travel time, geometry, and road informationtable— compare travel times and distances across multiple origins and destinationsoptimize— assign jobs and shipments to vehicles and determine the order of stops, with capacity, skills, time windows, priorities, breaks, custom matrices, and route geometry
AI-native tool design
Tool descriptions have been significantly improved to help AI assistants select and use the right tool automatically.
- Clear boundaries between
route,table, andoptimize - Explicit guidance for chaining
geocodewith routing tools - Better descriptions of inputs, outputs, and matrix semantics
- Improved handling of unreachable routes
- Explicit guidance for checking
unassignedjobs in optimization results - More precise instructions for motorcycle routing and road avoidance
The tools are designed around three simple tasks:
- geocode — address to coordinate
- route — calculate route
- table — compare route's distance and duration
- optimize — decide
Routing
- Driving profile by default
- Support Motorcycle profile
- Per-vehicle profiles in
optimize - Road avoidance with
toll,motorway, andferry - Route geometry and road information in
route
Geocoding
- Structured search by name, address, street, postcode, city, and country
- Country and city context for better disambiguation
- Configurable result limit
- Optional filters
- Relevance-ranked results
- Coordinates returned directly in
longitude,latitudeformat for routing tools
Platform
- MCP stdio transport
- Built on the official JustRouting Go client (v0.3.2) and MCP Go SDK
- Prebuilt binaries for supported platforms
- One-line installer
- GitHub Actions CI
- Updated MCP documentation for Claude and Cursor
Agent workflows
The optimization workflows now cover richer problems:
Place name → geocode → route
Multiple places → geocode → table
Fleet + jobs → geocode → optimize
Pickups and deliveries → geocode → optimize (shipments)
This makes it possible for AI assistants to handle tasks such as:
- assigning deliveries to vehicles with weight, volume, and time constraints
- pairing pickups with deliveries that one vehicle must serve in order
- scheduling fleets around vehicle working hours, breaks, and capacity
- keeping high-priority tasks when not everything fits
- drawing optimized routes on a map with
options.g
Install
Install the latest version with:
curl -fsSL https://raw.githubusercontent.com/justrouting/mcp/main/install.sh | shNo Go installation is required.
To install this version explicitly:
curl -fsSL https://raw.githubusercontent.com/justrouting/mcp/main/install.sh | JUSTROUTING_MCP_VERSION=v0.2.1 shGo users can also install from source:
go install github.com/justrouting/mcp/cmd/justrouting-mcp@v0.2.1Get a free JustRouting API key from https://justrouting.tech/ and add the server to your MCP client configuration.
See the README for Claude and Cursor configuration examples.
Documentation
The README's optimize section has been expanded to cover:
- Amounts and capacity
- Skills and priorities
- Time windows
- Shipments
- Breaks
- Custom matrices
- Route geometry
See the MCP documentation for the complete guide.
Notes
This release completes the Fleet Optimization tool. Future work includes exposing the advanced parameters of route and table (waypoints, bearings, snapping options) through the MCP tools, plus streamable HTTP and remote MCP deployment.