mcp-server
MCP server by mapbox Community
Gives AI assistants access to Mapbox geocoding, POI search, directions, isochrones and map rendering. Built for travel, logistics and location-aware apps that need to reason about places.
Install mcp-server
Built from the published package, never by AI.
claude mcp add mcp-server -e MAPBOX_ACCESS_TOKEN=YOUR_MAPBOX_ACCESS_TOKEN -- npx -y @mapbox/mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-server": {
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_MAPBOX_ACCESS_TOKEN"
},
"args": [
"-y",
"@mapbox/mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-server": {
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_MAPBOX_ACCESS_TOKEN"
},
"args": [
"-y",
"@mapbox/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-server": {
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_MAPBOX_ACCESS_TOKEN"
},
"args": [
"-y",
"@mapbox/mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-server --env MAPBOX_ACCESS_TOKEN=YOUR_MAPBOX_ACCESS_TOKEN -- npx -y @mapbox/mcp-server{
"mcpServers": {
"mcp-server": {
"env": {
"MAPBOX_ACCESS_TOKEN": "YOUR_MAPBOX_ACCESS_TOKEN"
},
"args": [
"-y",
"@mapbox/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-server npx -y @mapbox/mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-server block.
About
The Mapbox MCP Server is a Node.js server that implements the Model Context Protocol for Mapbox APIs. It gives an AI assistant tools for global geocoding, points of interest search, multi-modal routing, and isochrones. It can also render live Mapbox GL JS maps inside supported chat clients, and it includes offline calculations for distance, area, and bearing that need no API calls.
A Mapbox access token is required. A hosted endpoint at mcp.mapbox.com is also available for quick access. It suits applications such as AI travel assistants, logistics optimizers, and location-based recommenders, or any application that needs to answer questions about where things are.
Written from the project's README and checked against it.
Tools it gives your assistant
ground_location_toolAnswers coordinate-first queries by combining reverse geocoding, category search and isochrones in one call.search_and_geocode_toolConverts addresses and place names to coordinates and back, with user disambiguation through elicitations.directions_toolProvides driving, walking and cycling routes, with user route selection through elicitations.isochrone_toolShows areas reachable within a given time or distance constraint.render_map_toolDisplays routes, search results and custom GeoJSON on a live Mapbox GL JS map inside the chat.static_map_image_toolReturns a base64-encoded PNG or JPEG map image that any client can display.resource_reader_toolReads MCP resources by URI for clients without native resource support.category_list_toolProvides the list of category IDs for category search, when the fallback tools are enabled.Distance ToolCalculates distance between two coordinates offline using the Haversine formula, in several units.
What you need
- Mapbox access token
- Node.js
| Setting | Needed | What it is |
|---|---|---|
MAPBOX_Environment variable, secret | Required | Your Mapbox access token |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Show me directions from the Golden Gate Bridge to Union Square with current traffic
- What can I reach in a 15-minute walk from 37.7749, -122.4194?
- What's the distance in miles between these two coordinates?
Good to know
- render_map_tool displays interactive maps only in supported clients such as Claude Desktop, VS Code with GitHub Copilot, Claude Code and Goose.
- Clients without resource support need CLIENT_NEEDS_RESOURCE_FALLBACK set to true to use the fallback tools.
- Offline geospatial tools make no Mapbox API calls and work without internet access.
Security check
B- Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-server
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
mcp-server: common questions
Does the Mapbox MCP Server need an API key?
Yes. The source says a Mapbox access token is required, and it can be created from a free Mapbox account.
Can I use the map rendering without the other Mapbox tools?
Yes. render_map_tool accepts hand-composed GeoJSON directly, so it does not depend on directions_tool, isochrone_tool or other API calls.
Is there a hosted version of the Mapbox MCP Server?
Yes. The source lists a hosted MCP endpoint at https://mcp.mapbox.com/mcp for quick access.
How do I install mcp-server?
In Claude Code run claude mcp add mcp-server -e MAPBOX_ACCESS_TOKEN=YOUR_MAPBOX_ACCESS_TOKEN -- npx -y @mapbox/mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-server the official server?
mcp-server is a community project by mapbox, not verified by a company domain.
Is mcp-server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-server safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.
What are alternatives to mcp-server?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does mcp-server work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
