# Mapbox — card for AI agents

APIs for maps, navigation, routing, and location services.

Maker: Mapbox · category: Maps and location

## Price (official page)
- Free tier: Up to 100,000 requests/month for most APIs
- Free tier terms: free allowance · monthly · amount: 100,000 requests (read from the wording above and the pricing page; empty = not stated)
- Usage price: $0.25–$5.00 per 1,000 requests depending on API
- About $0.25 per 1,000 requests
- Pricing page: https://www.mapbox.com/pricing (checked 2026-10-09)
- Note: Added automatically: its SDK was in 30 of the public agent repos we sampled when it was added. Prices read from the official pricing page.

## Connect
- npm: `npm install mapbox-gl`
- Repository: https://github.com/mapbox/mapbox-gl-js

## For AI agents on Mapbox's own site (AgentGid check 2026-11-13: 3 of 6)
- llms.txt: https://docs.mapbox.com/llms.txt
- Docs pages as Markdown: 48% of the pages llms.txt lists
- OpenAPI description: none found at the usual places
- Official MCP server: no · official SDK: yes · status page: no
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## A year of price history (Internet Archive copies of the pricing page, read by rules)
- Months read: 9 (2025-10 to 2026-06) of https://www.mapbox.com/pricing
- A figure is any "$X/month" on the page (plans, seats and add-ons alike); open the archived copy to see which plan it is.

## Price history in AgentGid's catalog (since 2026-10-09)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- Visual Crossing Weather: https://agentgid.com/apis/visual-crossing-weather/agent.md
- GeoIP2: https://agentgid.com/apis/maxmind-geoip2/agent.md
- ArcGIS Location Platform: https://agentgid.com/apis/arcgis-location-platform/agent.md
- Weatherstack API: https://agentgid.com/apis/weatherstack/agent.md
- HERE Location Platform: https://agentgid.com/apis/here-location-platform/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/mapbox/


## Mapbox: maps, address search and routes for apps

Mapbox is an online service that puts maps into your website or app. It draws interactive or still map pictures, turns addresses into map points and back, and plans routes. You pay per use after a free monthly amount, and the maps must show the Mapbox logo and credit line.

### Where to use it
- Store locator on your site: Show all your shops on a map with a list beside it; a click on a shop opens its details.
- Map picture in an email receipt: Put a small map of the shop address into order emails, so customers recognise where they paid.
- Turn addresses into map points: Convert the addresses people type into coordinates to place them on a map, or turn a tapped point back into an address.
- Areas within 15 minutes' drive: Draw the area a customer can reach in 5, 10 or 15 minutes, for delivery zones or "homes near the office".
- Driving or walking directions: Show the best route between two places, taking traffic and road incidents into account.
- Map of a listing on its page: Add a small fixed map next to a flat or event listing, without loading the full map library. (idea, not from the official pages)

### How to start
- Create a free Mapbox account and copy the default public token (it starts with pk.).
- Add the map library to your project.

```
$ npm install mapbox-gl
```

- Give the map a sized box on the page and create it with your token.

```
<div id="map" style="width: 800px; height: 600px;"></div>
```


### License
Mapbox is a paid service with free monthly amounts; the map library is not open source and may only be used with a Mapbox account. Maps must show the Mapbox logo, and usually the Mapbox and OpenStreetMap credit.

### Good to know
- Address search results are temporary by default and may not be saved; saving them needs permanent mode and a card on file.
- Every page view that creates a web map counts as one map load; moving or zooming the map costs nothing extra.
- Public tokens in page code can be read by anyone. Limit them to your web addresses, and keep secret tokens on the server.
- The map library sends limited location and usage data back to Mapbox, and changing its billing or data parts is not allowed.
- Mapbox processes data in the United States and cannot keep it inside Europe only.

Checked 2026-11-10 against: https://www.mapbox.com/, https://www.mapbox.com/pricing, https://www.mapbox.com/legal/tos, https://www.mapbox.com/legal/service-terms, https://docs.mapbox.com/llms.txt, https://docs.mapbox.com/api/overview/, https://docs.mapbox.com/api/overview.md, https://docs.mapbox.com/api/search/geocoding.md, https://docs.mapbox.com/api/maps/static-images.md, https://docs.mapbox.com/api/navigation/directions.md, https://docs.mapbox.com/api/navigation/isochrone.md, https://docs.mapbox.com/api/accounts/tokens.md, https://docs.mapbox.com/api/guides/mcp-server.md, https://docs.mapbox.com/accounts/llms.txt, https://docs.mapbox.com/accounts/guides/tokens.md, https://docs.mapbox.com/accounts/guides/invoices.md, https://docs.mapbox.com/accounts/faq/how-does-pay-as-you-go-billing-work.md, https://docs.mapbox.com/mapbox-gl-js/llms.txt, https://docs.mapbox.com/mapbox-gl-js/guides/get-started/use-with-npm.md, https://docs.mapbox.com/mapbox-gl-js/guides/pricing.md, https://docs.mapbox.com/help/llms.txt, https://docs.mapbox.com/help/dive-deeper/attribution.md, https://docs.mapbox.com/help/tutorials/building-a-store-locator.md, https://docs.mapbox.com/help/tutorials/receipt-map.md, https://docs.mapbox.com/help/troubleshooting/manage-web-map-costs.md, https://github.com/mapbox/mapbox-gl-js/blob/main/LICENSE.txt, https://registry.npmjs.org/mapbox-gl/3.34.2

### Mistakes to avoid
- Don't: Map container div with no height → Do: <div id="map" style="width: 800px; height: 600px;"></div> or a CSS height (Without dimensions the map does not appear.)
- Don't: Saving geocoding results in your database from default (temporary) requests → Do: Add permanent=true (needs a card on file) when you store results; otherwise only display them (Temporary results may not be cached.)
- Don't: An sk. secret token in browser or app code → Do: Use a pk. public token (with URL restrictions) in the browser; call secret-scope APIs from your server (Secret tokens can change your account.)
- Don't: Testing a URL-restricted token with curl or Postman → Do: Use an unrestricted token for terminal tests and the restricted one in the site (Requests from tools that are not your site get a 403.)
- Don't: Passing coordinates as latitude, longitude → Do: Always longitude first, then latitude (Mapbox APIs expect longitude, latitude order.)

### Questions
- Is there a free plan? There is no separate plan, but most products have a free monthly amount, for example 50,000 web map loads, as reported on the pricing page. No credit card is needed to start.
- Can I hide the Mapbox logo? No. Maps that use Mapbox styles or data must show the Mapbox logo and text credit; you may move the logo to another corner.
- Can I store the coordinates I get from address search? Only with permanent geocoding, which needs a credit card or an enterprise contract; temporary results may not be cached.
- Can I use mapbox-gl with free map tiles from elsewhere? No. The library's license allows use only with Mapbox products through a Mapbox account.
- Can an AI assistant use Mapbox? Yes. Mapbox runs a hosted MCP server for directions, isochrones, static maps and address lookup.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
