# Mapbox Developer Devkit MCP server

> Enables AI assistants to interact with Mapbox services, manage styles, create access tokens, and access developer API references.

- Repository: https://github.com/mapbox/mcp-devkit-server
- Page: https://hostedmcp.org/servers/mapbox/mcp-devkit-server
- Official: yes
- Transport: stdio, remote
- Stars: 62
- License: MIT
- Latest version: 0.10.0

## Install

### Claude Code

```sh
claude mcp add --env MAPBOX_ACCESS_TOKEN=<YOUR_MAPBOX_ACCESS_TOKEN> mcp-devkit-server -- npx -y @mapbox/mcp-devkit-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-devkit-server": {
      "command": "npx",
      "args": [
        "-y",
        "@mapbox/mcp-devkit-server"
      ],
      "env": {
        "MAPBOX_ACCESS_TOKEN": "<YOUR_MAPBOX_ACCESS_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-devkit-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mapbox/mcp-devkit-server"
      ],
      "env": {
        "MAPBOX_ACCESS_TOKEN": "<YOUR_MAPBOX_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-devkit-server": {
      "command": "npx",
      "args": [
        "-y",
        "@mapbox/mcp-devkit-server"
      ],
      "env": {
        "MAPBOX_ACCESS_TOKEN": "<YOUR_MAPBOX_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-devkit-server]
command = "npx"
args = ["-y", "@mapbox/mcp-devkit-server"]

[mcp_servers.mcp-devkit-server.env]
MAPBOX_ACCESS_TOKEN = "<YOUR_MAPBOX_ACCESS_TOKEN>"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-devkit-server": {
      "command": "npx",
      "args": [
        "-y",
        "@mapbox/mcp-devkit-server"
      ],
      "env": {
        "MAPBOX_ACCESS_TOKEN": "<YOUR_MAPBOX_ACCESS_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MAPBOX_ACCESS_TOKEN` | yes | yes | Your Mapbox access token. See docs for required scopes. |
| `ENABLE_MCP_UI` | no | no |  |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | no | no |  |
| `OTEL_SERVICE_NAME` | no | no |  |
| `OTEL_TRACES_SAMPLER` | no | no |  |
| `OTEL_TRACES_SAMPLER_ARG` | no | no |  |

## Tools (59)

- `resource`
- `note`
- `scopes`
- `allowedUrls`
- `expires`
- `styles`
- `fonts`
- `datasets`
- `vision`
- `default`
- `limit`
- `sortby`
- `start`
- `usage`
- `feedback_ids`
- `after`
- `sort_by`
- `order`
- `status`
- `category`
- `search`
- `trace_id`
- `format`
- `feedback_id`
- `geojson`
- `valid`
- `errors`
- `warnings`
- `info`
- `statistics`
- `severity`
- `message`
- `path`
- `suggestion`
- `expression`
- `metadata`
- `coordinates`
- `fromCRS`
- `toCRS`
- `minX`
- `minY`
- `maxX`
- `maxY`
- `foregroundColor`
- `backgroundColor`
- `level`
- `fontSize`
- `contrastRatio`
- `passes`
- `minimumRequired`
- `wcagRequirements`
- `recommendations`
- `style`
- `optimizations`
- `optimizedStyle`
- `summary`
- `preview_style_tool`
- `geojson_preview_tool`
- `style_comparison_tool`

## FAQ

### What is required to use this MCP server?

A Mapbox access token is required, and specific tools require different token scopes such as styles:read or styles:write.

### Can I use this server to manage Mapbox styles?

Yes, it includes a complete set of tools for creating, listing, retrieving, updating, deleting, and validating Mapbox styles.

### Does the server support style validation?

Yes, the ValidateStyleTool performs offline validation of Mapbox style JSON against the Mapbox Style Specification.
