Mapbox MCP
Enables AI agents to control Mapbox GL JS maps, including camera navigation, layers, sources, markers, feature queries, screenshots, drawing, styles, 3D terrain/models, and geocoding.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Architecture
+----------------+ stdio +--------------------+ WebSocket +--------------------+
| AI Agent | <--------> | mapbox-mcp- | <---------> | mapbox-mcp- |
| (Claude, | MCP | runtime | JSON-RPC | bridge |
| Cursor...) | | (Node.js) | 2.0 | (Browser) |
+----------------+ +--------------------+ +--------------------+
|
+------v------+
| Mapbox GL |
| JS Map |
+-------------+Related MCP server: chrome-control-mcp
Packages
Package | Description |
MCP Server (stdio) -- 40+ tools across 8 toolsets, WebSocket bridge to browser | |
Browser SDK -- receives commands via WebSocket and controls Mapbox GL JS |
Quick Start
1. Install & Build
git clone https://github.com/gaopengbin/mapbox-mcp.git
cd mapbox-mcp
npm install
npm run build2. Start the MCP Runtime
npx mapbox-mcp-runtime
# => HTTP + WebSocket server on http://localhost:9200
# => MCP Server running (stdio), 30 tools registered3. Connect Browser
Open examples/minimal/index.html in a browser, enter your Mapbox access token. The bridge auto-connects to ws://localhost:9200.
Or integrate the bridge in your own app:
import { MapboxBridge } from 'mapbox-mcp-bridge'
const map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/dark-v11',
accessToken: 'YOUR_TOKEN'
})
const bridge = new MapboxBridge(map)
bridge.connect('ws://localhost:9200')4. Connect AI Agent
Add to your MCP client config (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"mapbox": {
"command": "npx",
"args": ["-y", "mapbox-mcp-runtime"]
}
}
}Now ask your AI: "Fly to the Eiffel Tower and add a GeoJSON polygon around it"
40+ Available Tools
Tools are organized into 8 toolsets. Default mode enables 5 core toolsets (~30 tools). Use list_toolsets and enable_toolset to dynamically activate more.
Toolset | Tools | Default |
view |
| Yes |
layer |
| Yes |
source |
| Yes |
marker |
| Yes |
interaction |
| Yes |
draw |
| No |
style |
| No |
3d |
| No |
geolocation |
| No |
Meta Tools (always available)
Tool | Description |
| List all available toolsets and their enabled status |
| Enable a toolset to register its tools |
Environment Variables
Variable | Default | Description |
|
| WebSocket server port |
|
| Comma-separated default toolsets |
Development
# Dev mode (auto-restart)
cd packages/mapbox-mcp-runtime
npm run dev
# Build all packages
npm run buildInspired By
This project follows the architecture of cesium-mcp, adapted for the Mapbox GL JS ecosystem.
Related Projects
cesium-mcp — AI control for CesiumJS 3D globe
openlayers-mcp — AI control for OpenLayers
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Provides AI assistants with direct access to Mapbox developer APIs and documentation.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to control the Google Chrome browser through a Node.js WebSocket bridge and a dedicated browser extension. It provides tools for capturing screenshots, executing JavaScript, managing tabs, and extracting page content via the MCP protocol.2-
- AlicenseNot gradedqualityBmaintenanceA native MCP server that gives AI assistants full Chrome control via the DevTools Protocol and an unpacked extension, including semantic element refs, real input, screenshots, and browser/tab/window management. It exposes 43 callable tools with a visible control overlay and an optional read-only security profile.2MIT
- AlicenseNot gradedqualityAmaintenanceConnects MCP-compatible AI agents to an anti-detection browser server so they can navigate sites, interact with pages, run searches, extract content, download files, and reuse sessions across multi-tab workflows. It exposes 47 tools over stdio or HTTP transport, letting agents automate the web without getting blocked.468 npmMIT
- AlicenseNot gradedqualityAmaintenanceConnects MCP-compatible AI agents to an anti-detection browser server, exposing dozens of tools for navigation, page interaction, search, content extraction, downloads, multi-tab handling, and persistent sessions. It lets agents automate and scrape the web at scale using accessibility snapshots, CSS-selector fallbacks, saved profiles, and batch workflows over stdio or authenticated HTTP transport.468 npmMIT