# routekit [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/luisbretasjr/routekit-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 244  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/routekit

## Description
Route optimization API for Brazil. Routes, distance matrices, and VRP solver.

## Tools
Capabilities this server exposes over MCP:

- **calculate_route** — - Driving route between points with real road distances and ETAs. Supports waypoints, encoded polyline geometry, turn-by-turn steps, and up to 3 alternative routes.
- **distance_matrix** — - NxN distance/duration matrix between up to 5000 locations (transparently chunked for large sets, cached for repeated queries).
- **snap_to_road** — - Snap a raw GPS coordinate to the nearest road segment. Returns the snapped point, distance from the original, and road name.
- **isochrone** — - Area reachable from a point within N minutes by car. Returns a GeoJSON Polygon useful for coverage analysis, depot placement, and service area definition.
- **geocode** — - Convert a Brazilian address or place name to latitude/longitude. Restricted to Brazil, in-house geocoder with no third-party dependency. Built-in fuzzy fallback handles abbreviations ("Av" -> "Avenida"), accents, and token drops.
- **geocode_batch** — - Geocode up to 50 addresses in a single call with parallel execution. Perfect for delivery manifests or client lists.
- **reverse_geocode** — - Convert lat/lon to a human-readable Brazilian address with components (road, neighborhood, city, state, postcode).
- **compare_routes** — - Run `optimize_routes` under multiple balance strategies (minimize_vehicles, balance_tasks, minimize_distance) and return a side-by-side comparison with winners per metric.
- **validate_eta** — - Simulate a pre-defined route in Python and return the real arrival times plus any constraint violations. Use when you already have a fixed order of stops and just need the ETAs.
- **optimize_routes** — - Advanced VRP solver:
- **balance_mode** — `minimize_vehicles` (default), `balance_tasks`, or `minimize_distance`
- **matrix_overrides** — user-provided per-pair travel time / distance overrides (for toll routes, restricted zones, known detours)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "routekit": {
    "command": "npx",
    "args": ["-y","routekit-mcp"],
    "env": {
      "ROUTEKIT_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `ROUTEKIT_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the routekit MCP server does

The routekit MCP server exposes ten location and fleet-planning tools for Brazil. It can turn Brazilian addresses into coordinates, convert coordinates back into structured addresses, clean noisy GPS points by matching them to roads, and calculate driving routes with distances, ETAs, geometry, steps, and alternatives.

For planning work, the server provides distance and duration matrices, reachable-area polygons, fixed-order ETA validation, and route-strategy comparison. Its main optimization tool handles tasks and paired pickup-and-delivery shipments. It can account for time windows, skills, capacities, breaks, priorities, vehicle costs, route limits, service times, vehicle types, open-route destinations, and mixed car, bike, and foot fleets.

The routekit MCP server is best suited to applications that need Brazilian address handling or road-aware logistics decisions rather than simple straight-line distance calculations.

## How it works

A client sends tool calls through MCP. The local option starts the package with npx and passes the API key as an environment variable. The remote option points an MCP client at the hosted `/mcp` URL and sends the key in the `X-API-Key` header. The same service also exposes each tool as an HTTP POST endpoint under `/v1/<tool_name>`.

Routing operations use road distances and travel times. `distance_matrix` accepts up to 5,000 locations and divides larger requests into subqueries; repeated matrix requests can use the local cache. The optimizer accepts up to 500 tasks, 250 shipments, and 100 vehicles in one request. It can return encoded route polylines and reports route-level and step-level constraint violations when limits cannot be met.

Geocoding is limited to Brazil and uses an in-house geocoder. Fuzzy matching can expand abbreviations, normalize accents, and drop tokens when an exact lookup fails. Batch geocoding handles up to 50 addresses per call.

## Setup and configuration

Install the local server with:

```bash
npx routekit-mcp
```

Configure the MCP client to launch `npx -y routekit-mcp` and provide `ROUTEKIT_API_KEY`. For direct HTTP, configure the URL `https://routekit.nexterait.com.br/mcp` and include `X-API-Key`.

An API key is available through the provider’s signup page. The free tier allows 50 calls per month; paid tiers listed in the source are Starter at 1,000 calls per month and Professional at 10,000 calls per month.

## Tools and capabilities

- `calculate_route`: driving routes, waypoints, alternatives, encoded geometry, and turn-by-turn steps.
- `distance_matrix`: pairwise travel distances and durations for large location sets.
- `geocode`, `geocode_batch`, and `reverse_geocode`: Brazilian address conversion in both directions.
- `snap_to_road`: nearest road matching with offset distance and road name.
- `isochrone`: GeoJSON area reachable by car within a specified time.
- `optimize_routes`: constrained VRP planning for tasks, shipments, and heterogeneous fleets.
- `compare_routes`: compares vehicle, distance, and travel-time outcomes across balance strategies.
- `validate_eta`: calculates arrival times for a supplied stop order without re-optimizing.

The routekit MCP server also supports matrix overrides for known detours, toll routes, restricted areas, or other user-supplied pairwise values.

## Limitations and notes

All geocoding capabilities are restricted to Brazil. The optimizer’s documented request limits are 500 tasks, 250 shipments, and 100 vehicles. `geocode_batch` accepts no more than 50 addresses per call. API usage is metered by the provider and subject to the selected monthly tier. A client or integration that does not speak MCP can use the REST endpoints instead, with the same API-key authentication and metering.

_Full upstream README: https://allmcps.com/mcp/routekit/readme_

