AgentStack
MCP verified MIT Self-run

Mcp Devkit Server

mcp-mapbox-mcp-devkit-server · by mapbox

Developer-focused Mapbox MCP Server

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add mcp-mapbox-mcp-devkit-server

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Mcp Devkit Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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.

> Looking for Mapbox documentation access? Use mcp-docs-server alongside this server — it provides AI assistants with access to Mapbox documentation, guides, and API references from docs.mapbox.com.

https://github.com/user-attachments/assets/8b1b8ef2-9fba-4951-bc9a-beaed4f6aff6

Table of Contents

  • [Mapbox Developer MCP Server](#mapbox-developer-mcp-server)
  • [Table of Contents](#table-of-contents)
  • [Quick Start](#quick-start)
  • [Integration with Developer Tools](#integration-with-developer-tools)
  • [DXT Package Distribution](#dxt-package-distribution)
  • [Creating the DXT Package](#creating-the-dxt-package)
  • [Hosted MCP Endpoint](#hosted-mcp-endpoint)
  • [Getting Your Mapbox Access Token](#getting-your-mapbox-access-token)
  • [Tools](#tools)
  • [Reference Tools](#reference-tools)
  • [Style Management Tools](#style-management-tools)
  • [Token Management Tools](#token-management-tools)
  • [create-token](#create-token)
  • [list-tokens](#list-tokens)
  • [Feedback Tools](#feedback-tools)
  • [Local Processing Tools](#local-processing-tools)
  • [GeoJSON Preview tool (Beta)](#geojson-preview-tool-beta)
  • [Coordinate Conversion tool](#coordinate-conversion-tool)
  • [Bounding Box tool](#bounding-box-tool)
  • [comparestylestool](#comparestylestool)
  • [Style Optimization tool](#style-optimization-tool)
  • [Resources](#resources)
  • [Observability \& Tracing](#observability--tracing)
  • [Features](#features)
  • [Quick Start with Jaeger](#quick-start-with-jaeger)
  • [Supported Backends](#supported-backends)
  • [Documentation](#documentation)
  • [Environment Variables](#environment-variables)
  • [Development](#development)
  • [Testing](#testing)
  • [Tool Snapshot Tests](#tool-snapshot-tests)
  • [Inspecting Server](#inspecting-server)
  • [Using Node.js](#using-nodejs)
  • [Using Docker](#using-docker)
  • [Creating New Tools](#creating-new-tools)
  • [Environment Variables](#environment-variables-1)
  • [VERBOSEERRORS](#verboseerrors)
  • [Troubleshooting](#troubleshooting)
  • [Release Process](#release-process)
  • [Contributing](#contributing)

Quick Start

Integration with Developer Tools

Get started by integrating with your preferred AI development environment:

  • [Claude Code Integration](./docs/claude-code-integration.md) - Command-line development with Claude
  • [Claude Desktop Integration](./docs/claude-desktop-integration.md) - Desktop application integration
  • [Cursor Integration](./docs/cursor-integration.md) - Cursor IDE integration
  • [VS Code Integration](./docs/vscode-integration.md) - Visual Studio Code with GitHub Copilot

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

Reference Tools

Reference data is exposed as MCP Resources (see [Resources](#resources) section). MCP clients that support the resources protocol can access them directly.

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 →](./docs/STYLE_BUILDER.md)

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.

listfeedbacktool - 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.

getfeedbacktool - 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

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.