AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Mapbox Mcp

mcp-gaopengbin-mapbox-mcp · by gaopengbin

AI-Powered 2D/3D Map Control via Model Context Protocol for Mapbox GL JS

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add mcp-gaopengbin-mapbox-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-gaopengbin-mapbox-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mapbox Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Mapbox MCP

AI-Powered 2D/3D Map Control via Model Context Protocol

Connect any MCP-compatible AI agent to Mapbox GL JS — camera, layers, markers, sources, 3D terrain, all through natural language.

中文文档


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

Packages

| Package | Description | |---------|-------------| | [mapbox-mcp-runtime](packages/mapbox-mcp-runtime/) | MCP Server (stdio) -- 40+ tools across 8 toolsets, WebSocket bridge to browser | | [mapbox-mcp-bridge](packages/mapbox-mcp-bridge/) | 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 build

2. Start the MCP Runtime

npx mapbox-mcp-runtime
# => HTTP + WebSocket server on http://localhost:9200
# => MCP Server running (stdio), 30 tools registered

3. 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 | flyTo, easeTo, jumpTo, getView, fitBounds, resetNorth, zoomIn, zoomOut | Yes | | layer | addLayer, removeLayer, listLayers, setLayerVisibility, setPaintProperty, setLayoutProperty, setFilter, moveLayer | Yes | | source | addSource, removeSource, listSources, getSourceData, setSourceData | Yes | | marker | addMarker, removeMarker, updateMarker, listMarkers | Yes | | interaction | screenshot, queryRenderedFeatures, querySourceFeatures | Yes | | draw | addGeoJSON, addImage, removeImage | No | | style | setStyle, getStyle, setFog, setLight, setTerrain, setSky | No | | 3d | addFillExtrusion, add3DModel | No | | geolocation | geocode | No |

Meta Tools (always available)

| Tool | Description | |------|-------------| | list_toolsets | List all available toolsets and their enabled status | | enable_toolset | Enable a toolset to register its tools |

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | MAPBOX_MCP_PORT | 9200 | WebSocket server port | | MAPBOX_TOOLSETS | view,layer,source,marker,interaction | Comma-separated default toolsets |

Development

# Dev mode (auto-restart)
cd packages/mapbox-mcp-runtime
npm run dev

# Build all packages
npm run build

Inspired By

This project follows the architecture of cesium-mcp, adapted for the Mapbox GL JS ecosystem.

Related Projects

License

MIT

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.