Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mapbox-mcp-runtime-patterns

Skill by mapbox

Gives patterns for connecting the Mapbox MCP Server to AI applications and agent frameworks such as pydantic-ai, Mastra and LangChain. Aimed at developers building AI apps that need geospatial features.

  • Score 78
  • 88 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mapbox-mcp-runtime-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mapbox/mapbox-agent-skills /tmp/mapbox-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/mapbox-agent-skills/skills/mapbox-mcp-runtime-patterns ~/.claude/skills/mapbox-mcp-runtime-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mapbox-mcp-runtime-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

mapbox-mcp-runtime-patterns is a skill with integration patterns for the Mapbox MCP Server, a Model Context Protocol server that gives AI agents geospatial tools. It separates offline Turf.js tools, such as distance, bearing and point-in-polygon checks, from Mapbox API tools for directions, geocoding, isochrones, travel time matrices and GPS trace map matching.

The skill explains how to choose between tool types so an assistant picks the right one. It describes connecting the hosted server at mcp.mapbox.com with a Mapbox access token, or running the server locally with npm or npx. It lists reference files for pydantic-ai, CrewAI, Smolagents, Mastra, LangChain and custom agents. It is aimed at developers building AI-powered applications that need geospatial capabilities.

Written from the project's SKILL.md and checked against it.

What it can do

  • distance_toolStraight-line distance between points. Offline and instant, with no API call.
  • bearing_toolBearing between points. Offline, with no API call.
  • midpoint_toolMidpoint between points. Offline, with no API call.
  • point_in_polygon_toolTests whether a point falls inside a polygon. Offline.
  • area_toolArea calculation for geometries. Offline.
  • directions_toolTurn-by-turn directions and traffic-aware route distance through the Mapbox API.
  • isochrone_toolReturns a GeoJSON polygon of everywhere reachable within a given time.
  • category_search_toolFinds places by type, such as coffee shops or hotels.
  • search_and_geocode_toolFinds named places, street addresses and landmarks.
  • matrix_toolTravel time matrices between sets of points through the Mapbox API.

What you need

  • Mapbox access token
  • Node.js, for the npm or npx self-hosted install

Try asking

  • Is this restaurant within 2 miles of my hotel?
  • How long does it take to drive to the airport?
  • What can I reach within 15 minutes from here?

Good to know

  • API tools count against Mapbox usage and require a token.
  • The hosted server's OAuth support is described as mainly for interactive flows, not production apps.
  • The framework reference files are listed but their contents are not included in this source.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/mapbox-mcp-runtime-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AGENTS.md13 KB
  • SKILL.md6 KB
  • evals/evals.json4 KB
  • examples/README.md7 KB
  • examples/python/crewai_example.py9 KB
Show all 21 files
  • examples/python/pydantic_ai_example.py6 KB
  • examples/python/requirements.txt220 B
  • examples/python/smolagents_example.py9 KB
  • examples/typescript/langchain-example.ts8 KB
  • examples/typescript/mastra-example.ts8 KB
  • examples/typescript/package-lock.json117 KB
  • examples/typescript/package.json654 B
  • examples/typescript/tsconfig.json393 B
  • references/crewai.md7 KB
  • references/custom-agent.md7 KB
  • references/langchain.md6 KB
  • references/mastra.md3 KB
  • references/production.md10 KB
  • references/pydantic-ai.md3 KB
  • references/smolagents.md6 KB
  • references/use-cases.md3 KB

Alternatives to mapbox-mcp-runtime-patterns

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

mapbox-mcp-runtime-patterns: common questions

Which Mapbox MCP tools are straight-line and work offline?

The source lists distance_tool, bearing_tool and midpoint_tool as straight-line tools, along with point_in_polygon_tool, area_tool and others under offline tools. These make no API calls.

Does the hosted Mapbox MCP server need installation?

No. The source says to use the hosted server at https://mcp.mapbox.com/mcp and pass a Mapbox access token in the Authorization header.

Which tools use Mapbox APIs and count against usage?

The source lists directions, reverse geocoding, POI category search, isochrones, travel time matrices, static maps, map matching and route optimization as API tools. It says these require a token and count against usage.

How do I install mapbox-mcp-runtime-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mapbox-mcp-runtime-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mapbox-mcp-runtime-patterns safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mapbox-mcp-runtime-patterns?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

mapbox-mcp-runtime-patterns Install

Add to stack

Loading.