amap-maps-mcp-server
https://github.com/zxypro1/amap-maps-mcp-server
Documentation
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-tokenOverview
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"
}
}
}
}Frequently asked questions
What is amap-maps-mcp-server?
amap-maps-mcp-server is https://github.com/zxypro1/amap-maps-mcp-server
How do I install amap-maps-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is amap-maps-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/masx200/amap-maps-mcp-server and has 2 stars.
Related MCP tools
An MCP server that installs other MCP servers for you JavaScript-based implementation. Trusted by 1400+ developers. Trusted by 1400+ developers.
MCP server for interacting with the iOS simulator JavaScript-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only...
This is an MCP server that allows you to directly download transcripts of YouTube videos. JavaScript-based implementation.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP