# Mapbox MCP server

> Enables AI agents to perform geocoding, POI search, routing, isochrone generation, and interactive map rendering using Mapbox APIs.

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

## Install

### Claude Code

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

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

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

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

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

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

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

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

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

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

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

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MAPBOX_ACCESS_TOKEN` | yes | yes | Your Mapbox access token |
| `CLIENT_NEEDS_RESOURCE_FALLBACK` | no | no |  |

## Tools (1)

- `uri`

## FAQ

### What is required to use the Mapbox MCP server?

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

### Can I visualize maps directly in my chat interface?

Yes, the render_map_tool allows for live, interactive map rendering of routes, search results, and custom GeoJSON inside supported chat clients.

### Does the server require internet for all geospatial calculations?

No, it includes offline geospatial tools for distance, area, bearing, and spatial analysis using Turf.js without requiring API calls.
