MetorialDocs

Set up Mapbox in Metorial for Claude, ChatGPT and Cursor

Share Mapbox with your team in Claude, ChatGPT and Cursor through Metorial: access token sign-in, 15 tools (9 read-only).

To give your team Mapbox in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Mapbox integration in a Metorial portal, and each person connects with an access token. Agents can generate static and vector map tiles, images, and styles. The integration has 15 tools, 9 read-only and 6 write, plus 1 trigger.

What you'll learn

  • How an admin shares Mapbox in a portal and how each person connects
  • What Mapbox asks for when you connect, and where to find it
  • How to keep the 9 read-only tools and reject the other 6

Before you start

Sign-in method

MethodTypeWhat a person provides
Access TokenAPI tokentoken

Access Token

To connect, a person enters:

  • token: Your Mapbox access token (public pk.*, secret sk.*, or temporary tk.*). Secret tokens are required for write operations.

Setup settings

Setup also asks for:

  • username: Your Mapbox account username. Required for most API operations that manage account resources.

Admin: share Mapbox in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Mapbox. For how members connect, choose Each person connects so everyone enters their own access token, or Shared connection to enter one access token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Mapbox.

Choose who gets it

Add the access groups that should see Mapbox. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Mapbox integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search mapbox

Employee: connect Mapbox

In the portal

Open Mapbox in the catalog

Sign in to your portal and open Mapbox. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your access token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search mapbox
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Mapbox connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list mapbox
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 9 read-only tools, such as matrix and geocode, and lose the 6 write tools, such as manage_styles or manage_tokens.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list mapbox
metorial tools <integration-id>
metorial call <integration-id> list_fonts -d '{}'

metorial tools lists the 15 tools, minus any you rejected. list_fonts takes no input. It lists all available fonts in your Mapbox account.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (9)

  • static_image: Generate a URL for a static map image rendered from a Mapbox style. Needs styleId, longitude, latitude, zoom, width and height.
  • list_fonts: List all available fonts in your Mapbox account.
  • geocode: Convert between addresses/place names and geographic coordinates. Needs mode.
  • directions: Calculate optimal routes between locations with turn-by-turn instructions. Needs coordinates.
  • isochrone: Compute reachability areas (isochrones) from a location — areas that can be reached within a specified time or distance. Needs longitude and latitude.
  • matrix: Calculate travel times and distances between multiple origins and destinations. Needs coordinates.
  • tilequery: Query features from vector or raster tilesets at a specific geographic location. Needs tilesetId, longitude and latitude.
  • optimize_route: Find the most efficient order to visit a set of waypoints (traveling salesman problem). Needs coordinates.
  • map_matching: Snap GPS traces to the road and path network. Needs coordinates.

Write tools (6)

  • manage_tilesets: List tilesets, retrieve tileset metadata (TileJSON), view tileset processing jobs, publish tilesets, or delete tilesets. Needs action.
  • manage_uploads: List, create, check status, or delete data uploads. Needs action.
  • manage_styles: List, retrieve, create, update, or delete Mapbox map styles. Needs action.
  • manage_tokens: List, create, update, delete, or validate Mapbox access tokens. Needs action.
  • manage_dataset_features: List, retrieve, create/update, or delete GeoJSON features within a Mapbox dataset. Needs action and datasetId.
  • manage_datasets: List, create, retrieve, update, or delete Mapbox datasets. Needs action.

Triggers

Mapbox has 1 trigger, which fire on events in Mapbox:

  • inbound_webhook

Next steps