mapbox-mcp-server

mapbox_matrix

Calculate travel time and distance matrices between coordinates

Input Schema

NameRequiredDescriptionDefault
annotationsNoType of matrix to returnduration,distance
approachesNoApproaches to coordinates
bearingsNoBearings for coordinates
coordinatesYesArray of coordinates
depart_atNoDeparture time in ISO 8601 format
destinationsNoIndices of destination coordinates
fallback_speedNoSpeed for direct path calculation when no route exists
profileNoNavigation modedriving
sourcesNoIndices of source coordinates

Input Schema (JSON Schema)

{ "properties": { "annotations": { "default": "duration,distance", "description": "Type of matrix to return", "enum": [ "duration", "distance", "duration,distance" ], "type": "string" }, "approaches": { "description": "Approaches to coordinates", "items": { "enum": [ "unrestricted", "curb" ], "type": "string" }, "type": "array" }, "bearings": { "description": "Bearings for coordinates", "items": { "properties": { "angle": { "description": "Angle in degrees from true north", "maximum": 360, "minimum": 0, "type": "number" }, "deviation": { "description": "Allowed deviation in degrees", "maximum": 180, "minimum": 0, "type": "number" } }, "required": [ "angle", "deviation" ], "type": "object" }, "type": "array" }, "coordinates": { "description": "Array of coordinates", "items": { "properties": { "latitude": { "description": "Latitude", "maximum": 90, "minimum": -90, "type": "number" }, "longitude": { "description": "Longitude", "maximum": 180, "minimum": -180, "type": "number" } }, "required": [ "longitude", "latitude" ], "type": "object" }, "maxItems": 25, "minItems": 2, "type": "array" }, "depart_at": { "description": "Departure time in ISO 8601 format", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$", "type": "string" }, "destinations": { "description": "Indices of destination coordinates", "items": { "minimum": 0, "type": "number" }, "type": "array" }, "fallback_speed": { "description": "Speed for direct path calculation when no route exists", "minimum": 0, "type": "number" }, "profile": { "default": "driving", "description": "Navigation mode", "enum": [ "driving", "walking", "cycling" ], "type": "string" }, "sources": { "description": "Indices of source coordinates", "items": { "minimum": 0, "type": "number" }, "type": "array" } }, "required": [ "coordinates" ], "type": "object" }