MappyBot MCP server: tools, auth and endpoint
MappyBot is a remote MCP server for route planning on Google’s Route Optimization API: single-driver routes on every plan, and multi-vehicle routes on Fleet and Enterprise.
Endpoint
https://api.mappybot.com/mcpTransport: Streamable HTTP (POST). Public initialize and tools/list requests support discovery without credentials. Tool execution requires authentication; an unauthenticated tool call returns 401 with a WWW-Authenticate: Bearer challenge.
Authentication
Bearer token
Create a token on the account page and send it as Authorization: Bearer mappy_…. Tokens carry the scopes capabilities:read, routes:read and routes:write, last 30 days and can be revoked on the account page. Claude Code setup.
OAuth 2.1
The server is an OAuth 2.1 authorization server following the MCP authorization specification: protected resource metadata (RFC 9728) at https://api.mappybot.com/.well-known/oauth-protected-resource, authorization server metadata (RFC 8414) at https://api.mappybot.com/.well-known/oauth-authorization-server, dynamic client registration (RFC 7591), PKCE with S256 and resource indicators (RFC 8707). The issuer is https://api.mappybot.com and the resource is https://api.mappybot.com/mcp. Scopes are the same as for tokens. App sign-in is being tested with Claude and ChatGPT; see connection status.
Tools
| Tool | Scope | Description |
|---|---|---|
get_capabilities | capabilities:read | Read plan limits, stop usage and current service availability. |
preview_route | routes:write | Validate and geocode every stop, driver start and driver end before planning. Reports address failures with details and unit-suffix fallbacks. Does not optimize or consume stop allowance. Set lockedLast to a job ID to force it last on a single-driver route, before the driver end. |
preview_route_change | routes:write | Prepare adding a stop to one saved vehicle route. The backend selects the bounded operation; does not execute the change or charge usage. |
plan_route | routes:write | Optimizes single-vehicle and multi-vehicle routes from a preview. Queued, running and successful plans are cached. An explicit retry of a failed or result-expired/canceled plan creates a new plan ID after settlement if the preview is still valid. Reuse the preview ID on retries; read the returned plan ID until it succeeds or fails. Optimized results include attribution "Google Maps"; show it with any times, order or links from the result, and do not display them on a non-Google map. Completed routes also include appleMaps parts labeled Open in Apple Maps and adjacent-stop legs, separately for each truck. Show full-route googleMaps.parts first, then appleMaps.parts, then numbered stops with arrival times, including the depot return. Place "Route optimized with Google Maps" with route links. Per-stop links are optional extras; always expose legs for older devices or clients ignoring waypoints. |
get_route_plan | routes:read | Read a saved plan in the connected account. Optimized results include attribution "Google Maps"; show it with any times, order or links from the result, and do not display them on a non-Google map. Completed routes also include appleMaps parts labeled Open in Apple Maps and adjacent-stop legs, separately for each truck. Show full-route googleMaps.parts first, then appleMaps.parts, then numbered stops with arrival times, including the depot return. Place "Route optimized with Google Maps" with route links. Per-stop links are optional extras; always expose legs for older devices or clients ignoring waypoints. Optimized results are removed 30 days after planning (resultExpiresAt); plan the route again to refresh them. |
get_assistant_skill | None (any signed-in connection) | Retrieve the published MappyBot skill (SKILL.md) through this MCP connection. Pass your cached knownVersion; the instructions are returned only when they changed. Apply an update between tasks and keep user preferences. Read-only; returns the skill version, whether an update is available and the skill and manifest URLs. |
Typical flow
get_capabilities: read limits and whether optimization is available.preview_route: validate the service date, time zone, jobs, service minutes, arrival windows and the driver’s shift and addresses.plan_routewith the preview ID. Reuse the same preview ID when retrying.get_route_plan: poll the plan ID with increasing delays, starting at about five seconds, until it succeeds or fails. Report every unassigned job.
Limits
- Personal: 10 stops per route (single-driver request), 150 stops per month
- Business: 50 stops per route (single-driver request), 750 stops per month
- Fleet: 100 stops per route (single-driver request), 300 total stops per fleet request, 1,000 stops per month
- Enterprise: 100 stops per route (single-driver request), 300 total stops per fleet request, 5,000 stops per month
- Fleet and Enterprise support multi-vehicle planning.
preview_route_changeprepares adding a stop to a saved route; executing route changes is not available yet.
Fictional example
Not executed: preview DEMO-A at [full customer address], 30 service minutes, November 17, 2026, America/New_York, with one driver working 08:00–16:00 and starting and ending at [full depot address]. Replace placeholders and resolve missing fields before authorizing planning.
Result fields include plan ID, status, ordered jobs, arrival times, per-stop navigation links and unassigned jobs. Pending or failed plans are not finished routes.
Route navigation
Show each truck’s full-route googleMaps.parts links first, then appleMaps.parts links, then numbered stops with arrival times. Per-stop links are optional extras. Place “Route optimized with Google Maps” with the route links. Google parts have at most 9 waypoints (11 locations); some mobile browsers support only 3. Parts chain through their shared boundary without omitting stops. Only consecutive case/whitespace-insensitive duplicate navigation locations are collapsed; result stops remain intact.
Completed results add result.routes[].appleMaps beside existing Google links. Each truck has one “Open in Apple Maps” link, or numbered parts for longer routes, plus “Leg n: A → B” fallback links. Open parts in order, or use every leg on older devices and clients that ignore waypoints. Starts, optimized visits and the final destination, including depot returns, stay in order.
Unified URLs require iOS 18.4+, macOS 15.4+ or watchOS 11.4+. Web waypoint support and device handoff remain unverified. Parts overlap by one location and contain at most 14 total locations; this is a conservative product cap, not an Apple URL limit. Encoded URLs also split at a 2,000-character budget. Apple calculates navigation separately: time windows, service durations, dispatch constraints, geometry and ETAs do not transfer. Device validation is required before release.
Errors and stop usage
Check expired or revoked credentials after authentication failures. Correct rejected preview inputs. If optimization is unavailable, stop rather than resubmitting. Named address-error details depend on the deployed backend; report only information actually returned. New routes and full replans count every submitted stop. Reads and previews use no stops; failed plans release their reservations.
Attribution
Optimized results carry the attribution Google Maps, and MCP responses add the line “Route optimized with Google Maps”. Show it with any times, stop order or links from a result, and do not display results on a non-Google map. Google-derived results are removed 30 days after planning; plan the route again to refresh them.