Skip to content

Menu

Mapbox MCP Server logo

Mapbox MCP Server

Published

At a glance

GitHub repository
mapbox/mcp-server
Watch out for
Every Mapbox API tool calls a metered Mapbox API on your token, so heavy agent use counts against your account's usage and pricing.

Mapbox publishes this server itself, in the mapbox/mcp-server repository and as the @mapbox/mcp-server package on npm. It wraps the Mapbox location APIs (Search Box, Geocoding v6, Directions, Matrix, Isochrone, Map Matching, Optimization, Static Images and terrain data) as MCP tools, so an agent can look up places, plan routes and draw maps without you writing any API glue.

You can run it two ways. Locally it is a Node.js process over stdio that reads a MAPBOX_ACCESS_TOKEN from the environment. Mapbox also hosts it at https://mcp.mapbox.com/mcp over Streamable HTTP, with a browser sign-in flow instead of a pasted token.

Two details set it apart from a plain API wrapper. A group of offline tools built on Turf.js handles distance, area, buffers and polygon maths without calling Mapbox at all. And render_map_tool draws results as a live Mapbox GL JS map inside the chat through the MCP Apps protocol, which the README lists as working in Claude Desktop, Claude Code, VS Code with GitHub Copilot and Goose.

How it connects

Your AI app

An assistant or agent that supports MCP

Mapbox MCP Server

Runs as

  • npx (Node.js)
  • Remote (HTTP)

Gives the agent

  • Search and geocoding
  • Routing and travel time
  • Reachability and GPS cleanup
  • Location grounding
  • Maps in the chat
  • Offline geometry

Mapbox

Signs in with

  • Token
Your AI app talks to Mapbox MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Search and geocoding
search_and_geocode_tool finds places, addresses and POIs, category_search_tool searches by type such as restaurants or gas stations, and reverse_geocode_tool turns coordinates into an address. A place details tool adds hours, phone numbers and websites for a result.
Routing and travel time
directions_tool returns routes for driving, walking and cycling with 2 to 25 waypoints, exclusions such as tolls or ferries, and depart_at or arrive_by times. The Matrix tool computes travel times between many points and the Optimization tool orders 2 to 12 stops.
Reachability and GPS cleanup
isochrone_tool draws the area reachable within a time or distance. The Map Matching tool snaps up to 100 noisy GPS points to the road network.
Location grounding
ground_location_tool answers 'what is near this coordinate' in one call by combining reverse geocoding, category search and an isochrone, and returns records with citations.
Maps in the chat
render_map_tool shows routes, search results or your own GeoJSON on an interactive map in clients that support MCP Apps. static_map_image_tool returns a PNG or JPEG for clients that do not.
Offline geometry
Turf.js tools such as distance_tool, union_tool, intersect_tool and difference_tool, plus bearing, midpoint, centroid, area, buffer and simplify tools, run without any API call.

Setting it up

Every option needs a Mapbox account, and the local server needs an access token from your account page. For the hosted server in Claude Code, run claude mcp add --transport http mapbox-mcp-production https://mcp.mapbox.com/mcp, start claude, run /mcp and finish the sign-in flow in the browser. In VS Code, add a server entry to mcp.json with "type": "http" and "url": "https://mcp.mapbox.com/mcp". Claude Desktop needs the mcp-remote bridge for the hosted endpoint, configured as command npx with args ["mcp-remote", "https://mcp.mapbox.com/mcp"]. To run it locally instead, use command npx with args ["-y", "@mapbox/mcp-server"] and set MAPBOX_ACCESS_TOKEN in the env block. Set CLIENT_NEEDS_RESOURCE_FALLBACK=true only if your client cannot read MCP resources, which adds resource_reader_tool and category_list_tool.

Run in a terminal
claude mcp add --transport http mapbox https://mcp.mapbox.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Plan a multi-stop delivery run and ask for the best visiting order with traffic-aware travel times.
  • Show which neighbourhoods fall within a 15-minute walk of a proposed office, drawn on a map in the chat.
  • Clean up a recorded bike ride by snapping the GPS trace to roads and reporting total climb with the elevation tool.
  • Check which customer addresses fall inside a service-area polygon before quoting delivery.

Limitations and things to watch

  • Every Mapbox API tool calls a metered Mapbox API on your token, so heavy agent use counts against your account's usage and pricing.
  • The hosted endpoint supports Streamable HTTP only for now, and Claude Desktop needs the mcp-remote bridge to reach it.
  • Interactive maps from render_map_tool appear only in clients that support MCP Apps; elsewhere you fall back to static images.
  • The Optimization tool handles 2 to 12 locations, Map Matching takes up to 100 points, and the V2 optimization API with time windows needs beta access and is not registered by default.
  • Some tools need extra token scopes: the feedback tool needs user-feedback:write and the public token listing needs tokens:read.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…