# mcp-devkit-server

Connects AI assistants directly to Mapbox developer APIs for style editing and token management. Helpful when building mapping features in your workspace.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 61
- Author: mapbox
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mapbox/mcp-devkit-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-devkit-server

## What it does

This server connects your coding assistant to the Mapbox Styles API and local geospatial processing utilities. It includes tools for listing, inspecting, and generating map styles, alongside a conversational Style Builder tool. MCP resources like `resource://mapbox-style-layers` and `resource://mapbox-streets-v8-fields` provide reference schemas directly to the context window.

Local processing tools handle coordinate conversions, bounding box calculations, style comparison, and GeoJSON previews. You can run the server locally via `npx` or hook into the hosted HTTP endpoint.

A valid `MAPBOX_ACCESS_TOKEN` is mandatory. Every tool depends on specific token permissions. Style updates fail without `styles:write`, while token generation requires `tokens:write`.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp-devkit.mapbox.com/mcp`
- Environment variables: `MAPBOX_ACCESS_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp-devkit-server https://mcp-devkit.mapbox.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env MAPBOX_ACCESS_TOKEN=<MAPBOX_ACCESS_TOKEN> --transport stdio mcp-devkit-server -- npx -y @mapbox/mcp-devkit-server
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp-devkit-server --url https://mcp-devkit.mapbox.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp-devkit-server --env MAPBOX_ACCESS_TOKEN=<MAPBOX_ACCESS_TOKEN> -- npx -y @mapbox/mcp-devkit-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-devkit-server": {
            "url": "https://mcp-devkit.mapbox.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-devkit-server": {
            "command": "npx",
            "args": [
                "-y",
                "@mapbox/mcp-devkit-server"
            ],
            "env": {
                "MAPBOX_ACCESS_TOKEN": "<MAPBOX_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-devkit-server": {
            "type": "http",
            "url": "https://mcp-devkit.mapbox.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-devkit-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mapbox/mcp-devkit-server"
            ],
            "env": {
                "MAPBOX_ACCESS_TOKEN": "<MAPBOX_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp-devkit-server https://mcp-devkit.mapbox.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e MAPBOX_ACCESS_TOKEN=<MAPBOX_ACCESS_TOKEN> mcp-devkit-server npx -y @mapbox/mcp-devkit-server
```
Replace <…> with your own values

## When to use it
- Build and modify Mapbox styles using conversational prompts
- Inspect source layer fields from the Mapbox Streets v8 schema
- Convert coordinates and compute geographic bounding boxes
- Create and list Mapbox access tokens directly in your editor
- Compare and optimize map style specifications

## Example prompts
- Create a dark navigation map style using the Style Builder tool
- What fields are available in the Streets v8 landuse layer?
- Calculate the bounding box for these coordinates

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
