Directions Tool
directions_toolFetches directions from Mapbox API based on provided coordinates and direction method.
How it works ↓Pricing
Per call
$0.01
Model
flat
Pay only for what you use. No subscriptions.
Inputs
max_width
numberdepart_at
stringmax_weight
numberrouting_profile
stringgeometries
stringcoordinates *
arrayalternatives
booleanmax_height
numberarrive_by
stringexclude
stringInput Parameters
Cost per run
Execution cost$0.01
About Directions Tool
Fetches directions from Mapbox API based on provided coordinates and direction method.
Frequently Asked Questions
Fetches directions from Mapbox API based on provided coordinates and direction method.
Directions Tool costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Mapbox MCP endpoint to your client — Claude Code: claude mcp add --transport http mapbox "https://mapbox.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see directions_tool as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath mapbox/directions_tool.)
Yes — that's exactly what xpay is for. You don't need a Mapbox account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Directions Tool immediately. Billing flows through your xpay balance.
Directions Tool accepts 10 input parameters: max_width, depart_at, max_weight, routing_profile, geometries, coordinates…. See the input schema and runnable form on this page for details and to test live.

