Official Mapbox location intelligence
## Mapbox MCP Server: Custom Mapping and Location Intelligence The **Mapbox MCP Server** integrates Mapbox's powerful mapping platform directly into Google Antigravity, enabling AI assistants to access custom map styling, geocoding, routing, and spatial analysis. This integration brings developer-friendly mapping tools with unmatched customization capabilities to your development workflow. ### Why Mapbox MCP? - **Custom Map Styles**: Design completely custom map aesthetics with Mapbox Studio integration and dynamic styling - **Vector Tiles**: Efficient, resolution-independent maps that load fast and look sharp at any zoom level - **Optimization API**: Solve complex routing problems with vehicle routing optimization and isochrone analysis - **Global Geocoding**: Precise address parsing and POI search with support for local address formats worldwide - **Telemetry Integration**: Access anonymized movement data and traffic patterns for urban planning and analysis ### Key Features #### 1. Geocoding and Search ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Search for coffee shops in Seattle using Mapbox and return detailed place information" }], tools=[{ "name": "mapbox_geocode", "description": "Geocode addresses and search places" }] ) ``` #### 2. Route Optimization ```python # Solve vehicle routing problems response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Optimize routes for 3 delivery vehicles with 25 total stops and time window constraints" }], tools=[{"name": "mapbox_optimization", "description": "Vehicle routing optimization"}] ) ``` #### 3. Isochrone Analysis ```python # Calculate reachable areas response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show me all areas reachable within 15 minutes by car from our office location" }], tools=[{"name": "mapbox_isochrone", "description": "Calculate reachable areas"}] ) ``` #### 4. Map Matching ```python # Match GPS traces to roads response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Match these GPS coordinates from our fleet to actual road segments" }], tools=[{"name": "mapbox_map_match", "description": "Snap GPS to roads"}] ) ``` ### Configuration ```json { "mcpServers": { "mapbox": { "command": "npx", "args": ["-y", "@anthropic/mcp-mapbox"], "env": { "MAPBOX_ACCESS_TOKEN": "your-mapbox-access-token" } } } } ``` ### Use Cases **Custom Map Applications**: Build applications with branded, custom-styled maps that match your design system. **Fleet Optimization**: Solve complex vehicle routing problems with capacity constraints, time windows, and driver schedules. **Site Selection**: Analyze location accessibility with isochrone maps and demographic data for retail site selection. **Movement Analytics**: Process GPS traces for fleet tracking, route analysis, and movement pattern insights. The Mapbox MCP Server provides developer-centric mapping tools with unmatched flexibility, enabling custom location experiences that stand apart from generic mapping solutions.
{
"mcpServers": {
"mapbox": {
"mcpServers": {
"mapbox": {
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN"
},
"args": [
"-y",
"@mapbox/mcp-server"
],
"command": "npx"
}
}
}
}
}