AMap Maps MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AMap Maps MCP Server find the walking route from Beijing Station to the Forbidden City"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AMap Map MCP Server
MCP Server for the AMap Map API.
Setup
API Key
Get a AMap Maps API key: https://lbs.amap.com/api/webservice/create-project-and-key.
NPX
{
"mcpServers": {
"amap-maps": {
"command": "npx",
"args": ["-y", "@masx200/amap-maps-mcp-server"],
"env": {
"AMAP_MAPS_API_KEY": "您在高德官网上申请的key"
}
}
}
}环境变量
可配置的环境变量:
AMAP_MAPS_API_KEY: 高德地图API密钥(必需)HTTP_API_TOKEN: HTTP API访问令牌(可选)HTTP_API_PORT: HTTP服务器端口号(可选,默认为3000)
Streamable-HTTP协议服务器
除了作为MCP服务器运行外,本项目还支持启动独立的streamable-http协议服务器:
直接启动
node ./build/streamable-http.js使用环境变量配置
# 设置端口(默认3000)
export HTTP_API_PORT=3000
# 设置访问令牌(可选)
export HTTP_API_TOKEN=your-secret-token
# 设置高德地图API密钥
export AMAP_MAPS_API_KEY=your-amap-api-key
# 启动服务器
node ./build/streamable-http.js使用示例
启动后,服务器将在 http://localhost:3000 运行,支持以下端点:
POST /mcp- MCP协议通信端点支持streamable-http协议的实时数据流
如果设置了 HTTP_API_TOKEN,请在请求头中添加:
Authorization: Bearer your-secret-tokenRelated MCP server: Baidu Map Search MCP Server
Overview
What is Amap Maps?
Amap Maps is a server that supports any MCP protocol client, allowing users to easily utilize the Amap Maps MCP server for various location-based services.
How to use Amap Maps?
To use Amap Maps, configure it in a compatible client like Cursor by copying your API key and setting up the server command as specified in the documentation.
Key features of Amap Maps?
Supports multiple location services including geocoding, weather, and distance measurement. Provides APIs for various transportation modes including walking, driving, and public transit. Allows for detailed searches of points of interest (POIs) based on keywords or location.
Use cases of Amap Maps?
Converting geographic coordinates to administrative addresses. Planning routes for cycling, walking, or driving. Searching for nearby points of interest based on user-defined criteria.
FAQ from Amap Maps?
What types of location services does Amap Maps provide?
Amap Maps provides geocoding, weather information, distance measurement, and route planning for various transportation modes.
Is there a limit to the number of requests I can make?
The usage limits depend on the API key and the specific service being used. Please refer to the Amap documentation for details.
How do I obtain an API key?
You can obtain an API key by creating a project on the Amap developer platform.
Content
支持任意 MCP 协议的客户端(如:Cursor、Claude、Cline)可方便使用高德地图 MCP server。如下以 Cursor 平台为例
在 Cursor 中配置
建议使用最新版本的 Cursor 客户端
接入配置
复制 key
https://lbs.amap.com/api/mcp-server/create-project-and-key
{
"mcpServers": {
"amap-maps": {
"command": "npx",
"args": ["-y", "@masx200/amap-maps-mcp-server"],
"env": {
"AMAP_MAPS_API_KEY": "您在高德官网上申请的key"
}
}
}
}Available Tools
12 toolsmaps_around_searchB
周边搜,根据用户传入关键词以及坐标location,搜索出radius半径范围的POI
Inputs: location (required), keywords, radius.
maps_bicyclingA
骑行路径规划用于规划骑行通勤方案,规划时会考虑天桥、单行线、封路等情况。最大支持 500km 的骑行路线规划
Inputs: origin (required), destination (required).
maps_direction_drivingA
驾车路径规划 API 可以根据用户起终点经纬度坐标规划以小客车、轿车通勤出行的方案,并且返回通勤方案的数据。
Inputs: origin (required), destination (required).
maps_direction_transit_integratedA
公交路径规划 API 可以根据用户起终点经纬度坐标规划综合各类公共(火车、公交、地铁)交通方式的通勤方案,并且返回通勤方案的数据,跨城场景下必须传起点城市与终点城市
Inputs: origin (required), destination (required), city (required), cityd (required).
maps_direction_walkingA
步行路径规划 API 可以根据输入起点终点经纬度坐标规划100km 以内的步行通勤方案,并且返回通勤方案的数据
Inputs: origin (required), destination (required).
maps_distanceA
距离测量 API 可以测量两个经纬度坐标之间的距离,支持驾车、步行以及球面距离测量
Inputs: origins (required), destination (required), type.
maps_geoA
将详细的结构化地址转换为经纬度坐标。支持对地标性名胜景区、建筑物名称解析为经纬度坐标
Inputs: address (required), city.
maps_ip_locationB
IP 定位根据用户输入的 IP 地址,定位 IP 的所在位置
Inputs: ip (required).
maps_regeocodeA
将一个高德经纬度坐标转换为行政区划地址信息
Inputs: location (required).
maps_search_detailC
查询关键词搜或者周边搜获取到的POI ID的详细信息
Inputs: id (required).
maps_text_searchC
关键词搜,根据用户传入关键词,搜索出相关的POI
Inputs: keywords (required), city, types.
maps_weatherA
根据城市名称或者标准adcode查询指定城市的天气
Inputs: city (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose: POI search (text, around, detail), geocoding/reverse, path planning for four modes, distance, IP location, and weather. No overlap.
All tools follow the consistent pattern 'maps_<action>_<target>' in snake_case, e.g., maps_text_search, maps_direction_driving.
12 tools is appropriate for a map service, covering core functionality without unnecessary bloat.
The set covers essential map operations: POI search and details, geocoding/reverse, multi-modal route planning, distance, weather, and IP location. No obvious gaps.
Maintenance
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Mobility, geocoding and nearby urban services for AI agents.
Render static locator maps (area highlight, places, routes) and search places from AI assistants.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to perform IP geolocation and nearby place searches using the Amap (Gaode Maps) API in China.28 npmISC
- FlicenseNot gradedqualityDmaintenanceProvides a suite of tools for location retrieval and multi-modal route planning within China using the Baidu Maps API. It enables AI agents to perform address-to-coordinate conversions, nearby place searches, and calculate directions for driving, transit, walking, and cycling.-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive geographic information services and route planning for AI agents via the Amap (Gaode Maps) API. It supports geocoding, multi-modal navigation, POI searches, and administrative region queries.3-
- AlicenseAqualityDmaintenanceProvides access to Amap (高德地图) web services including geocoding, POI search, and route planning (driving, walking, cycling, transit) with support for advanced parameters.121MIT