
mapbox-token-security
Security best practices for Mapbox access tokens, including scope management
by mapboxFree
Description
mapbox-token-security is Mapbox's agent skill for handling Mapbox access tokens safely. It covers scope management, URL restrictions, rotation strategies and keeping sensitive data protected. The skill starts by explaining the token types and when to use each. Public tokens, which begin with pk., can be exposed in client-side code, are limited to public scopes, can be restricted to specific URLs and cannot reach sensitive APIs. With this in place, the agent can tell a developer which kind of token belongs where, how to narrow its scopes, how to lock it to their domains and how to rotate it. It is aimed at developers shipping Mapbox maps or APIs in web and mobile apps who want to avoid leaking or overusing credentials.…
Highlights
- Explains public (pk.) and secret token types
- Scope management guidance
- URL restrictions for client-side tokens
- Token rotation strategies
- Protecting sensitive data
Ratings & Reviews
No ratings yet
Be the first to rate mapbox-token-security.
People also visit

mapbox-mcp-devkit-patterns
Integration patterns for Mapbox MCP DevKit Server in AI coding assistants

design-token-audit
Audit token usage across a product for coverage, drift, and hard-coded values

managing-api-tokens
Manage Celigo API tokens (the accesstoken resource) -- bearer credentials

mapbox-web-integration-patterns
Official integration patterns for Mapbox GL JS across popular web frameworks
mapbox-token-security FAQ
What does mapbox-token-security cover?
Security practice for Mapbox access tokens: token types, scope management, URL restrictions, rotation and protecting sensitive data.
Can public tokens be used in client code?
Yes. Public pk. tokens can be exposed in client-side code, are limited to public scopes, can have URL restrictions and cannot access sensitive APIs.
Who is it for?
Developers using Mapbox in web or mobile apps who want their agent to set up and manage tokens safely.
How do I install it?
Run: npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-token-security
What security audit results are shown?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best mapbox-token-security alternatives?
Popular alternatives to mapbox-token-security include mapbox-mcp-devkit-patterns, mapbox-style-quality and design-token-audit. See all mapbox-token-security alternatives












