development
location
documentation
public
geospatial
AI
What is Node.js server implementing Model Context Protocol (MCP) for Mapbox APIs.?
The Mapbox MCP Server transforms any AI agent or application into a geospatially-aware system by providing seamless access to Mapbox's comprehensive location intelligence platform. With this server, your AI can understand and reason about places, navigate the physical world, and access rich geospatial data including global geocoding, POI search, multi-modal routing, travel time matrices, isochrone generation, and static map images.
Documentation
Mapbox MCP Server
Node.js server implementing Model Context Protocol (MCP) for Mapbox APIs.
Unlock Geospatial Intelligence for Your AI Applications
The Mapbox MCP Server transforms any AI agent or application into a geospatially-aware system by providing seamless access to Mapbox's comprehensive location intelligence platform. With this server, your AI can understand and reason about places, navigate the physical world, and access rich geospatial data including:
Global geocoding to convert addresses and place names to coordinates and vice versa
Points of interest (POI) search across millions of businesses, landmarks, and places worldwide
Multi-modal routing for driving, walking, and cycling with real-time traffic
Travel time matrices to analyze accessibility and optimize logistics
Isochrone generation to visualize areas reachable within specific time or distance constraints
Static map images to create visual representations of locations, routes, and geographic data
Whether you're building an AI travel assistant, logistics optimizer, location-based recommender, or any application that needs to understand "where", the Mapbox MCP Server provides the spatial intelligence to make it possible. You can also enable it on popular clients like Claude Desktop and VS Code. See below for details
Usage
A Mapbox access token is required to use this MCP server.
npm run build
# Inspect
npx @modelcontextprotocol/inspector node dist/index.js
Using Docker
docker build -t mapbox-mcp-server .
# Run and inspect the server
npx @modelcontextprotocol/inspector docker run -i --rm --env MAPBOX_ACCESS_TOKEN="YOUR_TOKEN" mapbox-mcp-server
Create new tool
npx plop create-tool\n\n# provide tool name without suffix (e.g. Search)
Environment Variables# VERBOSE_ERRORS
Set VERBOSE_ERRORS=true to get detailed error messages from the MCP server. This is useful for debugging issues when integrating with MCP clients.
By default, the server returns generic error messages. With verbose errors enabled, you'll receive the actual error details, which can help diagnose API connection issues, invalid parameters, or other problems.
Data Usage & Privacy# What data is sent to Mapbox APIs
When you use the MCP server tools, the following data is sent directly from your environment to Mapbox APIs: