
Mapbox Token Security
mapbox/mapbox-agent-skillsOfficial
Security guidance for Mapbox access tokens covering public and secret token types, scope limits, and URL restrictions.
- skills.sh installs
- 2K
- GitHub stars
- 87
- last updated
- Aug 21, 2026
What it does
- Covers token types (public
pk.*, secretsk.*, temporarytk.*), with when to use each and which scopes each allows - Includes scope combinations by use case, URL restriction patterns, and per-environment token separation for production, staging, and development
- Enforces storage rules that keep secret tokens out of source code and version control, and a token guard before map construction
- Designed for teams building client-side map displays or server-side Mapbox integrations that need a token security checklist
Install
$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-token-security -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Mapbox Token Security Skill
This skill provides security expertise for managing Mapbox access tokens safely and effectively.
Token Types and When to Use Them
Public Tokens (pk.*)
Characteristics:
- Can be safely exposed in client-side code
- Limited to specific public scopes only
- Can have URL restrictions
- Cannot access sensitive APIs
When to use:
- Client-side web applications
- Mobile apps
- Public-facing demos
- Embedded maps on websites
Allowed scopes:
styles:tiles- Display style tiles (raster)styles:read- Read style specificationsfonts:read- Access Mapbox fontsdatasets:read- Read dataset datavision:read- Vision API access
Secret Tokens (sk.*)
Characteristics:
- NEVER expose in client-side code
- Full API access with any scopes
- Server-side use only
- Can create/manage other tokens
When to use:
- Server-side applications
- Backend services
- CI/CD pipelines
- Administrative tasks
- Token management
Common scopes:
Details
- Repository
- github.com/mapbox/mapbox-agent-skills
- Categories
- Security, Web3 & Crypto
- First seen
- May 16, 2026
More from mapbox/mapbox-agent-skills
All 18- Mapbox Search Integration2K
- Mapbox Search Patterns1.9K
- Mapbox Store Locator Patterns1.8K
- Mapbox Mcp Devkit Patterns1.6K
- Mapbox Ios Patterns1.5K
- Mapbox Android Patterns1.5K
- Mapbox Google Maps Migration1.5K
- Mapbox Mcp Runtime Patterns1.5K
- Mapbox Maplibre Migration1.4K
- Mapbox Location Grounding1.3K
- Mapbox Web Integration Patterns2.7K
- Mapbox Web Performance Patterns2.6K
- Mapbox Style Patterns2.5K
- Mapbox Geospatial Operations2.3K
- Mapbox Cartography2.2K
- Mapbox Data Visualization Patterns2.2K
- Mapbox Style Quality2.1K
Similar to Mapbox Token Security
More Security
Mcp Devkit ServerMCP servermapbox62 starsRead and write access to Mapbox styles, access tokens, and user feedback via the Mapbox developer APIs.
mapbox-mcp-devkit-patternsSkillmapbox/mapbox-agent-skills1.6K installsIntegration patterns that connect the Mapbox MCP DevKit Server to AI coding assistants for development-time map work.
mapbox-maplibre-migrationSkillmapbox/mapbox-agent-skills1.4K installsGuide for migrating MapLibre GL JS projects to Mapbox GL JS with token setup and style configuration.
zoom-oauthSkillanthropics/knowledge-work-plugins2.2K installsZoom OAuth reference covering Server-to-Server, authorization code, device, and client credentials flows with token lifecycle details.
api-security-best-practicesSkillsickn33/agentic-awesome-skills7.9K installsSecure API design guide covering authentication, authorization, input validation, and abuse controls for protected endpoints.
jwt-securitySkillmindrally/skills1.6K installsGuidelines for JWT authentication covering token creation, validation, storage, and refresh, with concrete security rules.