
Mapbox Mcp Runtime Patterns
If you're building an AI app that needs to work with maps and location data, this walks you through integrating Mapbox's MCP server into frameworks like Pydantic AI, LangChain, CrewAI, and Mastra. It covers both the hosted server option and self-hosting, explains when to use offline tools versus API calls, and includes patterns for real-world scenarios like food delivery and real estate apps. The best part is the guidance on tool selection, helping your LLM understand when to use straight-line distance versus routing or category search versus geocoding. Comes with production patterns for caching, rate limiting, and error handling.
- skills.sh installs
- 1.4K
- GitHub stars
- 86
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-mcp-runtime-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Mapbox MCP Runtime Patterns
This skill provides patterns for integrating the Mapbox MCP Server into AI applications for production use with geospatial capabilities.
What is Mapbox MCP Server?
The Mapbox MCP Server is a Model Context Protocol (MCP) server that provides AI agents with geospatial tools:
Offline Tools (Turf.js):
- Distance, bearing, midpoint calculations
- Point-in-polygon tests
- Area, buffer, centroid operations
- Bounding box, geometry simplification
- No API calls, instant results
Mapbox API Tools:
- Directions and routing
- Reverse geocoding
- POI category search
- Isochrones (reachability)
- Travel time matrices
- Static map images
- GPS trace map matching
- Multi-stop route optimization
Utility Tools:
- Server version info
- POI category list
Key benefit: Give your AI application geospatial superpowers without manually integrating multiple APIs.
Understanding Tool Categories
Before integrating, understand the key distinctions between tools to help your LLM choose correctly:
Distance: "As the Crow Flies" vs "Along Roads"
Straight-line distance (offline, instant):
Sponsors
Details
- Repository
- github.com/mapbox/mapbox-agent-skills
- Categories
- Backend & APIs, AI & Agent Building, Python
- First seen
- Jun 3, 2026
More from mapbox/mapbox-agent-skills
All 18- Mapbox Maplibre Migration1.4K
- Mapbox Location Grounding1.3K
- Mapbox Web Integration Patterns2.7K
- Mapbox Web Performance Patterns2.5K
- Mapbox Style Patterns2.4K
- Mapbox Geospatial Operations2.3K
- Mapbox Data Visualization Patterns2.2K
- Mapbox Cartography2.2K
- Mapbox Style Quality2K
- Mapbox Token Security2K
- Mapbox Search Integration1.9K
- Mapbox Search Patterns1.9K
- Mapbox Store Locator Patterns1.7K
- Mapbox Mcp Devkit Patterns1.6K
- Mapbox Ios Patterns1.5K
- Mapbox Android Patterns1.5K
- Mapbox Google Maps Migration1.5K