freshcrate
Home > MCP Servers > mcp-devkit-server

mcp-devkit-server

Developer-focused Mapbox MCP Server

Description

Developer-focused Mapbox MCP Server

README

Mapbox Developer MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with direct access to Mapbox developer APIs. This server enables AI models to interact with Mapbox services, helping developers build Mapbox applications more efficiently.

Mapbox-Developer-MCP.Server-demo.mp4

Table of Contents

Quick Start

Integration with Developer Tools

Get started by integrating with your preferred AI development environment:

DXT Package Distribution

This MCP server can be packaged as a DXT (Desktop Extension) file for easy distribution and installation. DXT is a standardized format for distributing local MCP servers, similar to browser extensions.

Creating the DXT Package

To create a DXT package:

# Install the DXT CLI tool
npm install -g @anthropic-ai/dxt

# Build the server first
npm run build

# Create the DXT package
npx @anthropic-ai/dxt pack

This will generate mcp-devkit-server.dxt using the configuration in manifest.json.

The DXT package includes:

  • Pre-built server code (dist/esm/index.js)
  • Server metadata and configuration
  • User configuration schema for the Mapbox access token
  • Automatic environment variable setup

Hosted MCP Endpoint

For quick access, you can use our hosted MCP endpoint:

Endpoint: https://mcp-devkit.mapbox.com/mcp

For detailed setup instructions for different clients and API usage, see the Hosted MCP Server Guide. Note: This guide references the standard MCP endpoint - you'll need to update the endpoint URL to use the devkit endpoint above.

Getting Your Mapbox Access Token

A Mapbox access token is required to use this MCP server.

  1. Sign up for a free Mapbox account at mapbox.com/signup
  2. Navigate to your Account page
  3. Create a new token with the required scopes for your use case

For more information about Mapbox access tokens, see the Mapbox documentation on access tokens.

⚠️ IMPORTANT: Token Privileges Required

The MAPBOX_ACCESS_TOKEN environment variable is required. Each tool requires specific token scopes/privileges to function properly. For example:

  • Reading styles requires styles:read scope
  • Creating styles requires styles:write scope
  • Managing tokens requires tokens:read and tokens:write scopes
  • Accessing feedback requires user-feedback:read scope

Tools

Documentation Tools

get_latest_mapbox_docs_tool - Access the latest official Mapbox documentation directly from the source. This tool fetches comprehensive, up-to-date information about all Mapbox APIs, SDKs, and developer resources from docs.mapbox.com/llms.txt.

Example prompts:

  • "What are the latest Mapbox APIs available for developers?"
  • "Show me all current Mapbox services and SDKs"
  • "I need up-to-date Mapbox documentation for my project"
  • "What mapping solutions does Mapbox offer for my tech stack?"
  • "Give me an overview of Mapbox's navigation and routing capabilities"
  • "Compare Mapbox web SDKs versus mobile SDKs"
  • "What's new in the Mapbox ecosystem?"

πŸ“– See more examples and interactive demo β†’

Reference Tools

get_reference_tool - Access static Mapbox reference documentation and schemas. This tool provides essential reference information that helps AI assistants understand Mapbox concepts and build correct styles and tokens.

Note: This tool exists as a workaround for Claude Desktop's current limitation with MCP resources. Claude Desktop can see resources (via resources/list) but doesn't automatically call resources/read to fetch their content. This tool provides the same reference data through the tool interface, which Claude Desktop does support. Other MCP clients that fully support the resources protocol can access this data directly as MCP Resources (see Resources section below).

Available References:

  • resource://mapbox-style-layers - Mapbox GL JS style specification reference guide covering all layer types (fill, line, symbol, circle, fill-extrusion) and their properties
  • resource://mapbox-streets-v8-fields - Complete field definitions for all Mapbox Streets v8 source layers, including enumerated values for each field (useful for building filters)
  • resource://mapbox-token-scopes - Comprehensive token scope reference explaining what each scope allows and which scopes are needed for different operations
  • resource://mapbox-layer-type-mapping - Mapping of Mapbox Streets v8 source layers to compatible GL JS layer types, with common usage patterns

Example prompts:

  • "What fields are available for the landuse layer?"
  • "Show me the token scopes reference"
  • "What layer type should I use for roads?"
  • "Get the Streets v8 fields reference"
  • "What scopes do I need to display a map?"

Style Management Tools

Complete set of tools for managing Mapbox styles via the Styles API:

Style Builder Tool - Create and modify Mapbox styles programmatically through conversational prompts

πŸ“– See the Style Builder documentation for detailed usage and examples β†’

ListStylesTool - List all styles for a Mapbox account

  • Input: limit (optional - max number of styles), start (optional - pagination token)
  • Returns: Array of style metadata with optional pagination info

CreateStyleTool - Create a new Mapbox style

  • Input: name, style (Mapbox style specification)
  • Returns: Created style details with ID

RetrieveStyleTool - Retrieve a specific style by ID

  • Input: styleId
  • Returns: Complete style specification

UpdateStyleTool - Update an existing style

  • Input: styleId, name (optional), style (optional)
  • Returns: Updated style details

DeleteStyleTool - Delete a style by ID

  • Input: styleId
  • Returns: Success confirmation

PreviewStyleTool - Generate preview URL for a Mapbox style using an existing public token

  • Input: styleId, title (optional), zoomwheel (optional), zoom (optional), center (optional), bearing (optional), pitch (optional)
  • Returns: URL to open the style preview in browser
  • Note: This tool automatically fetches the first available public token from your account for the preview URL. Requires at least one public token with styles:read scope.

ValidateStyleTool - Validate Mapbox style JSON against the Mapbox Style Specification

  • Input: style (Mapbox style JSON object or JSON string)
  • Returns: Validation results including errors, warnings, info messages, and style summary
  • Performs comprehensive offline validation checking:
    • Required fields (version, sources, layers)
    • Valid layer and source types
    • Source references and layer IDs
    • Common configuration issues
  • Note: This is an offline validation tool that doesn't require API access or token scopes

⚠️ Required Token Scopes:

All style tools require a valid Mapbox access token with specific scopes. Using a token without the correct scope will result in authentication errors.

  • ListStylesTool: Requires styles:list scope
  • CreateStyleTool: Requires styles:write scope
  • RetrieveStyleTool: Requires styles:download scope
  • UpdateStyleTool: Requires styles:write scope
  • DeleteStyleTool: Requires styles:write scope
  • PreviewStyleTool: Requires tokens:read scope (to list tokens) and at least one public token with styles:read scope

Note: The username is automatically extracted from the JWT token payload.

Example prompts:

  • "Can you create a Christmas themed Style for me?"
  • "Please generate a preview link for this style"
  • "Can you change the background to snow style?"

Token Management Tools

create-token

Create a new Mapbox access token with specified scopes and optional URL restrictions.

Parameters:

  • note (string, required): Description of the token
  • scopes (array of strings, required): Array of scopes/permissions for the token. Must be valid Mapbox scopes (see below)
  • allowedUrls (array of strings, optional): URLs where the token can be used (max 100)
  • expires (string, optional): Expiration time in ISO 8601 format (maximum 1 hour in the future)

Available Scopes:

Available scopes for public tokens:

  • styles:tiles - Read styles as raster tiles
  • styles:read - Read styles
  • fonts:read - Read fonts
  • datasets:read - Read datasets
  • vision:read - Read Vision API

Example:

{
  "note": "Development token for my app",
  "scopes": ["styles:read", "fonts:read"],
  "allowedUrls": ["https://myapp.com"]
}

Example prompts:

  • "Create a new Mapbox token for my web app with styles:read and fonts:read permissions"
  • "Generate a token that expires in 30 minutes with styles:tiles and vision:read scopes"
  • "Create a restricted token that only works on https://myapp.com with styles:read, fonts:read, and datasets:read"

list-tokens

List Mapbox access tokens for the authenticated user with optional filtering and pagination.

Parameters:

  • default (boolean, optional): Filter to show only the default public token
  • limit (number, optional): Maximum number of tokens to return per page (1-100)
  • sortby (string, optional): Sort tokens by "created" or "modified" timestamp
  • start (string, optional): The token ID after which to start the listing (when provided, auto-pagination is disabled)
  • usage (string, optional): Filter by token type: "pk" (public)

Pagination behavior:

  • When no start parameter is provided, the tool automatically fetches all pages of results
  • When a start parameter is provided, only the requested page is returned (for manual pagination control)

Example:

{
  "limit": 10,
  "sortby": "created",
  "usage": "pk"
}

Example prompts:

  • "List all my Mapbox tokens"
  • "Show me my public tokens sorted by creation date"
  • "Find my default public token"
  • "List the 5 most recently modified tokens"
  • "Show all public tokens in my account"

Feedback Tools

Access user feedback items from the Mapbox Feedback API. These tools allow you to retrieve and view user-reported issues, suggestions, and feedback about map data, routing, and POI details.

list_feedback_tool - List user feedback items with comprehensive filtering, sorting, and pagination options.

Parameters:

  • feedback_ids (array of UUIDs, optional): Filter by one or more feedback item IDs
  • after (string, optional): Cursor from a previous response for pagination
  • limit (number, optional): Maximum number of items to return (1-1000, default varies)
  • sort_by (string, optional): Sort field - received_at (default), created_at, or updated_at
  • order (string, optional): Sort direction - asc (default) or desc
  • status (array, optional): Filter by status - received, fixed, reviewed, out_of_scope
  • category (array, optional): Filter by feedback categories
  • search (string, optional): Search phrase to match against feedback text
  • trace_id (array, optional): Filter by trace IDs
  • created_before, created_after (ISO 8601 string, optional): Filter by creation date range
  • received_before, received_after (ISO 8601 string, optional): Filter by received date range
  • updated_before, updated_after (ISO 8601 string, optional): Filter by update date range
  • format (string, optional): Output format - formatted_text (default) or json_string

Returns: Paginated list of feedback items with pagination cursors.

get_feedback_tool - Get a single user feedback item by its unique ID.

Parameters:

  • feedback_id (UUID, required): The unique identifier of the feedback item
  • format (string, optional): Output format - formatted_text (default) or json_string

Returns: Single feedback item with details including status, category, feedback text, location, and timestamps.

⚠️ Required Token Scope:

  • Both feedback tools: Require user-feedback:read scope on the access token

Example prompts:

  • "List all feedback items with status 'fixed'"
  • "Show me feedback items in the 'poi_details' category created after July 1st"
  • "Get feedback item with ID 40eae4c7-b157-4b49-a091-7e1099bba77e"
  • "Find feedback items containing 'apartment building' in the feedback text"
  • "List all routing issue feedback from the last month"

Local Processing Tools

GeoJSON Preview tool (Beta)

Generate a geojson.io URL to visualize GeoJSON data. This tool:

  • Validates GeoJSON format (Point, LineString, Polygon, Feature, FeatureCollection, etc.)
  • Returns a direct URL to geojson.io for instant visualization
  • Supports both GeoJSON objects and JSON strings as input

Example usage:

{
  "geojson": {
    "type": "Point",
    "coordinates": [-122.4194, 37.7749]
  }
}

Returns: A single URL string that can be opened in a browser to view the GeoJSON data.

Note: This is a beta feature currently optimized for small to medium-sized GeoJSON files. Large GeoJSON files may result in very long URLs and slower performance. We plan to optimize this in future versions by implementing alternative approaches for handling large datasets.

Example prompts:

  • "Generate a preview URL for this GeoJSON data"
  • "Create a geojson.io link for my uploaded route.geojson file"

Validate GeoJSON tool

Validates GeoJSON objects for correctness, checking structure, coordinates, and geometry types. This offline validation tool performs comprehensive checks on GeoJSON data without requiring API access.

Parameters:

  • geojson (string or object, required): GeoJSON object or JSON string to validate

What it validates:

  • GeoJSON type validity (Feature, FeatureCollection, Point, LineString, Polygon, etc.)
  • Required properties (type, coordinates, geometry, features)
  • Coordinate array structure and position validity
  • Longitude ranges [-180, 180] and latitude ranges [-90, 90]
  • Polygon ring closure (first and last coordinates should match)
  • Minimum position requirements (LineString needs 2+, Polygon rings need 4+ positions)

Returns:

Validation results including:

  • valid (boolean): Overall validity
  • errors (array): Critical errors that make the GeoJSON invalid
  • warnings (array): Non-critical issues (e.g., unclosed polygon rings, out-of-range coordinates)
  • info (array): Informational messages
  • statistics: Object with type, feature count, geometry types, and bounding box

Each issue includes:

  • severity: "error", "warning", or "info"
  • message: Description of the issue
  • path: JSON path to the problem (optional)
  • suggestion: How to fix the issue (optional)

Example:

{
  "geojson": {
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [102.0, 0.5]
    },
    "properties": {
      "name": "Test Point"
    }
  }
}

Returns:

{
  "valid": true,
  "errors": [],
  "warnings": [],
  "info": [],
  "statistics": {
    "type": "Feature",
    "featureCount": 1,
    "geometryTypes": ["Point"],
    "bbox": [102.0, 0.5, 102.0, 0.5]
  }
}

Example prompts:

  • "Validate this GeoJSON file and tell me if there are any errors"
  • "Check if my GeoJSON coordinates are valid"
  • "Is this Feature Collection properly formatted?"

Note: This is an offline validation tool that doesn't require API access or token scopes.

Validate Expression tool

Validates Mapbox style expressions for syntax, operators, and argument correctness. This offline validation tool performs comprehensive checks on Mapbox expressions without requiring API access.

Parameters:

  • expression (array or string, required): Mapbox expression to validate (array format or JSON string)

What it validates:

  • Expression syntax and structure
  • Valid operator names
  • Correct argument counts for each operator
  • Nested expression validation
  • Expression depth (warns about deeply nested expressions)

Returns:

Validation results including:

  • valid (boolean): Overall validity
  • errors (array): Critical errors that make the expression invalid
  • warnings (array): Non-critical issues (e.g., deeply nested expressions)
  • info (array): Informational messages
  • metadata: Object with expressionType, returnType, and depth

Each issue includes:

  • severity: "error", "warning", or "info"
  • message: Description of the issue
  • path: Path to the problem in the expression (optional)
  • suggestion: How to fix the issue (optional)

Supported expression types:

  • Data: get, has, id, geometry-type, feature-state, properties
  • Lookup: at, in, index-of, slice, length
  • Decision: case, match, coalesce
  • Ramps & interpolation: interpolate, step
  • Math: +, -, *, /, %, ^, sqrt, log10, log2, ln, abs, etc.
  • String: concat, downcase, upcase, is-supported-script
  • Color: rgb, rgba, to-rgba, hsl, hsla
  • Type: array, boolean, collator, format, image, literal, number, number-format, object, string, to-boolean, to-color, to-number, to-string, typeof
  • Camera: zoom, pitch, distance-from-center
  • Variable binding: let, var

Example:

{
  "expression": ["get", "population"]
}

Returns:

{
  "valid": true,
  "errors": [],
  "warnings": [],
  "info": [
    {
      "severity": "info",
      "message": "Expression validated successfully"
    }
  ],
  "metadata": {
    "expressionType": "data",
    "returnType": "any",
    "depth": 1
  }
}

Example prompts:

  • "Validate this Mapbox expression: ["get", "population"]"
  • "Check if this interpolation expression is correct"
  • "Is this expression syntax valid for Mapbox styles?"

Note: This is an offline validation tool that doesn't require API access or token scopes.

Coordinate Conversion tool

Convert coordinates between different coordinate reference systems (CRS), specifically between WGS84 (EPSG:4326) and Web Mercator (EPSG:3857).

Parameters:

  • coordinates (array, required): Array of coordinate pairs to convert. Each coordinate pair should be [longitude, latitude] for WGS84 or [x, y] for Web Mercator
  • fromCRS (string, required): Source coordinate reference system. Supported values: "EPSG:4326" (WGS84), "EPSG:3857" (Web Mercator)
  • toCRS (string, required): Target coordinate reference system. Supported values: "EPSG:4326" (WGS84), "EPSG:3857" (Web Mercator)

Returns:

An array of converted coordinate pairs in the target CRS format.

Example:

{
  "coordinates": [
    [-122.4194, 37.7749],
    [-74.006, 40.7128]
  ],
  "fromCRS": "EPSG:4326",
  "toCRS": "EPSG:3857"
}

Example prompts:

  • "Convert these coordinates from WGS84 to Web Mercator: [-122.4194, 37.7749] and [-74.006, 40.7128]"
  • "Convert the coordinates [-13627361.0, 4544761.0] from Web Mercator to WGS84"

Bounding Box tool

Calculates the bounding box of given GeoJSON content, returning coordinates as [minX, minY, maxX, maxY].

Parameters:

  • geojson (string or object, required): GeoJSON content to calculate bounding box for. Can be provided as:
    • A JSON string that will be parsed
    • A GeoJSON object

Supported GeoJSON types:

  • Point
  • LineString
  • Polygon
  • MultiPoint
  • MultiLineString
  • MultiPolygon
  • GeometryCollection
  • Feature
  • FeatureCollection

Returns:

An array of four numbers representing the bounding box: [minX, minY, maxX, maxY]

  • minX: Western-most longitude
  • minY: Southern-most latitude
  • maxX: Eastern-most longitude
  • maxY: Northern-most latitude

Example:

{
  "geojson": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "geometry": {
          "type": "Point",
          "coordinates": [-73.9857, 40.7484]
        },
        "properties": {}
      },
      {
        "type": "Feature",
        "geometry": {
          "type": "Point",
          "coordinates": [-74.006, 40.7128]
        },
        "properties": {}
      }
    ]
  }
}

Example prompts:

  • "Calculate the bounding box of this GeoJSON file" (then upload a .geojson file)
  • "What's the bounding box for the coordinates in the uploaded parks.geojson file?"

Color Contrast Checker tool

Checks color contrast ratios between foreground and background colors for WCAG 2.1 accessibility compliance.

Parameters:

  • foregroundColor (string, required): Foreground color (text color) in any CSS format (hex, rgb, rgba, named colors)
  • backgroundColor (string, required): Background color in any CSS format (hex, rgb, rgba, named colors)
  • level (string, optional): WCAG conformance level to check against ("AA" or "AAA", default: "AA")
  • fontSize (string, optional): Font size category ("normal" or "large", default: "normal")
    • Normal: < 18pt or < 14pt bold
    • Large: β‰₯ 18pt or β‰₯ 14pt bold

Color format support:

  • Hex colors: #RGB, #RRGGBB, #RRGGBBAA
  • RGB/RGBA: rgb(r, g, b), rgba(r, g, b, a)
  • Named colors: black, white, red, blue, gray, etc.

WCAG 2.1 requirements:

  • WCAG AA: 4.5:1 for normal text, 3:1 for large text
  • WCAG AAA: 7:1 for normal text, 4.5:1 for large text

Returns:

A JSON object with:

  • contrastRatio: Calculated contrast ratio (e.g., 21 for black on white)
  • passes: Whether the combination meets the specified WCAG level
  • level: WCAG level checked ("AA" or "AAA")
  • fontSize: Font size category ("normal" or "large")
  • minimumRequired: Minimum contrast ratio required for the level and font size
  • wcagRequirements: Complete WCAG contrast requirements for all levels
  • recommendations: Array of suggestions (only included when contrast fails)

Example:

{
  "contrastRatio": 21,
  "passes": true,
  "level": "AA",
  "fontSize": "normal",
  "minimumRequired": 4.5,
  "wcagRequirements": {
    "AA": { "normal": 4.5, "large": 3.0 },
    "AAA": { "normal": 7.0, "large": 4.5 }
  }
}

Example prompts:

  • "Check if black text on white background is WCAG AA compliant"
  • "What's the contrast ratio between #4264fb and white?"
  • "Does gray text (#767676) on white meet AAA standards for large text?"
  • "Check color contrast for rgb(51, 51, 51) on rgb(245, 245, 245)"
  • "Is this color combination accessible: foreground 'navy' on background 'lightblue'?"

compare_styles_tool

Compares two Mapbox styles and reports structural differences, including changes to layers, sources, and properties. This offline comparison tool performs deep object comparison without requiring API access.

Parameters:

  • styleA (string or object, required): First Mapbox style to compare (JSON string or style object)
  • styleB (string or object, required): Second Mapbox style to compare (JSON string or style object)
  • ignoreMetadata (boolean, optional): If true, ignores metadata fields (id, owner, created, modified, draft, visibility) when comparing

Comparison features:

  • Deep recursive comparison of nested structures
  • Layer comparison by ID (not array position)
  • Detailed diff reporting with JSON paths
  • Identifies additions, removals, and modifications
  • Optional metadata filtering

Returns:

{
  "identical": false,
  "differences": [
    {
      "path": "layers.water.paint.fill-color",
      "type": "modified",
      "valueA": "#a0c8f0",
      "valueB": "#b0d0ff",
      "description": "Modified property at layers.water.paint.fill-color"
    }
  ],
  "summary": {
    "totalDifferences": 1,
    "added": 0,
    "removed": 0,
    "modified": 1
  }
}

Example prompts:

  • "Compare these two Mapbox styles and show me the differences"
  • "What changed between my old style and new style?"
  • "Compare styles ignoring metadata fields"

Style Optimization tool

Optimizes Mapbox styles by removing redundancies, simplifying expressions, and reducing file size.

Parameters:

  • style (string or object, required): Mapbox style to optimize (JSON string or style object)
  • optimizations (array, optional): Specific optimizations to apply. If not specified, all optimizations are applied. Available optimizations:
    • remove-unused-sources: Remove sources not referenced by any layer
    • remove-duplicate-layers: Remove layers that are exact duplicates
    • simplify-expressions: Simplify boolean expressions (e.g., ["all", true] β†’ true)
    • remove-empty-layers: Remove layers with no visible properties (excluding background layers)
    • consolidate-filters: Identify layers with identical filters that could be consolidated

Optimizations performed:

  • Remove unused sources: Identifies and removes source definitions that aren't referenced by any layer
  • Remove duplicate layers: Detects layers with identical properties (excluding ID) and removes duplicates
  • Simplify expressions: Simplifies boolean logic in filters and property expressions:
    • ["all", true] β†’ true
    • ["any", false] β†’ false
    • ["!", false] β†’ true
    • ["!", true] β†’ false
  • Remove empty layers: Removes layers with no paint or layout properties (background layers are preserved)
  • Consolidate filters: Identifies groups of layers with identical filter expressions

Returns:

A JSON object with:

  • optimizedStyle: The optimized Mapbox style
  • optimizations: Array of optimizations applied
  • summary: Statistics including size savings and percent reduction

Example:

{
  "optimizedStyle": { "version": 8, "sources": {}, "layers": [] },
  "optimizations": [
    {
      "type": "remove-unused-sources",
      "description": "Removed 2 unused source(s): unused-source1, unused-source2",
      "count": 2
    }
  ],
  "summary": {
    "totalOptimizations": 2,
    "originalSize": 1234,
    "optimizedSize": 890,
    "sizeSaved": 344,
    "percentReduction": 27.88
  }
}

Example prompts:

  • "Optimize this Mapbox style to reduce its file size"
  • "Remove unused sources from my style"
  • "Simplify the expressions in this style"
  • "Find and remove duplicate layers in my map style"
  • "Optimize my style but only remove unused sources and empty layers"

Agent Skills

This repository includes Agent Skills that provide domain expertise for building maps with Mapbox. Skills teach AI assistants about map design, security best practices, and common implementation patterns.

Available Skills:

  • 🎨 mapbox-cartography: Map design principles, color theory, visual hierarchy, typography
  • πŸ” mapbox-token-security: Token management, scope control, URL restrictions, rotation strategies
  • πŸ“ mapbox-style-patterns: Common style patterns and layer configurations for typical scenarios
  • πŸ”§ mapbox-integration-patterns: Framework-specific integration patterns for React, Vue, Svelte, Angular, and vanilla JS
  • βœ… mapbox-style-quality: Expert guidance on validating, optimizing, and ensuring quality of Mapbox styles through validation, accessibility checks, and optimization

Skills complement the MCP server by providing expertise (how to think about design) while tools provide capabilities (how to execute actions).

For complete documentation and usage instructions, see skills/README.md.

Using Skills with Claude Code

To use these skills in Claude Code, create a symlink:

mkdir -p .claude
ln -s ../skills .claude/skills

Or copy to your global skills directory:

cp -r skills/* ~/.claude/skills/

Using Skills with Claude API

Upload skills as zip files via the Skills API. See Claude API Skills documentation.

Prompts

MCP Prompts are pre-built workflow templates that guide AI assistants through multi-step tasks. They orchestrate multiple tools in the correct sequence, providing best practices and error handling built-in.

Available Prompts:

create-and-preview-style

Create a new Mapbox map style and generate a shareable preview link with automatic token management.

Arguments:

  • style_name (required): Name for the new map style
  • style_description (optional): Description of the style theme or purpose
  • base_style (optional): Base style to start from (e.g., "streets-v12", "dark-v11")
  • preview_location (optional): Location to center the preview map
  • preview_zoom (optional): Zoom level for the preview (0-22, default: 12)

What it does:

  1. Checks for an existing public token with styles:read scope
  2. Creates a new public token if needed
  3. Creates the map style
  4. Generates a preview link

Example usage:

Use prompt: create-and-preview-style
Arguments:
  style_name: "My Custom Map"
  style_description: "A dark-themed map for nighttime navigation"
  base_style: "dark-v11"
  preview_location: "San Francisco"
  preview_zoom: "13"

build-custom-map

Use conversational AI to build a custom styled map based on a theme description.

Arguments:

  • theme (required): Theme description (e.g., "dark cyberpunk", "nature-focused", "minimal monochrome")
  • emphasis (optional): Features to emphasize (e.g., "parks and green spaces", "transit lines")
  • preview_location (optional): Location to center the preview map
  • preview_zoom (optional): Zoom level for the preview (0-22, default: 12)

What it does:

  1. Uses the Style Builder tool to create a themed style based on your description
  2. Creates the style in your Mapbox account
  3. Generates a preview link

Example usage:

Use prompt: build-custom-map
Arguments:
  theme: "retro 80s neon"
  emphasis: "nightlife and entertainment venues"
  preview_location: "Tokyo"
  preview_zoom: "14"

analyze-geojson

Analyze and visualize GeoJSON data with automatic validation and bounding box calculation.

Arguments:

  • geojson_data (required): GeoJSON object or string to analyze
  • show_bounds (optional): Calculate and display bounding box (true/false, default: true)
  • convert_coordinates (optional): Provide Web Mercator conversion examples (true/false, default: false)

What it does:

  1. Validates GeoJSON format
  2. Calculates bounding box (if requested)
  3. Provides coordinate conversion examples (if requested)
  4. Generates an interactive visualization link

Example usage:

Use prompt: analyze-geojson
Arguments:
  geojson_data: {"type":"FeatureCollection","features":[...]}
  show_bounds: "true"
  convert_coordinates: "false"

setup-mapbox-project

Complete setup workflow for a new Mapbox project with proper token security and style initialization.

Arguments:

  • project_name (required): Name of the project or application
  • project_type (optional): Type of project: "web", "mobile", "backend", or "fullstack" (default: "web")
  • production_domain (optional): Production domain for URL restrictions (e.g., "myapp.com")
  • style_theme (optional): Initial style theme: "light", "dark", "streets", "outdoors", "satellite" (default: "light")

What it does:

  1. Creates development token with localhost URL restrictions
  2. Creates production token with domain URL restrictions (if provided)
  3. Creates backend secret token for server-side operations (if needed)
  4. Creates an initial map style using the specified theme
  5. Generates preview link and provides integration guidance

Example usage:

Use prompt: setup-mapbox-project
Arguments:
  project_name: "Restaurant Finder"
  project_type: "fullstack"
  production_domain: "restaurantfinder.com"
  style_theme: "light"

debug-mapbox-integration

Systematic troubleshooting workflow for diagnosing and fixing Mapbox integration issues.

Arguments:

  • issue_description (required): Description of the problem (e.g., "map not loading", "401 error")
  • error_message (optional): Exact error message from console or logs
  • style_id (optional): Mapbox style ID being used, if applicable
  • environment (optional): Where the issue occurs: "development", "production", "staging"

What it does:

  1. Verifies token validity and required scopes
  2. Checks style configuration and existence
  3. Analyzes error messages and provides specific solutions
  4. Tests API endpoints to isolate the problem
  5. Provides step-by-step fix instructions
  6. Offers prevention strategies

Example usage:

Use prompt: debug-mapbox-integration
Arguments:
  issue_description: "Getting 401 errors when map loads"
  error_message: "401 Unauthorized"
  style_id: "my-style-id"
  environment: "production"

design-data-driven-style

Create a map style with data-driven properties that respond dynamically to feature data using expressions.

Arguments:

  • style_name (required): Name for the data-driven style
  • data_description (required): Description of the data (e.g., "population by city", "earthquake magnitudes")
  • property_name (required): Name of the data property to visualize (e.g., "population", "magnitude")
  • visualization_type (optional): How to visualize: "color", "size", "both", "heatmap" (default: "color")
  • color_scheme (optional): Color scheme: "sequential", "diverging", "categorical" (default: "sequential")

What it does:

  1. Explains data-driven styling concepts and expressions
  2. Provides appropriate expression templates for your use case
  3. Offers color scales and size ranges based on visualization type
  4. Creates the style with data-driven layers
  5. Includes advanced expression examples (zoom-based, conditional)
  6. Provides best practices for accessibility and performance

Example usage:

Use prompt: design-data-driven-style
Arguments:
  style_name: "Population Density Map"
  data_description: "City population data"
  property_name: "population"
  visualization_type: "both"
  color_scheme: "sequential"

prepare-style-for-production

Comprehensive quality validation workflow for Mapbox styles before production deployment.

Arguments:

  • style_id_or_json (required): Either a Mapbox style ID or complete style JSON
  • skip_optimization (optional): Set to "true" to skip style optimization (default: false)
  • wcag_level (optional): WCAG compliance level: "AA" or "AAA" (default: "AA")

What it does:

  1. Loads the style (retrieves from Mapbox or parses JSON)
  2. Validates all expressions (filters, paint properties, layout properties)
  3. Validates GeoJSON sources for coordinate and structure errors
  4. Checks color contrast for text layers (WCAG compliance)
  5. Optimizes the style (removes redundancies, simplifies expressions)
  6. Generates a comprehensive quality report with deployment readiness assessment

Example usage:

Use prompt: prepare-style-for-production
Arguments:
  style_id_or_json: "username/my-style-id"
  wcag_level: "AA"
  skip_optimization: "false"

Related:

See the mapbox-style-quality skill for detailed guidance on when to use validation tools, best practices, and optimization strategies.

Resources

This server exposes static reference documentation as MCP Resources. While these are primarily accessed through the get_reference_tool, MCP clients that fully support the resources protocol can access them directly.

Available Resources:

  1. Mapbox Style Specification Guide (resource://mapbox

Release History

VersionChangesUrgencyDate
v0.6.0## What's Changed * chore(release): 0.5.1 β€” security dependency upgrades by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/87 * added exports (prerequ for opex changes) by @ctufts in https://github.com/mapbox/mcp-devkit-server/pull/88 * Remove skills and point to mapbox-agent-skills repository by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/65 * fix: upgrade @modelcontextprotocol/sdk to 1.29.0 to fix CVE-2026-4926 by @mattpodwysocki in https://github.cMedium4/1/2026
v0.5.0## What's Changed * Add CHANGELOG requirement to PR guidelines by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/67 * added remote to the server.json for discoverability of hosted devkit by @ctufts in https://github.com/mapbox/mcp-devkit-server/pull/80 * MCP Apps: render panels inline with Mapbox GL JS (no inner iframes) by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/62 * Add glama.json for Glama MCP registry claiming by @mattpodwysocki in https:/Low2/24/2026
v0.4.7## What's Changed * add feedback tools by @tilyupo in https://github.com/mapbox/mcp-devkit-server/pull/40 * [otel] Update DevKit Server with OTEL implementation by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/39 * [otel] Update DevKit Server docs with OTEL information by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/41 * [mcp-ui] Adding MCP-UI support to those that support URLs by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/42 Low1/30/2026
v0.4.6## What's Changed * [tools] Update tools to use structuredContent with schema by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/33 * Revert "Merge pull request #33 from mapbox/output_schemas" by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/35 * Reapply "Merge pull request #33 from mapbox/output_schemas" by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/36 * [resources] Add new resources to server with fallback tool by @mattpodwysocki in Low10/28/2025
v0.4.5## What's Changed * Add mcpName to package.json by @ianshward in https://github.com/mapbox/mcp-devkit-server/pull/32 **Full Changelog**: https://github.com/mapbox/mcp-devkit-server/compare/v0.4.4...v0.4.5Low10/14/2025
v0.4.4## What's Changed * Add to MCP registry by @ianshward in https://github.com/mapbox/mcp-devkit-server/pull/31 ## New Contributors * @ianshward made their first contribution in https://github.com/mapbox/mcp-devkit-server/pull/31 **Full Changelog**: https://github.com/mapbox/mcp-devkit-server/compare/v0.4.3...v0.4.4Low10/7/2025
v0.4.3## What's Changed * [bug] Fix version utils copy issue by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/22 * Remove logging by @zmofei in https://github.com/mapbox/mcp-devkit-server/pull/30 **Full Changelog**: https://github.com/mapbox/mcp-devkit-server/compare/v0.4.2...v0.4.3Low10/2/2025
v0.4.2## What's Changed * Ensure manifest.json version always matches the package.json by @zmofei in https://github.com/mapbox/mcp-devkit-server/pull/29 **Full Changelog**: https://github.com/mapbox/mcp-devkit-server/compare/v0.4.1...v0.4.2Low9/30/2025
v0.4.1## What's Changed * [eslint] Update ESLint config for project by @mattpodwysocki in https://github.com/mapbox/mcp-devkit-server/pull/20 * Style builder tool by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/21 * Update to MIT license by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/25 * Update style builder tool for Standard style support by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/24 * [chore] Add unit missing unit tests for tools by @matLow9/30/2025
v0.4.0## What's Changed * Support authentication token parameter for Mapbox API tools by @zmofei in https://github.com/mapbox/mcp-devkit-server/pull/6 * Filter tools by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/7 * Style comparison by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/8 * Tilequery tool by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/9 * Fix preview style can not get token in the hosted version by @zmofei in https://github.com/mapbox/mcpLow9/10/2025
v0.2.3## What's Changed * DXT package patch by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/5 **Full Changelog**: https://github.com/mapbox/mcp-devkit-server/compare/0.2.2...v0.2.3Low8/4/2025
v0.2.2## What's Changed * Sync code from private repository for public release by @zmofei in https://github.com/mapbox/mcp-devkit-server/pull/1 * Testing automated release workflow by @jussi-sa in https://github.com/mapbox/mcp-devkit-server/pull/2 * Add DXT package distribution support by @zmofei in https://github.com/mapbox/mcp-devkit-server/pull/3 ## New Contributors * @zmofei made their first contribution in https://github.com/mapbox/mcp-devkit-server/pull/1 * @jussi-sa made their first conLow7/31/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

stigixStigix is a lab platform to validate SD‑WAN and SASE. ​ It unifies SaaS traffic generation, security tests, convergence probes, and voice/IoT/VyOS simulations in one web UIv1.2.2-patch.81
kibiRepo-local, per-git-branch, queryable knowledge base for LLM Agents.kibi-opencode@0.8.0
claw-pilotMulti-agent orchestration runtime with task board, flow engine, budget control, MCP integration and real-time dashboard. Self-hosted on Linux/macOS.v0.81.1
trace-mcpMCP server for Claude Code and Codex. One tool call replaces ~42 minutes of agent explorationv1.28.0
@baseplate-dev/plugin-aiAI agent integration plugin for Baseplate β€” generates AGENTS.md, CLAUDE.md, .mcp.json, and .agents/ configuration files0.6.8