# mcp-server

Connects Mapbox location APIs to your AI assistant for geocoding, multi-modal routing, and map rendering. Helpful when building travel planners or spatial query assistants.

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

## What it does

The server exposes Mapbox tools over a hosted HTTP endpoint at `https://mcp.mapbox.com/mcp` or runs locally using Node.js via `@mapbox/mcp-server`. It lets your assistant convert street addresses into coordinates and calculate travel directions with live traffic.

Through `render_map_tool`, assistants can display an interactive Mapbox GL JS map with custom GeoJSON directly in supported chat views. Offline spatial calculations like measuring distances and polygon areas run locally without hitting web endpoints.

Every remote query requires this key. Obtain a `MAPBOX_ACCESS_TOKEN` from your Mapbox account before configuring the client.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.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-server https://mcp.mapbox.com/mcp
```

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

### Codex

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

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

### Cursor

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

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mapbox-mcp-server": {
            "type": "http",
            "url": "https://mcp.mapbox.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mapbox-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mapbox/mcp-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 mapbox-mcp-server https://mcp.mapbox.com/mcp
```

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

## When to use it
- calculate travel directions with current traffic delays
- locate points of interest around specific coordinates
- generate isochrone polygons for walking or driving times
- render custom GeoJSON objects on interactive web maps
- match raw GPS points to the actual road grid

## Example prompts
- Find coffee shops within a ten-minute walk from my coordinates
- Optimize a delivery route for these four addresses and show the total duration
- Draw an interactive map with a 15-minute driving isochrone around downtown

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

## Other versions with the same name
- [mcp-server · heyputer](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — ★ 43872
- [mcp-server · packmindhub](https://affpapa.org/en/nevibecode/mcp/packmindhub-mcp-server.md) — ★ 319
- [mcp-server · bingowon](https://affpapa.org/en/nevibecode/mcp/bingowon-mcp-server.md) — ★ 121
- [mcp-server · ui5](https://affpapa.org/en/nevibecode/mcp/ui5-mcp-server.md) — ★ 104
- [mcp-server · cap-js](https://affpapa.org/en/nevibecode/mcp/cap-js-mcp-server.md) — ★ 117

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