Connector guide2-minute read8 MCP toolsEnglish · Deutsch · Italiano

How to Connect Mapbox to Gemini — via MCP

Drive Mapbox APIs (geocoding, directions, isochrones, matrix, tilequery) from any AI agent. 8 tools, access-token query auth.

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Mapbox

MCP connector

Mapbox

Drive Mapbox APIs (geocoding, directions, isochrones, matrix, tilequery) from any AI agent. 8 tools, access-token query auth.

Tools

8

Region

INTL

Category

maps

Authentication

Query Param Auth

Required env vars

MAPBOX_ACCESS_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

No install? Use cloud.anythingmcp.com directly.

Sign in, install the Mapbox in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

TL;DR

Drive Mapbox APIs (geocoding, directions, isochrones, matrix, tilequery) from any AI agent. 8 tools, access-token query auth.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Mapbox, paste your credentials, mint an MCP API key — done. No Docker, no git clone, no local server.

Mapbox + Gemini

Drive Mapbox APIs (geocoding, directions, isochrones, matrix, tilequery) from any AI agent. 8 tools, access-token query auth.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MAPBOX_ACCESS_TOKEN

Step 1 — Get credentials

mapbox.com/api/).

Setup:

  1. Sign in to https://account.mapbox.comAccess tokens → Create a token.
  2. Pick scopes: usually styles:read + fonts:read + geocoding + directions + matrix + isochrone + tilequery.
  3. Copy the token (starts with pk.). Set MAPBOX_ACCESS_TOKEN.

Authentication: query-string ?access_token=....

Coordinate convention (Mapbox-specific): longitude FIRST, then latitude. The order is lng,lat, NOT lat,lng like Google Maps. Trip up on this and your results land in the wrong country.

…(continued in the in-app connector instructions)

Step 2 — Install the adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 3 — Add the connector in Gemini

Gemini CLI reads MCP servers from ~/.gemini/settings.json (or %APPDATA%\gemini\settings.json on Windows). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. Get your MCP API key from AnythingMCP → Profile → MCP API Keys → New Key.
  2. Save the file and restart gemini.
  3. Run /mcp inside the Gemini CLI — Mapbox should be listed as available.
  4. Vertex AI Studio: pass https://cloud.anythingmcp.com/mcp to the tools array of your request with the same Bearer header.

Available tools

ToolWhat it does
mapbox_geocode_forwardForward geocoding (address text → coordinates)
mapbox_geocode_reverseReverse geocoding (coordinates → address)
mapbox_directionsCompute driving / walking / cycling directions between waypoints
mapbox_isochroneGet the area reachable within N minutes from a starting point (an 'isochrone' — like 'how far can I drive in 15 min?')
mapbox_matrixCompute travel-time and distance MATRIX between many origins and destinations (e
mapbox_static_imageGenerate a static PNG/JPG map of a location with optional pin overlays
mapbox_tilequeryQuery features in a vector tileset at a specific point — e
mapbox_list_stylesList custom map styles owned by your account

FAQ

Does Gemini 1.5 Pro or 2.x support MCP? Yes — Gemini CLI ≥ 0.4 and Vertex AI tools API both accept MCP httpUrl connectors with Bearer headers.

Next steps

Was this guide helpful?

Ready to ship

Your Mapbox agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides