Direct access to Mapbox developer APIs for AI assistants. Enables style management, token management, GeoJSON preview, and other developer tools for building Mapbox applications.
931
16 Tools
Version 4.43 or later needs to be installed to add the server automatically
About
Direct access to Mapbox developer APIs for AI assistants. Enables style management, token management, GeoJSON preview, and other developer tools for building Mapbox applications.
Attribute | Details |
---|---|
Docker Image | mcp/mapbox-devkit |
Author | mapbox |
Repository | https://github.com/mapbox/mcp-devkit-server |
Docker Image built by|Docker Inc.
Docker Scout Health Score| Verify Signature|
COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/mapbox-devkit --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
Licence|MIT License
Tools provided by this Server | Short Description |
---|---|
bounding_box_tool | Calculate GeoJSON Bounding Box Tool |
coordinate_conversion_tool | Convert Coordinates Tool |
country_bounding_box_tool | Get Country Bounding Box Tool |
create_style_tool | Create Mapbox Style Tool |
create_token_tool | Create Mapbox Token Tool |
delete_style_tool | Delete Mapbox Style Tool |
geojson_preview_tool | Preview GeoJSON Data Tool |
get_latest_mapbox_docs_tool | Get Mapbox Documentation Tool |
list_styles_tool | List Mapbox Styles Tool |
list_tokens_tool | List Mapbox Tokens Tool |
preview_style_tool | Preview Mapbox Style Tool |
retrieve_style_tool | Retrieve Mapbox Style Tool |
style_builder_tool | Build Mapbox Style JSON Tool |
style_comparison_tool | Compare Mapbox Styles Tool |
tilequery_tool | Mapbox Tilequery Tool |
update_style_tool | Update Mapbox Style Tool |
bounding_box_tool
Calculates bounding box of given GeoJSON content, returns as [minX, minY, maxX, maxY]
Parameters | Type | Description |
---|---|---|
geojson | string | GeoJSON content to calculate bounding box for |
This tool is read-only. It does not modify its environment.
coordinate_conversion_tool
Converts coordinates between WGS84 (longitude/latitude) and EPSG:3857 (Web Mercator) coordinate systems
Parameters | Type | Description |
---|---|---|
coordinates | array | Array of two numbers representing coordinates |
from | string | Source coordinate system: wgs84 (longitude/latitude) or epsg3857 (Web Mercator) |
to | string | Target coordinate system: wgs84 (longitude/latitude) or epsg3857 (Web Mercator) |
This tool is read-only. It does not modify its environment.
country_bounding_box_tool
Gets bounding box for a country by its ISO 3166-1 country code, returns as [minX, minY, maxX, maxY].
Parameters | Type | Description |
---|---|---|
iso_3166_1 | string | ISO 3166-1 country code (2-10 characters, e.g., "CN", "US", "AE" ) |
This tool is read-only. It does not modify its environment.
create_style_tool
Create a new Mapbox style
Parameters | Type | Description |
---|---|---|
name | string | Name for the new style |
style | object | Mapbox style specification object |
This tool interacts with external entities.
create_token_tool
Create a new Mapbox public access token with specified scopes and optional URL restrictions.
Parameters | Type | Description |
---|---|---|
note | string | Description of the token |
scopes | array | Array of scopes/permissions for the public token. Valid scopes: styles:tiles, styles:read, fonts:read, datasets:read, vision:read. |
allowedUrls | array optional | Optional array of URLs where the token can be used (max 100) |
expires | string optional | Optional expiration time in ISO 8601 format (maximum 1 hour in the future) |
This tool interacts with external entities.
delete_style_tool
Delete a Mapbox style by ID
Parameters | Type | Description |
---|---|---|
styleId | string | Style ID to delete |
This tool may perform destructive updates.
This tool is idempotent. Repeated calls with same args have no additional effect.
This tool interacts with external entities.
geojson_preview_tool
Generate a geojson.io URL to visualize GeoJSON data. Returns only the URL link.
Parameters | Type | Description |
---|---|---|
geojson | string | GeoJSON data as a JSON string (e.g., {"type": "Point", "coordinates": [-122.4194, 37.7749]}) |
This tool is read-only. It does not modify its environment.
get_latest_mapbox_docs_tool
Get the latest official Mapbox documentation, APIs, SDKs, and developer resources directly from Mapbox. Always up-to-date, comprehensive coverage of all current Mapbox services including mapping, navigation, search, geocoding, and mobile SDKs. Use this for accurate, official Mapbox information instead of web search.
list_styles_tool
List styles for a Mapbox account. Use limit parameter to avoid large responses (recommended: limit=5-10). Use start parameter for pagination.
Parameters | Type | Description |
---|---|---|
limit | number optional | Maximum number of styles to return (recommended: 5-10 to avoid token limits, default: no limit) |
start | string optional | Start token for pagination (use the "start" value from previous response) |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
list_tokens_tool
List Mapbox access tokens for the authenticated user with optional filtering and pagination. When using pagination, the "start" parameter must be obtained from the "next_start" field of the previous response (it is not a token ID)
Parameters | Type | Description |
---|---|---|
default | boolean optional | Filter to show only the default public token |
limit | number optional | Maximum number of tokens to return (1-100) |
sortby | string optional | Sort tokens by created or modified timestamp |
start | string optional | Token ID to start pagination from |
usage | string optional | Filter by token type: pk (public) |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
preview_style_tool
Generate preview URL for a Mapbox style using an existing public token
Parameters | Type | Description |
---|---|---|
accessToken | string | Mapbox public access token (required, must start with pk.* and have styles:read permission). Secret tokens (sk.*) cannot be used as they cannot be exposed in browser URLs. Please use an existing public token or get one from list_tokens_tool or create one with create_token_tool with styles:read permission. |
styleId | string | Style ID to preview |
title | boolean optional | Show title in the preview |
zoomwheel | boolean optional | Enable zoom wheel control |
This tool is read-only. It does not modify its environment.
retrieve_style_tool
Retrieve a specific Mapbox style by ID
Parameters | Type | Description |
---|---|---|
styleId | string | Style ID to retrieve |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
style_builder_tool
Generate Mapbox style JSON for creating new styles or updating existing ones.
The tool intelligently resolves layer types and filter properties using Streets v8 data. You don't need exact layer names - the tool automatically finds the correct layer based on your filters.
BASE STYLES: • standard: ALWAYS THE DEFAULT - Modern Mapbox Standard with best performance • Classic styles: streets-v12/light-v11/dark-v11/satellite-v9/outdoors-v12/satellite-streets-v12/navigation-day-v1/navigation-night-v1 Only use Classic when user explicitly says "create a classic style" or working with existing Classic style
STANDARD STYLE CONFIG: Use standard_config to customize the basemap: • Theme: default/faded/monochrome • Light: day/night/dawn/dusk • Show/hide: labels, roads, 3D buildings • Colors: water, roads, parks, etc.
LAYER ORDERING: • Layers are rendered in order - last layer in the array appears visually on top • The 'slot' parameter is OPTIONAL - by default, layer order in the array determines visibility • For Standard style, you can optionally use 'slot' to control placement:
LAYER RENDERING: • render_type controls HOW to visualize the layer (line, fill, symbol, etc.) • Most important: Use render_type:"line" for outlines/borders even on polygon features • Default "auto" picks based on geometry, but override for specific effects:
LAYER ACTIONS: • color: Apply a specific color • highlight: Make prominent • hide: Remove from view • show: Display with defaults
AUTO-DETECTION: The tool automatically finds the correct layer from your filter_properties. Examples: • { class: 'park' } → finds 'landuse' layer • { type: 'wetland' } → finds 'landuse_overlay' layer • { maki: 'restaurant' } → finds 'poi_label' layer • { toll: true } → finds 'road' layer • { admin_level: 0 } → finds 'admin' layer (for country boundaries) • { admin_level: 1 } → finds 'admin' layer (for state/province boundaries)
IMPORTANT LAYER NAMES: • Use "admin" for all boundaries (countries, states, etc.) • Use "building" (singular, not "buildings") • Use "road" for all streets, highways, paths
If a layer type is not recognized, the tool will provide helpful suggestions showing: • All available source layers from Streets v8 • Which fields are available in each layer • Examples of how to properly specify layers and filters
Parameters | Type | Description |
---|---|---|
layers | array | Layer configurations based on the mapbox-style-layers resource |
base_style | string optional | Base style template. ALWAYS use "standard" as the default for all new styles. Standard style provides the best performance and modern features. Only use Classic styles (streets/light/dark/satellite/outdoors/navigation) when explicitly requested with "create a classic style" or when working with an existing Classic style. |
global_settings | object optional | Global style settings |
standard_config | object optional | Configuration for the base Mapbox Standard style. These properties customize the underlying Standard style features - you can still add your own custom layers on top using the layers parameter. The Standard style provides a rich basemap that you can configure and enhance with additional layers. |
style_name | string optional | Name for the style |
This tool is read-only. It does not modify its environment.
style_comparison_tool
Generate a comparison URL for comparing two Mapbox styles side-by-side
Parameters | Type | Description |
---|---|---|
accessToken | string | Mapbox public access token (required, must start with pk.* and have styles:read permission). Secret tokens (sk.*) cannot be used as they cannot be exposed in browser URLs. Please use a public token or create one with styles:read permission. |
after | string | Mapbox style for the "after" side. Accepts: full style URL (mapbox://styles/username/styleId), username/styleId format, or just styleId if using your own styles |
before | string | Mapbox style for the "before" side. Accepts: full style URL (mapbox://styles/username/styleId), username/styleId format, or just styleId if using your own styles |
latitude | number optional | Latitude coordinate for the initial map center (-90 to 90). Must be provided together with longitude and zoom. |
longitude | number optional | Longitude coordinate for the initial map center (-180 to 180). Must be provided together with latitude and zoom. |
zoom | number optional | Initial zoom level for the map view (0-22). If provided along with latitude and longitude, sets the initial map position. |
This tool is read-only. It does not modify its environment.
tilequery_tool
Query vector and raster data from Mapbox tilesets at geographic coordinates
Parameters | Type | Description |
---|---|---|
latitude | number | Latitude coordinate to query |
longitude | number | Longitude coordinate to query |
bands | array optional | Specific band names to query (for rasterarray tilesets) |
dedupe | boolean optional | Whether to deduplicate identical features (default: true) |
geometry | string optional | Filter results by geometry type |
layers | array optional | Specific layer names to query from the tileset |
limit | number optional | Number of features to return (1-50, default: 5) |
radius | number optional | Radius in meters to search for features (default: 0) |
tilesetId | string optional | Tileset ID to query (default: mapbox.mapbox-streets-v8) |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
update_style_tool
Update an existing Mapbox style
Parameters | Type | Description |
---|---|---|
styleId | string | Style ID to update |
name | string optional | New name for the style |
style | object optional | Updated Mapbox style specification object |
This tool interacts with external entities.
{
"mcpServers": {
"mapbox-devkit": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MAPBOX_ACCESS_TOKEN",
"mcp/mapbox-devkit"
],
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_API_KEY_HERE"
}
}
}
}
Manual installation
You can install the MCP server using:
Installation for