Mapbox MCP Server
OfficialSummary: This Mapbox MCP server gives AI agents geospatial intelligence through Mapbox APIs and offline geospatial calculations.
Search & geocode: Convert addresses/places to coordinates and back, search POIs/categories/brands, retrieve place details, and ground coordinates with nearby POIs and reachability.
Routing & analysis: Get directions, travel-time matrices, optimized multi-stop routes, map-matched GPS traces, and isochrone reachability areas.
Maps: Generate static map images with markers, paths, polygons, and GeoJSON overlays; directions can include interactive MCP map UI metadata where supported.
Offline calculations: Compute distance, bearing, midpoint, destination, length, area, bounding box, centroid, buffer, simplification, convex hull, nearest points, point-in-polygon tests, and polygon union/intersection/difference without API calls.
Travel profiles: Support driving, driving-traffic, walking, and cycling across routing, matrix, isochrone, optimization, and map-matching tools.
Provides access to Mapbox's geospatial services including geocoding, points of interest search, multi-modal routing, travel time matrices, route optimization, map matching, isochrone generation, static map images, and offline geospatial calculations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mapbox MCP Server Find coffee shops near the Empire State Building"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mapbox MCP Server
Node.js server implementing Model Context Protocol (MCP) for Mapbox APIs: geocoding, POI search, routing, travel time matrices, isochrones, interactive maps and offline geospatial calculations for AI agents and applications.
Hosted endpoint: https://mcp.mapbox.com/mcp (a Mapbox access token is required)
See servers/mcp-server for setup, integration guides and the full list of tools.
Repository layout
This repo is a pnpm workspace.
Folder | npm package |
pnpm install
pnpm build
pnpm testRelated MCP server: Mapbox MCP Server
Contributing
See CONTRIBUTING.md.
Available Tools
33 toolsarea_toolCalculate AreaBRead-onlyIdempotentInspect
Calculate the area of a polygon or multipolygon. Supports various units including square meters, kilometers, acres, and hectares. Works offline without API calls.
Inputs: geometry (required), units. Returns: area, units
bbox_toolCalculate Bounding BoxARead-onlyIdempotentInspect
Calculate the bounding box (extent) of any geometry. Returns the minimum and maximum longitude and latitude that encompass the geometry. Works offline without API calls.
Inputs: geometry (required). Returns: bbox
bearing_toolCalculate BearingARead-onlyIdempotentInspect
Calculate the bearing (compass direction) from one point to another. Returns bearing in degrees where 0° is North, 90° is East, 180° is South, and 270° is West. Works offline without API calls.
Inputs: to (required), from (required). Returns: to, from, bearing
buffer_toolCreate Buffer ZoneARead-onlyIdempotentInspect
Create a buffer zone (polygon) around a point, line, or polygon at a specified distance. Useful for proximity analysis, service areas, or creating zones of influence. Works offline without API calls.
Inputs: distance (required), geometry (required), units. Returns: units, distance, bufferedPolygon
category_search_toolCategory Search ToolARead-onlyIdempotentInspect
Return all places that match a category (industry, amenity, or NAICS‑style code). Use when the user asks for a type of place, plural or generic terms like 'museums', 'coffee shops', 'electric‑vehicle chargers', or when the query includes is‑a phrases such as 'any', 'all', 'nearby'. Do not use when a unique name or brand is provided. Supports both JSON and text output formats.
Inputs: category (required), bbox, limit, format, +4 more. Returns: type, features, attribution, mapboxRender
centroid_toolCalculate CentroidBRead-onlyIdempotentInspect
Calculate the geometric center (centroid) of a polygon or multipolygon. The centroid is the arithmetic mean position of all points in the shape. Works offline without API calls.
Inputs: geometry (required). Returns: centroid
convex_toolConvex HullARead-onlyIdempotentInspect
Compute the convex hull of a set of points — the smallest convex polygon that contains all the points. Useful for bounding area analysis, estimating coverage area, or wrapping a set of locations. Works offline without API calls.
Inputs: points (required). Returns: geometry, num_points
destination_toolCalculate DestinationARead-onlyIdempotentInspect
Calculate a destination point given a starting point, bearing, and distance using geodesic (great-circle) straight-line offset. Useful for "find a point 5km north of X", constructing search offsets, or computing waypoints. Bearing: 0=north, 90=east, 180/-180=south, -90=west. Note: this calculates a straight-line geographic offset, not road-network distance. Works offline without API calls.
Inputs: origin (required), bearing (required), distance (required), units. Returns: units, bearing, distance, destination
difference_toolDifference of PolygonsARead-onlyIdempotentInspect
Subtract one polygon from another, returning the area in polygon1 that is not covered by polygon2. Useful for computing exclusion zones, finding uncovered service areas, or "what is in zone A but not zone B?". Returns null geometry if polygon2 fully covers polygon1. Works offline without API calls. INPUT SHAPE: polygon1 and polygon2 are each an array of rings; each ring is an array of [lng, lat] pairs. When chaining with isochrone_tool, extract feature.geometry.coordinates from each isochrone Feature (with polygons=true).
Inputs: polygon1 (required), polygon2 (required). Returns: geometry, mapboxRender, has_difference
directions_toolDirections ToolARead-onlyIdempotentInspect
Fetches directions from Mapbox API based on provided coordinates and direction method. Returns a mapboxRender.ref in structuredContent regardless of the geometries value; if the user wants to see the route on a map, pass it to render_map_tool. Use geometries="none" (default) for compact text/data responses (distance, duration, turn-by-turn instructions, congestion). Use geometries="geojson" when you need the raw route coordinates in the response yourself, e.g. to draw the route in your own app. It defaults to a simplified geometry that keeps the route's shape when zoomed out but cuts corners up close; pass overview="full" for every vertex when your map lets people zoom in on the route. render_map_tool works either way. Only overview="full" on a very long trip can exceed the response size limit; then this tool returns a summary and a mapbox://response/... ref you can read with the MCP resources API.
Inputs: coordinates (required), exclude, overview, arrive_by, +7 more. Returns: code, uuid, routes, waypoints, +1 more
distance_toolCalculate DistanceARead-onlyIdempotentInspect
Calculate the distance between two geographic coordinates. Supports various units including kilometers, miles, meters, feet, and nautical miles. Uses the Haversine formula for accurate great-circle distance calculations. This tool works offline without requiring API calls.
Inputs: to (required), from (required), units. Returns: to, from, units, distance
elevation_toolElevation ToolARead-onlyIdempotentInspect
Gets ground elevation from Mapbox terrain data. Give it places (points) for the height above sea level of each, or a line (path, or route_ref from a directions_tool or map_matching_tool result) for total climb and descent, the highest and lowest points, and an elevation profile. Use it for questions like "how high is this town?", "how hilly is this bike route?", "how much climbing is on this trail run?" or, for a recorded GPS trace matched with map_matching_tool, "how much did I climb?". Elevations are of the ground (bare earth), not buildings or bridges. Long paths are read at a coarser resolution (see resolution_m in the result), which can undercount small hills.
Inputs: path, points, route_ref. Returns: path, zoom, points, source, +2 more
feedback_toolSend Feedback to the DeveloperAInspect
Send the user's feedback about this app or agent to its developer, through the Mapbox Feedback API (Public Preview), so the developer can understand what users need and improve the product. Feedback can be about anything in the product: for example a place that has closed or has wrong details, a missing place, a closed road, a route with an illegal turn, a wrong travel time, or something about the app itself. It is filed under the Mapbox account that owns the access token, in the same feed as that account's Feedback Agent reports, and the developer reviews it in Feedback Explorer. It does not report the problem to Mapbox. Use it only when the user asks to send feedback, or agrees when you offer. Before calling it, show the user the exact feedback text, category and location you will send and get their go-ahead. Take the coordinates from an earlier search, place or directions result rather than guessing, and leave them out when the feedback is not about a place, such as most feedback about the app itself. Send one report per problem, and do not resend one that already succeeded. To avoid filing the same problem twice, the tool first checks the account's own reports from the last 30 days and does not send if one with the same category within 50 m is still awaiting review; it returns that report instead. Only set send_anyway when the user says the earlier report is about a different problem. Returns the item id and its status (received).
Inputs: category (required), feedback (required), coordinates, send_anyway. Returns: id, status, category, feedback, +6 more
ground_location_toolGround Location ToolARead-onlyIdempotentInspect
Answer questions about what is near a location, what neighborhood a coordinate is in, or what places are within walking/driving distance. Use this when given coordinates and asked about nearby places, neighborhood context, local discovery, or area summaries. It already includes reverse geocoding, so a separate reverse_geocode_tool call is not needed for the same coordinate. Pass the place category (e.g. "restaurant", "coffee", "park") as the query parameter to get nearby POIs in the same call. Returns place name, nearby POIs matching the query, and travel-time reachability — all sourced from live Mapbox data with citations. Use include for what the spot itself is: land use (is it in a park, a national park, a building?), water (on it, or how near), elevation, and live traffic on the roads around it. So use it for "is this spot in a park?", "is this on the water?" or "how bad is traffic at this address?" too. For elevation along a path or route, use elevation_tool.
Inputs: latitude (required), longitude (required), limit, query, +4 more. Returns: land, place, water, traffic, +8 more
intersect_toolIntersect PolygonsARead-onlyIdempotentInspect
Find the intersection geometry of two polygons — the area they share in common. Useful for coverage overlap analysis, finding shared service areas, or zone overlap. Returns null geometry if the polygons do not overlap. Works offline without API calls. INPUT SHAPE: polygon1 and polygon2 are each an array of rings; each ring is an array of [lng, lat] pairs. When chaining with isochrone_tool, extract feature.geometry.coordinates from each isochrone Feature (with polygons=true).
Inputs: polygon1 (required), polygon2 (required). Returns: geometry, intersects, mapboxRender
isochrone_toolIsochrone ToolARead-onlyIdempotentInspect
Computes areas that are reachable within a specified amount of time from a location, and returns the reachable regions as contours of Polygons or LineStrings in GeoJSON format that you can display on a map. Common use cases: - Show a user how far they can travel in X minutes from their current location - Determine whether a destination is within a certain travel time threshold - Compare travel ranges for different modes of transportation'
Inputs: generalize (required), coordinates (required), denoise, exclude, +6 more. Returns: type, features, mapboxRender
length_toolMeasure Line LengthARead-onlyIdempotentInspect
Measure the total length of a line defined by a series of coordinates. Useful for measuring a drawn route, path, or boundary without a routing API call. Supports kilometers, miles, meters, and feet. Works offline without API calls.
Inputs: coordinates (required), units. Returns: units, length, num_coordinates
list_public_tokens_toolList Public TokensARead-onlyIdempotentInspect
Lists the Mapbox account's public (pk.) access tokens, for when you build a web page or app outside this chat that loads Mapbox GL JS or calls Mapbox APIs from the browser. Put the returned pk. token in the page: public tokens are made to ship in browser code, so a placeholder or asking the user to paste a token is not needed. To show a map in the chat, use render_map_tool instead; it needs no token. Pass site_url (where the page will run) to get a token restricted to that URL when the account has one. Returns each token's name, whether it is the default, its URL restrictions and scopes, a recommended token, and guidance: for a published site, use a URL-restricted token, and tell the user the default token can be reused by anyone who copies it. Secret tokens are never listed.
Inputs: site_url. Returns: tokens, guidance, recommended
map_matching_toolMap Matching ToolARead-onlyIdempotentInspect
Snap a recorded GPS trace to roads using Mapbox Map Matching API. Takes a dense, noisy coordinate sequence (2-100 points, recorded seconds or tens of meters apart) and returns a clean route aligned with actual roads, bike paths, or walkways. Useful for analyzing recorded trips, cleaning fleet tracking data, or processing fitness activity traces. Not for routing between a few places or addresses: points kilometers apart fail to match, so use directions_tool for that. Returns confidence scores, matched geometry, and optional traffic/speed annotations.
Inputs: coordinates (required), profile, overview, radiuses, +3 more. Returns: code, matchings, tracepoints, mapboxRender
matrix_toolMatrix ToolARead-onlyIdempotentInspect
Calculates travel times and distances between multiple points using Mapbox Matrix API. Put all the points in one call (up to 25, 10 for driving-traffic) rather than one call per pair: the API allows 60 requests per minute (30 for driving-traffic).
Inputs: profile (required), coordinates (required), sources, bearings, +3 more. Returns: code, message, sources, distances, +2 more
midpoint_toolCalculate MidpointARead-onlyIdempotentInspect
Calculate the geographic midpoint between two coordinates. Returns the point that is halfway between the two input points along the great circle path. Works offline without API calls.
Inputs: to (required), from (required). Returns: to, from, midpoint
nearest_point_on_line_toolNearest Point on LineARead-onlyIdempotentInspect
Snap a point to the nearest position on a line or route. Returns the closest point on the line and the distance to it. Useful for "which point on this route is closest to my location?" or map-matching without the API. Works offline without API calls.
Inputs: line (required), point (required), units. Returns: units, nearest, distance, location
nearest_point_toolNearest PointARead-onlyIdempotentInspect
Find the nearest point in a collection to a given target point. More efficient than calling distance_tool for each candidate and sorting. Useful for finding the closest store, stop, or landmark to a location. Works offline without API calls.
Inputs: points (required), target (required), units. Returns: index, units, nearest, distance
optimization_toolOptimize Multi-Stop RouteARead-onlyIdempotentInspect
Find the optimal (shortest by travel time) route through a set of 2-12 coordinates. Solves the Traveling Salesman Problem to determine the best visiting order. Supports options for starting point, ending point, and whether to return to start.
Inputs: coordinates (required), steps, source, profile, +6 more. Returns: code, trips, message, waypoints, +1 more
place_details_toolPlace Details ToolARead-onlyIdempotentInspect
Retrieve detailed information about a specific place using its Mapbox ID. Use after search_and_geocode_tool, category_search_tool, or reverse_geocode_tool to get additional details such as photos, opening hours, phone numbers, and website URLs. Requires the mapbox_id field from a previous search result. Primarily covers points of interest (businesses, addresses, buildings); mapbox_ids for neighborhoods, cities, or other administrative boundaries are also supported but return more limited data (name, address, coordinates — no photos, hours, or contact info). The primary POI lookup is Public Preview with a default quota of 1,000 requests/month; contact Mapbox if you need a higher volume.
Inputs: mapbox_id (required), language, worldview, attribute_sets. Returns: bbox, name, brand, phone, +20 more
points_within_polygon_toolPoints Within PolygonARead-onlyIdempotentInspect
Test one or more geographic points against a polygon, returning only those inside. Handles a single point or a batch of points in one call. Useful for delivery zone validation, fleet geofencing, and customer segmentation. Works offline without API calls.
Inputs: points (required), polygon (required). Returns: count, total, points_within
render_map_toolMapbox MapARead-onlyIdempotentInspect
Display a live, interactive Mapbox GL JS map. Use this when someone wants to see a location, route, or dataset on a map. In ChatGPT Desktop the map stays open next to the chat and provides its own tools (redraw_map, which takes the same arguments as this tool, search_map, add_places, move_map, read_map): use them to change that map, because another call to this tool opens a second map. Preferred usage: any other Mapbox tool returns a mapboxRender.ref URI in its structuredContent — pass that ref via payload_refs: ["..."]. You can pass multiple refs to merge several datasets (e.g. a search result + a route) onto one map. Inline layers/markers/legend fields are also supported for hand-composed payloads from raw GeoJSON. For a hand-composed POI marker (e.g. built from category_search_tool/search_and_geocode_tool/place_details_tool output), set markers[].id to the place's mapbox_id — this gets it the same auto-enriching results carousel (popularity score and photo) that a payload_refs-based search result gets automatically, with no extra tool calls. To restyle the base map itself (e.g. "make the water red", switch to night lighting, hide POI labels) pass baseMapConfig. To switch to satellite imagery, pass baseStyle: "standard-satellite" (defaults to "standard"). To show live traffic congestion on the roads in view, pass showTraffic: true. The map also has Satellite and Traffic buttons users can toggle themselves. Every call redraws the map from scratch: only the traffic and satellite settings carry over from the previous call. So to restyle an already-drawn map or toggle traffic without losing its content, re-pass the same payload_refs/layers alongside baseMapConfig/baseStyle/showTraffic rather than sending them alone. After rendering places, don't list them again in your reply: the map's cards already show each name, category, price level, distance and hours. Answer the question or add what the cards leave out (like the phone number or address) instead.
Inputs: camera, layers, legend, markers, +5 more. Returns: summary, rendered, layer_count, mapboxRender, +1 more
report_toolSend Feedback to MapboxAInspect
Send feedback about the Mapbox MCP server to the Mapbox team that builds it: a bug, a tool that failed or gave a wrong or confusing result, a missing capability or a suggestion. It goes to Mapbox, not to the user's account, needs no special token scope, and cannot be read back or withdrawn afterward. It is for feedback about this server, not for reporting wrong map, place or routing data. Use it only when the user asks to send feedback, or agrees when you offer. Before calling it, show the user the exact text you will send and get their go-ahead. Leave out personal details the user did not ask to share. The server adds its own version and the client name. Send one report per problem, and do not resend one that already succeeded. Returns the report id.
Inputs: category (required), feedback (required), tool_name. Returns: id, status, category, feedback
reverse_geocode_toolReverse Geocode ToolARead-onlyIdempotentInspect
Convert geographic coordinates (longitude, latitude) into a human-readable address or place name. Use only when you need an address/place name alone. If you also need nearby places, neighborhood context, or travel-time reachability, use ground_location_tool instead — it already includes reverse geocoding plus POI search and isochrone in one call. This tool cannot reverse geocode businesses, landmarks, or POIs. Supports JSON and text output formats.
Inputs: latitude (required), longitude (required), limit, types, +5 more. Returns: type, features, attribution
search_and_geocode_toolSearch and Geocode ToolARead-onlyIdempotentInspect
Search for POIs, brands, chains, geocode cities, towns, addresses. Do not use for generic place types such as 'museums', 'coffee shops', 'tacos', etc, because category_search_tool is better for that. Setting a proximity point is strongly encouraged for more local results. The underlying Search Box API is rolling out natural-language query understanding (e.g. 'quiet coffee shops with wifi near downtown'), so richer free-text phrasing in q can work well for category + place + attribute combinations — but as of this writing, big-box retail brand searches tied to a specific address (e.g. 'Costco near ', 'Walmart near ', 'Target near ') are unreliable and often return unrelated results; verify those results before relying on them.
Inputs: q (required), bbox, types, origin, +7 more. Returns: type, features, attribution, mapboxRender
simplify_toolSimplify GeometryARead-onlyIdempotentInspect
Simplify a LineString or Polygon by reducing the number of vertices while preserving the general shape. Uses the Douglas-Peucker algorithm. Useful for reducing file sizes and improving rendering performance. Works offline without API calls.
Inputs: geometry (required), tolerance, highQuality. Returns: simplified, originalVertexCount, reductionPercentage, simplifiedVertexCount
static_map_image_toolStatic Map Image ToolARead-onlyIdempotentInspect
Generates a static map image from Mapbox Static Images API. Supports center coordinates, zoom level (0-22), image size (up to 1280x1280), various Mapbox styles, and overlays (markers, paths, GeoJSON). Returns PNG for vector styles, JPEG for raster-only styles. Use only when the user explicitly asks for a static image file — to show a map, use render_map_tool instead, which renders an interactive map.
Inputs: size (required), zoom (required), center (required), style, +2 more.
union_toolUnion PolygonsARead-onlyIdempotentInspect
Merge two or more polygons into a single unified geometry. Useful for combining service areas, delivery zones, isochrones, or coverage regions. Returns a Polygon or MultiPolygon if the inputs do not overlap. Works offline without API calls. INPUT SHAPE: pass polygons as an array of polygons. Each polygon is an array of rings; each ring is an array of [lng, lat] pairs. When chaining with isochrone_tool, extract feature.geometry.coordinates from each isochrone Feature — that is already a valid Polygon value. Skip features whose geometry.type === "MultiPolygon" (pass each inner Polygon separately) or whose geometry.type === "LineString" (set isochrone_tool polygons=true to get Polygon output instead).
Inputs: polygons (required). Returns: type, geometry, mapboxRender
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools have clearly distinct operations, and the descriptions actively clarify boundaries between overlapping areas such as render_map_tool vs static_map_image_tool, ground_location_tool vs reverse_geocode_tool, and directions_tool vs map_matching_tool. A few geometry utilities and search/location tools could still be confused at a glance, but the descriptions usually resolve the ambiguity.
All tools follow a consistent snake_case naming convention with a uniform `_tool` suffix. The names are descriptive and predictable, even though some are verb-first and others noun-first.
With 33 tools, the surface is heavy for a single MCP server and exceeds the typical well-scoped range. While many tools are individually justified by Mapbox's broad domain, the large number increases selection burden and makes the set harder to navigate.
The surface covers a wide range of Mapbox capabilities: geocoding, category search, place details, routing, isochrones, matrices, optimization, map matching, elevation, static and interactive rendering, feedback, token listing, and offline geometry operations. There are minor gaps, such as style listing or more advanced token management, but core workflows are well covered.
Maintenance
Related MCP Connectors
Provides AI assistants with direct access to Mapbox developer APIs and documentation.
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Place search, routes and spatial reasoning for AI agents, with real-world addresses.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnhances LLM capabilities with location-based services and geospatial data, enabling users to geocode addresses, find nearby points of interest, get directions, optimize meeting points, and analyze neighborhoods.12237MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI applications with geospatial intelligence through Mapbox APIs, enabling geocoding, POI search, routing, travel time analysis, isochrone generation, and static map creation for location-aware functionality.BSD 3-Clause

ThinAir Geoofficial
AlicenseAqualityBmaintenanceLocation & routing intelligence for AI agents — geocoding, truck routing, traffic, weather, and place search.1933 npm1MIT
Magic Lane MCP Serverofficial
AlicenseBqualityCmaintenanceEnables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.851 npm8Apache 2.0