Mapbox▌

by mapbox
Mapbox: Geospatial intelligence — fast geocoding API, POI search API, routing API and isochrones for location-aware apps
Geospatial intelligence with geocoding, POI search, routing, and isochrones
best for
- / Building AI travel assistants
- / Logistics and delivery optimization
- / Location-based recommendation systems
- / Geospatial data analysis
capabilities
- / Convert addresses to coordinates and vice versa
- / Search points of interest worldwide
- / Calculate driving, walking, and cycling routes
- / Generate travel time matrices
- / Optimize multi-stop route ordering
- / Create isochrone maps showing reachable areas
what it does
Connects AI applications to Mapbox's location services for geocoding, routing, POI search, and spatial analysis. Requires a Mapbox access token.
about
Mapbox is an official MCP server published by mapbox that provides AI assistants with tools and capabilities via the Model Context Protocol. Mapbox: Geospatial intelligence — fast geocoding API, POI search API, routing API and isochrones for location-aware apps It is categorized under developer tools.
how to install
You can install Mapbox in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server supports remote connections over HTTP, so no local installation is required.
license
MIT
Mapbox is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Mapbox MCP Server
Node.js server implementing Model Context Protocol (MCP) for Mapbox APIs.
Unlock Geospatial Intelligence for Your AI Applications
The Mapbox MCP Server transforms any AI agent or application into a geospatially-aware system by providing seamless access to Mapbox's comprehensive location intelligence platform. With this server, your AI can understand and reason about places, navigate the physical world, and access rich geospatial data including:
- Global geocoding to convert addresses and place names to coordinates and vice versa
- Points of interest (POI) search across millions of businesses, landmarks, and places worldwide
- Multi-modal routing for driving, walking, and cycling with real-time traffic
- Travel time matrices to analyze accessibility and optimize logistics
- Route optimization to find the optimal visiting order for multiple stops (traveling salesman problem)
- Map matching to snap GPS traces to the road network for clean route visualization
- Isochrone generation to visualize areas reachable within specific time or distance constraints
- Static map images to create visual representations of locations, routes, and geographic data
- Offline geospatial calculations for distance, area, bearing, buffers, and spatial analysis without requiring API calls
Whether you're building an AI travel assistant, logistics optimizer, location-based recommender, or any application that needs to understand "where", the Mapbox MCP Server provides the spatial intelligence to make it possible. You can also enable it on popular clients like Claude Desktop and VS Code. See below for details

Usage
A Mapbox access token is required to use this MCP server.
Hosted MCP Endpoint
For quick access, you can use our hosted MCP endpoint:
Endpoint: https://mcp.mapbox.com/mcp
For detailed setup instructions for different clients and API usage, see the Hosted MCP Server Guide.
To get a Mapbox access token:
- Sign up for a free Mapbox account at mapbox.com/signup
- Navigate to your Account page
- Create a new token or use the default public token
For more information about Mapbox access tokens, see the Mapbox documentation on access tokens.
Integration Guides
For detailed setup instructions for different integrations, refer to the following guides:
- Claude Desktop Setup - Instructions for configuring Claude Desktop to work with this MCP server
- Goose Setup - Setting up Goose AI agent framework
- VS Code Setup - Setting up a development environment in Visual Studio Code
- Cursor AI IDE Setup - Setting up a development environment in Cursor AI IDE
- Smolagents Integration - Example showing how to connect Smolagents AI agents to Mapbox's tools
- Importing Tools Directly - Use Mapbox tools in your own applications without running the MCP server
Example Prompts
Try these prompts with Claude Desktop or other MCP clients after setup:
Location Discovery
- "Find coffee shops within walking distance of the Empire State Building"
- "I want to go from Seattle to Portland, is there a Starbucks along the way?"
- "Show me gas stations along the route from Boston to New York"
- "What restaurants are near Times Square?"
Navigation & Travel
- "Get driving directions from LAX to Hollywood with current traffic"
- "How long would it take to walk from Central Park to Times Square?"
- "Calculate travel time from my hotel (Four Seasons) to JFK Airport by taxi during rush hour"
Visualization & Maps
- "Create a map image showing the route from Golden Gate Bridge to Fisherman's Wharf with markers at both locations"
- "Show me a satellite view of Manhattan with key landmarks marked"
- "Generate a map highlighting all Starbucks locations within a mile of downtown Seattle"
Analysis & Planning
- "Show me areas reachable within 30 minutes of downtown Portland by car"
- "Calculate a travel time matrix between these 3 hotel locations (Marriott, Sheraton and Hilton) and the convention center in Denver"
- "Find the optimal route visiting these 3 tourist attractions (Golden Gate, Musical Stairs and Fisherman's Wharf) in San Francisco"
- "Optimize a delivery route for these 8 addresses: [list of addresses]"
GPS & Route Matching
- "Clean up this GPS trace and show the actual route on roads: [list of coordinates with timestamps]"
- "Snap this recorded bicycle ride to the cycling network: [GPS coordinates]"
- "Match this driving route to the road network and show traffic congestion levels"
Offline Geospatial Calculations
- "What's the distance in miles between these two coordinates?"
- "Calculate the area of this polygon in square kilometers"
- "Is the point at 37.7749°N, 122.4194°W inside this service area polygon?"
- "What's the bearing from San Francisco to New York?"
- "Find the midpoint between London and Paris"
- "Create a 5-mile buffer zone around this location"
- "Calculate the centroid of this neighborhood boundary"
- "What's the bounding box for these route coordinates?"
- "Simplify this complex polygon to reduce the number of points"
Tips for Better Results
- Be specific about locations (use full addresses or landmark names)
- Specify your preferred travel method (driving, walking, cycling)
- Include time constraints when relevant ("during rush hour", "at 3 PM")
- Ask for specific output formats when needed ("as a map image", "in JSON format")
Detailed examples: See examples/search-along-route.md for comprehensive examples of the search-along-route prompt with different use cases and MCP Inspector testing instructions.
Resources
The MCP server exposes static reference data as MCP resources. Resources provide read-only access to data that clients can reference directly without making tool calls.
Available Resources
Mapbox Categories Resource
URI Pattern: mapbox://categories or mapbox://categories/{language}
Access the complete list of available category IDs for use with the category search tool. Categories can be used to filter search results by type (e.g., "restaurant", "hotel", "gas_station").
Examples:
mapbox://categories- Default (English) category listmapbox://categories/ja- Japanese category namesmapbox://categories/es- Spanish category names
Accessing Resources:
- Clients with native MCP resource support: Use the
resources/readMCP protocol method - Clients without resource support: Use the
resource_reader_toolwith the resource URI
Rich Map Previews (MCP Apps)
The static_map_image_tool provides an interactive map preview panel in compatible clients, in addition to the base64 image that all clients receive.
This server implements the MCP Apps protocol (@modelcontextprotocol/ext-apps), which renders a self-contained HTML app panel directly inside the chat. Supported clients show an interactive map with a Fullscreen toggle:
- Claude Desktop ✅
- VS Code with GitHub Copilot ✅
- Claude Code ✅
- Goose ✅
All clients receive the base64-encoded map image regardless of protocol support — interactive previews are a progressive enhancement on top of the standard image response.
Legacy: MCP-UI
This server also retains support for MCP-UI (@mcp-ui/server), an earlier open specification for embedded iframe previews. MCP Apps is the recommended protocol; MCP-UI support is kept for backwards compatibility.
MCP-UI is enabled by default. To disable it, pass --disable-mcp-ui as a command-line flag or set ENABLE_MCP_UI=false. See the MCP-UI documentation for details.
CLIENT_NEEDS_RESOURCE_FALLBACK
Resource Fallback Tools (Opt-In for Non-Compliant Clients)
Resources are a core MCP feature supported by most clients (Claude Desktop, VS Code, MCP Inspector, etc.). However, some clients (like smolagents) don't support resources at all. For these clients, the server can provide "resource fallback tools" that deliver the same content as resources but via tool calls.
Fallback Tools:
resource_reader_tool- Generic fallback for reading any resource by URIcategory_list_tool- Provides access to category list (mapbox://categories)
By default, these tools are NOT included (assumes your client supports resources). If your client doesn't support resources, enable the fallback tools:
export CLIENT_NEEDS_RESOURCE_FALLBACK=true
When to set this:
- ✅ Set to
trueif using smolagents or other clients without resource support - ❌ Leave unset (default) if using Claude Desktop, VS Code, MCP Inspector, or any resource-capable client
- ❌ Leave unset if unsure (most clients support resources)
Tools
Utility Tools
Resource Reader Tool
Provides access to MCP resources for clients that don't support the native MCP resource API. Use this tool to read resources like the category list.
Parameters:
uri: The resource URI to read (e.g.,mapbox://categories,mapbox://categories/ja)
Example Usage:
- Read default categories:
{"uri": "mapbox://categories"} - Read Japanese categories:
{"uri": "mapbox://categories/ja"}
Note: If your MCP client supports native resources, prefer using the resource API directly for better performance.
Offline Geospatial Tools
These tools perform geospatial calculations completely offline without requiring Mapbox API calls. Th
FAQ
- What is the Mapbox MCP server?
- Mapbox is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Mapbox?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Mapbox is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Mapbox against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Mapbox is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Mapbox reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Mapbox for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Mapbox surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Mapbox has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Mapbox benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Mapbox into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Mapbox is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.