style

MCP tool from MCP Devkit Server by mapbox

(string or object, required): Mapbox style to optimize (JSON string or style object)

How to use it

style is exposed by the MCP Devkit Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the style tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install MCP Devkit Server

$npx @anthropic-ai/dxt pack
FULL MCP DEVKIT SERVER LISTING

Other tools in MCP Devkit Server (36)

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.

consolidate-filters

Identify layers with identical filters that could be consolidated

contrastRatio

Calculated contrast ratio (e.g., 21 for black on white)

create-token

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

CreateStyleTool

Create a new Mapbox style

DeleteStyleTool

Delete a style by ID

expression

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

geojson

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

get_feedback_tool

Get a single user feedback item by its unique ID.

list_feedback_tool

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

list-tokens

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

ListStylesTool

List all styles for a Mapbox account

maxX

Eastern-most longitude

maxY

Northern-most latitude

message

Description of the issue

metadata

Object with expressionType, returnType, and depth

minimumRequired

Minimum contrast ratio required for the level and font size

minX

Western-most longitude

minY

Southern-most latitude

optimizedStyle

The optimized Mapbox style

passes

Whether the combination meets the specified WCAG level

path

JSON path to the problem (optional)

PreviewStyleTool

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

recommendations

Array of suggestions (only included when contrast fails)

remove-duplicate-layers

Remove layers that are exact duplicates

remove-empty-layers

Remove layers with no visible properties (excluding background layers)

remove-unused-sources

Remove sources not referenced by any layer

RetrieveStyleTool

Retrieve a specific style by ID

severity

"error", "warning", or "info"

simplify-expressions

Simplify boolean expressions (e.g., ["all", true] → true)

statistics

Object with type, feature count, geometry types, and bounding box

suggestion

How to fix the issue (optional)

summary

Statistics including size savings and percent reduction

UpdateStyleTool

Update an existing style

ValidateStyleTool

Validate Mapbox style JSON against the Mapbox Style Specification

wcagRequirements

Complete WCAG contrast requirements for all levels