Mapbox

v0.2.1
io.github.pipeworx-io/mapbox Checked 2 days ago Published 1 month ago

Mapbox MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

geocode_forward

"What are the coordinates of [address]" / "geocode [place]" / "lat lng for [location]" / "find [city] on a map" — convert a street address, city, or place name to GPS coordinates (longitude / latitude) using Mapbox's global geocoder. Works on any street, intersection, POI, or administrative area worldwide. Example: geocode_forward({ query: "1600 Pennsylvania Ave, Washington DC" }).

ParameterTypeDescription
query *string
autocompleteboolean
bboxstring
countrystring
fuzzyMatchboolean
languagestring
limitnumber
proximitystring
typesstring

geocode_reverse

"What's at [lat,lng]" / "reverse geocode coordinates" / "what address is at these coords" / "what place is at this GPS point" — convert longitude / latitude into the nearest street address, neighborhood, city, region, or country via Mapbox's global geocoder. Works worldwide.

ParameterTypeDescription
lat *number
lon *number
countrystring
languagestring
limitnumber
typesstring

directions

"Directions from A to B" / "how long does it take to drive from X to Y" / "how far is [A] from [B]" / "walking / cycling / driving directions" / "navigation between points" / "shortest route" — turn-by-turn routing between two or more coordinates. Returns geometry, distance (meters), duration (seconds), voice + banner instructions, and alternatives. Profile: driving, driving-traffic, walking, or cycling. Backed by Mapbox's commercial-grade traffic data and global road network.

ParameterTypeDescription
coordinates *array
alternativesboolean
annotationsstring
banner_instructionsboolean
geometriesstring
languagestring
overviewstring
profilestring
stepsboolean
voice_instructionsboolean

directions_matrix

"Distance matrix" / "drive times between multiple points" / "travel times grid" / "all-to-all distances" — N×M distance and duration matrix between many coordinates. Use for traveling-salesman, delivery routing, nearest-warehouse, or "which of these N stores is closest to each of these M customers" questions.

ParameterTypeDescription
coordinates *array
annotationsstring
destinationsstring
profilestring
sourcesstring

isochrone

"How far can I get in [N] minutes from [point]" / "reachable area in [time]" / "drive-time / walk-time / cycle-time polygons" / "delivery zone within [radius]" / "service area around [location]" — isochrone polygons (reachable area within X minutes or meters) from a starting coordinate by car, walking, or cycling. Use for site-selection, delivery-zone, commute-shed, and "how big a catchment do I have" questions.

ParameterTypeDescription
coordinates *array[lon, lat]
profile *string
contours_colorsstring
contours_metersstring
contours_minutesstring
denoisenumber
generalizenumber
polygonsboolean

map_matching

"Snap GPS trace to roads" / "clean up noisy GPS coordinates" / "match track to road network" — takes a sequence of GPS points and returns the most likely path along the road network. Use for vehicle telematics, fitness-tracker cleanup, or "what road did this driver actually take" questions.

ParameterTypeDescription
coordinates *array
annotationsstring
geometriesstring
overviewstring
profilestring
radiusesstring
stepsboolean
tidyboolean
timestampsstring

tilequery

Query features inside a Mapbox vector tile around a coordinate — what POIs / roads / boundaries / buildings are within a radius of a point. Specialized GIS query against a specific tileset_id; most users want geocode_reverse or directions instead.

ParameterTypeDescription
lat *number
lon *number
tileset_id *string
dedupeboolean
geometrystring
layersstring
limitnumber
radiusnumber

static_image_url

"Static map image of [location]" / "embed a map of [coords]" / "screenshot a map" / "thumbnail map" — generates a Mapbox static-tile image URL for embedding in slack, docs, emails, or dashboards. Pass style + coords + zoom + width/height; returns a fetchable PNG URL. No client-side JS or interactivity required.

ParameterTypeDescription
height *number
lat *number
lon *number
style_id *string
width *number
zoom *number
bearingnumber
pitchnumber
retinaboolean