Routekit MCP Server

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

Local serverstdioPython

What is the Routekit MCP server?

Route optimization API for Brazil. Routes, distance matrices, and VRP solver. The routekit mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 14 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • 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
  • 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
  • geocode — - Convert a Brazilian address or place name to latitude/longitude. Restricted to Brazil, in-house geocoder with no third-party dependency. Built-in
  • 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
  • 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
  • optimize_routes — - Advanced VRP solver:
  • Constraints — time windows (multiple per task), skills, multi-dimensional capacity, breaks, priorities
  • Per — vehicle costs (fixed, per_hour, per_km, per_task_hour), max_tasks, max_travel_time_min, max_distance_km

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at routekit-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Configuration

You will need 2 environment variables: ROUTEKIT_API_KEY, YOUR_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

Plenty of planning and project tracking servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Routekit's toolset — calculate_route, distance_matrix, snap_to_road and 11 more — is a fair guide to whether it matches your workflow. It is maintained by luisbretasjr; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Routekit.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the routekit mcp server does with a few real requests.

Available tools

ToolWhat it does
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 t
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:
Constraintstime windows (multiple per task), skills, multi-dimensional capacity, breaks, priorities
Pervehicle costs (fixed, per_hour, per_km, per_task_hour), max_tasks, max_travel_time_min, max_distance_km
balance_modeminimize_vehicles (default), balance_tasks, or minimize_distance
Mixedprofile fleets (car / bike / foot) with per-vehicle profile

How to install the Routekit MCP server

### Direct HTTP (no install needed)

```json
{
  "mcpServers": {
    "routekit": {
      "type": "url",
      "url": "https://routekit.nexterait.com.br/mcp",
      "headers": {
        "X-API-Key": "YOUR_KEY"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
ROUTEKIT_API_KEYCredential the server authenticates with.Yes
YOUR_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Routekit to calculate route.
  • Use Routekit to distance matrix.
  • Use Routekit to snap to road.

Frequently asked questions

It connects Routekit to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (calculate_route, distance_matrix, snap_to_road, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Routekit directly.