
Mapbox 模型上下文协议(MCP)服务器
概览
Node.js服务器实现了 Mapbox API 的模型上下文协议(MCP)。 Mapbox MCP 服务器通过无缝访问 Mapbox 全面的位置智能平台,将任何 AI 代理或应用转变为地理空间感知系统。通过该服务器,您的 AI 能够理解和推理地点,导航物理世界,并访问丰富的地理空间数据,包括: - 将地址和地名转换为坐标,反之亦然——覆盖全球数百万的企业、地标和地点——用于实时交通驾驶、步行和骑行——分析可达性并优化物流——找到多站点的最佳访问顺序(推销员问题)——将GPS追踪快速映射到道路网络以实现清晰的路线可视化——在特定时间或距离限制内可达区域——创建位置、路线和地理数据的可视化表示——涵盖距离、面积、方位、缓冲区和空间......
概述(AI 翻译)
Node.js服务器实现了 Mapbox API 的模型上下文协议(MCP)。
解锁地理空间智能,应用于你的人工智能
Mapbox MCP 服务器通过无缝访问 Mapbox 全面的位置智能平台,将任何 AI 代理或应用转变为地理空间感知系统。通过该服务器,您的 AI 能够理解和推理地点,导航物理世界,并访问丰富的地理空间数据,包括:
- 全局地理编码将地址和地名转换为坐标,反之亦然
- 全球数百万企业、地标和地点的兴趣点(POI)搜索
- 多模式路由,适用于驾驶、步行和骑行,实时交通
- 旅行时间矩阵用于分析可达性并优化物流
- 路线优化以寻找多个站点的最佳访问顺序(推销员问题)
- 地图匹配,将GPS追踪映射到道路网络,实现清晰的路线可视化
- 等时线生成以可视化在特定时间或距离限制内可到达的区域
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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
- Route optimization to find the optimal visiting order for multiple stops (traveling salesman problem)
- Map matching to snap GPS traces to the road network for clean route visualization
- Isochrone generation to visualize areas reachable within specific time or distance constraints
- Live, interactive map rendering (
render_map_tool) to display routes, search results, and your own custom GeoJSON on a real Mapbox GL JS map directly inside the chat - Static map images to create visual representations of locations, routes, and geographic data
- Offline geospatial calculations for distance, area, bearing, buffers, and spatial analysis without requiring API calls
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.
Hosted MCP Endpoint
For quick access, you can use our hosted MCP endpoint:
Endpoint: https://mcp.mapbox.com/mcp
For detailed setup instructions for different clients and API usage, see the Hosted MCP Server Guide.
To get a Mapbox access token:
- Sign up for a free Mapbox account at mapbox.com/signup
- Navigate to your Account page
- Create a new token or use the default public token
For more information about Mapbox access tokens, see the Mapbox documentation on access tokens.
Integration Guides
For detailed setup instructions for different integrations, refer to the following guides:
- Claude Desktop Setup - Instructions for configuring Claude Desktop to work with this MCP server
安装
npx @modelcontextprotocol/inspector docker run -i --rm --env MAPBOX_ACCESS_TOKEN="YOUR_TOKEN" mapbox-mcp-server