Route4Me MCP server for AI agents

Live

API KEY

ROUTE PLANNING

Automation

Route4Me gives your agent route planning in your Route4Me account: create and optimize routes, add and update stops, manage orders, territories, avoidance zones, and address book locations, and track drivers.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Route4Me
agent · Acme Q3
Run
Optimize tomorrow's 12 delivery stops starting from the main depot.
S
route4me_optimization_create
1450ms
Dispatch agent
I optimized the 12 stops into one route of 86 km with an estimated drive time of 2 hours 40 minutes.
Sources: Route4Me optimization, 12 stops
route4me
12 stops
18:29
Message Claude...

Tools your dispatch agent reaches for on Route4Me, scoped per user.

CALL ANY TOOL
54 tools for route planning in Route4Me: create and optimize routes, add and update stops, mark stops visited or departed, manage orders, territories, avoidance zones, and address book locations, and read driver locations.
route4me_activities_list
List activities
List activity feed events (stops visited/departed, routes optimized, notes added, members changed, geofence events...), optionally for one route or type. Returns results (activities with activity_id, activity_type, activity_message, route_id, member and timestamp) and total. Use this to audit what happened. Use route4me_activity_log to add a message.
Parameters
Name
Type
Required
Description
activity_type
string
Optional
Only this type, e.g. mark-destination-visited, mark-destination-departed, route-optimized, note-insert, insert-destination, delete-destination, route-delete, member-created, geofence-entered, user_message. Example: mark-destination-visited.
limit
integer
Optional
Number of records to return. Example: 20.
offset
integer
Optional
Number of records to skip. Example: 0.
route_id
string
Optional
Only activities for this route. Example: 5C15E83A4BE005BCD1537955D28D51D7.
team
boolean
Optional
true for team activities on the route. Example: true.
route4me_activity_log
Log activity
route4me_avoidance_zone_create
Create avoidance zone
route4me_avoidance_zone_delete
Delete avoidance zone
route4me_avoidance_zone_get
Get avoidance zone
route4me_avoidance_zone_update
Update avoidance zone
route4me_avoidance_zones_list
List avoidance zones
route4me_geocode
Geocode
route4me_location_group_create
Create location group
route4me_location_group_get
Get location group
route4me_location_update
Update location
route4me_locations_delete
Delete locations
route4me_locations_list
List locations
route4me_optimization_address_remove
Remove optimization address
route4me_optimization_addresses_add
Add optimization addresses
route4me_optimization_get
Get optimization
route4me_order_create
Create order
route4me_order_delete
Delete order
route4me_orders_list
List orders
route4me_route_address_get
Get route address
route4me_route_address_mark_visited
Route address mark visited
route4me_route_address_update
Update route address
route4me_route_get
Get route
route4me_routes_search
Search routes
route4me_setting_delete
Delete setting
route4me_setting_set
Set setting
route4me_setting_update
Update setting
route4me_settings_list
List settings
route4me_tracking_status_get
Get tracking status
route4me_user_locations_list
List user locations

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Route4Me tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["route4me"], toolNames: [
    "route4me_optimization_create",
    "route4me_route_get",
    "route4me_route_address_mark_visited"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Optimize these 12 delivery stops, show the resulting route, and mark the first stop as visited" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["route4me"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Optimize these 12 delivery stops, show the resulting route, and mark the first stop as visited" }],
  tools,
});

// Execute the tool call with the user's vaulted Route4Me API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["route4me"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Optimize these 12 delivery stops, show the resulting route, and mark the first stop as visited" }],
  tools,
});

// Tool call runs with the user's vaulted Route4Me API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["route4me"] }, pageSize: 100,
});

const agent = new Agent({
  name: "dispatch_agent",
  model: "gemini-2.5-pro",
  instruction: "Route4Me tools scoped to this user",
  tools,
});

await agent.run("Optimize these 12 delivery stops, show the resulting route, and mark the first stop as visited");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Route4Me tool. Click to copy, paste into your agent, done.
Routes and optimizations
Copy the prompt
Copied
Optimize these 12 delivery stops into one route.
Copy the prompt
Copied
List my routes for tomorrow.
Copy the prompt
Copied
Add two stops to this route.
Stops and tracking
Copy the prompt
Copied
Mark this stop as visited.
Copy the prompt
Copied
Get the delivery status for this tracking number.
Copy the prompt
Copied
Where is each driver right now?
Orders and territories
Copy the prompt
Copied
Create an order for this delivery address.
Copy the prompt
Copied
List my territories.
Copy the prompt
Copied
Create an avoidance zone around this area.
SEE HOW AUTH WORKS
Each user connects their own Route4Me API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Route4Me
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Route4Me
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Route4Me
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Route4Me
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other automation and productivity connectors.
Support and Ops Teams
Email-to-calendar agent
Reads scheduling intent out of Gmail threads, resolves the times everyone actually has free, and creates the event on the user's own Google Calendar. No shared service account.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Test other agents
See the same per-user auth pattern across other automation and productivity connectors.
OPS
Email-to-calendar scheduling agent
Read scheduling intent out of Gmail threads, resolve mutual free time, and create the Google Calendar event.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Route4Me API key looks fine in a demo. In production every route change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Route4Me today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Route4Me as the user or through a shared key?
As the user. Each user connects their own Route4Me API key once, and Scalekit sends it with every call. Audit logs attribute every route change and stop update to that user, not a shared service account.
Where is the Route4Me API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Route4Me?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the route, order, and territory list and get tools without route4me_route_delete, which deletes routes. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Route4Me access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent change a route after it is created?
Yes, if you expose those tools. route4me_route_addresses_add adds stops to an existing route, route4me_route_address_update edits a stop, and route4me_route_update changes route parameters such as name, date, vehicle, and driver.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""route4me"": {
""url"": ""https://mcp.scalekit.com/route4me"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.route4me]
url = ""https://mcp.scalekit.com/route4me""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""route4me"": {
""url"": ""https://mcp.scalekit.com/route4me"",
""type"": ""http""
}
}
}