/mapbox:mapbox-mcp-runtime-patternsfrom mapbox
Integrates Mapbox MCP Server into AI applications for geospatial capabilities including routing, geocoding, POI search, isochrones, and offline turf.js calculations.
Ships in mapbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides patterns for integrating the Mapbox MCP Server into AI applications for production use with geospatial capabilities.
The Mapbox MCP Server is a Model Context Protocol (MCP) server that provides AI agents with geospatial tools:
Offline Tools (Turf.js):
Mapbox API Tools:
Utility Tools:
Key benefit: Give your AI application geospatial superpowers without manually integrating multiple APIs.
Before integrating, understand the key distinctions between tools to help your LLM choose correctly:
Straight-line distance (offline, instant):
distance_tool, bearing_tool, midpoint_tooldistance_toolRoute distance (API, traffic-aware):
directions_tool, matrix_tooldirections_toolCategory/type search:
category_search_toolcategory_search_toolSpecific place/address:
search_and_geocode_tool, reverse_geocode_toolsearch_and_geocode_toolReachable area (what's within reach):
isochrone_toolisochrone_toolSpecific route (how to get there):
directions_tooldirections_toolOffline tools (free, instant):
distance_tool, point_in_polygon_tool, area_toolAPI tools (requires token, counts against usage):
directions_tool, category_search_tool, isochrone_toolBest practice: Prefer offline tools when possible, use API tools when you need real-time data or routing.
Easiest integration - Use Mapbox's hosted MCP server at:
https://mcp.mapbox.com/mcp
No installation required. Simply pass your Mapbox access token in the Authorization header.
Benefits:
Authentication:
Use token-based authentication (standard for programmatic access):
Authorization: Bearer your_mapbox_token
Note: The hosted server also supports OAuth, but that's primarily for interactive flows (coding assistants, not production apps).
For custom deployments or development:
npm install @mapbox/mcp-server
Or use directly via npx:
npx @mapbox/mcp-server
Environment setup:
export MAPBOX_ACCESS_TOKEN="your_token_here"
Detailed integration patterns and production guidance are organized into reference files. Load the ones relevant to your task.
Pydantic AI -- Type-safe Python agents
Load: references/pydantic-ai.md
CrewAI -- Multi-agent orchestration
Load: references/crewai.md
Smolagents -- Lightweight HuggingFace agents
Load: references/smolagents.md
Mastra -- Multi-agent TypeScript systems
Load: references/mastra.md
LangChain -- Conversational AI with tool chaining
Load: references/langchain.md
Custom Agent -- Zillow/TripAdvisor/DoorDash-style patterns, architecture diagrams, hybrid approach
Load: references/custom-agent.md
Use Cases -- Real Estate, Food Delivery, Travel Planning examples
Load: references/use-cases.md
Production Patterns -- Caching, batch operations, tool descriptions, error handling, security, rate limiting, testing
Load: references/production.md
Invoke this skill when:
AGENTS.md (opens in a new tab)evals/evals.json (opens in a new tab)examples/README.md (opens in a new tab)examples/python/crewai_example.py (opens in a new tab)examples/python/pydantic_ai_example.py (opens in a new tab)examples/python/requirements.txt (opens in a new tab)examples/python/smolagents_example.py (opens in a new tab)examples/typescript/langchain-example.ts (opens in a new tab)examples/typescript/mastra-example.ts (opens in a new tab)examples/typescript/package-lock.json (opens in a new tab)examples/typescript/package.json (opens in a new tab)examples/typescript/tsconfig.json (opens in a new tab)references/crewai.md (opens in a new tab)references/custom-agent.md (opens in a new tab)references/langchain.md (opens in a new tab)references/mastra.md (opens in a new tab)references/production.md (opens in a new tab)references/pydantic-ai.md (opens in a new tab)references/smolagents.md (opens in a new tab)references/use-cases.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mapbox, geospatial, mcp-server, ai-agents, location-intelligence
npx claudepluginhub mapbox/mapbox-agent-skills --plugin mapbox27 skills in this plugin
/mapbox-android-compose-migrationMove Android Mapbox map and navigation screens from the View system (XML MapView, AndroidView-wrapped MapView, fragments) to Jetpack Compose with a coding agent. Covers the Mapbox parts of the screen (MapboxMap composable, viewport state, style and annotation composables, MapEffect, lifecycle, Navigation SDK v3 wiring) and leaves the rest of the screen to Google's XML-to-Compose skill. Keeps the map looking and behaving the same, one screen at a time. Use when migrating a Mapbox screen to Compose, planning that work, or fixing a map that broke after moving to Compose./mapbox-android-maps-v10-to-v11-migrationMigrate an Android app from Mapbox Maps SDK v10 to v11 with a coding agent. Inventories v10 usage, plans the work by area with effort and blockers, migrates one area at a time to the current recommended v11 APIs (Featureset Interactions, Feature State, typed events), surfaces behavior changes as developer decisions, keeps the app's style, and reports what changed. Covers Kotlin, Java, Views and Jetpack Compose. Use when upgrading Maps SDK v10 on Android, estimating a v10 to v11 migration, or fixing a build after bumping to v11.Other plugins' skills for the same job