Skip to content
Back to search

amap-mcp-server

高德地图MCP Server,支持stdio, sse和streamable-http

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/sugarforever--amap-mcp-server/badge.svg)](/listings/sugarforever--amap-mcp-server)

HTML

<a href="/listings/sugarforever--amap-mcp-server"><img src="/api/listings/sugarforever--amap-mcp-server/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 229 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/sugarforever-amap-mcp-server-badge.png)](https://mseep.ai/app/sugarforever-amap-mcp-server)
  2. # 高德地图 MCP Server
  3. 该高德地图 MCP Server 发布在 [PyPI](https://pypi.org/project/amap-mcp-server/)。
  4. <a href="https://glama.ai/mcp/servers/@sugarforever/amap-mcp-server">
  5. <img width="380" height="200" src="https://glama.ai/mcp/servers/@sugarforever/amap-mcp-server/badge" alt="高德地图 MCP server" />
  6. </a>
  7. ## MCP 工具列表
  8. 本服务提供以下工具:
  9. ### 地理编码工具
  10. #### maps_regeocode
  11. 将一个高德经纬度坐标转换为行政区划地址信息
  12. **参数:**
  13. - `location`: 经纬度坐标
  14. #### maps_geo
  15. 将详细的结构化地址转换为经纬度坐标。支持对地标性名胜景区、建筑物名称解析为经纬度坐标
  16. **参数:**
  17. - `address`: 结构化地址
  18. - `city` (可选): 指定查询的城市
  19. ### 位置服务工具
  20. #### maps_ip_location
  21. IP 定位根据用户输入的 IP 地址,定位 IP 的所在位置
  22. **参数:**
  23. - `ip`: IP地址
  24. #### maps_weather
  25. 根据城市名称或者标准adcode查询指定城市的天气
  26. **参数:**
  27. - `city`: 城市名称或者adcode
  28. ### 路线规划工具
  29. #### 骑行路线
  30. ##### maps_bicycling_by_coordinates
  31. 骑行路径规划用于规划骑行通勤方案,规划时会考虑天桥、单行线、封路等情况。最大支持 500km 的骑行路线规划
  32. **参数:**
  33. - `origin`: 起点经纬度坐标
  34. - `destination`: 终点经纬度坐标
  35. ##### maps_bicycling_by_address
  36. 骑行路径规划(地址版),使用地址进行骑行路线规划,推荐优先使用此工具
  37. **参数:**
  38. - `origin_address`: 起点地址(例如:"北京市朝阳区阜通东大街6号")
  39. - `destination_address`: 终点地址(例如:"北京市海淀区上地十街10号")
  40. - `origin_city` (可选): 起点所在城市,用于提高地理编码准确性
  41. - `destination_city` (可选): 终点所在城市,用于提高地理编码准确性
  42. #### 步行路线
  43. ##### maps_direction_walking_by_coordinates
  44. 步行路径规划 API 可以根据输入起点终点经纬度坐标规划100km 以内的步行通勤方案,并且返回通勤方案的数据
  45. **参数:**
  46. - `origin`: 起点经纬度坐标
  47. - `destination`: 终点经纬度坐标
  48. ##### maps_direction_walking_by_address
  49. 步行路径规划(地址版),使用地址进行步行路线规划,推荐优先使用此工具
  50. **参数:**
  51. - `origin_address`: 起点地址(例如:"北京市朝阳区阜通东大街6号")
  52. - `destination_address`: 终点地址(例如:"北京市海淀区上地十街10号")
  53. - `origin_city` (可选): 起点所在城市,用于提高地理编码准确性
  54. - `destination_city` (可选): 终点所在城市,用于提高地理编码准确性
  55. #### 驾车路线
  56. ##### maps_direction_driving_by_coordinates
  57. 驾车路径规划 API 可以根据用户起终点经纬度坐标规划以小客车、轿车通勤出行的方案,并且返回通勤方案的数据
  58. **参数:**
  59. - `origin`: 起点经纬度坐标
  60. - `destination`: 终点经纬度坐标
  61. ##### maps_direction_driving_by_address
  62. 驾车路径规划(地址版),使用地址进行驾车路线规划,推荐优先使用此工具
  63. **参数:**
  64. - `origin_address`: 起点地址(例如:"北京市朝阳区阜通东大街6号")
  65. - `destination_address`: 终点地址(例如:"北京市海淀区上地十街10号")
  66. - `origin_city` (可选): 起点所在城市,用于提高地理编码准确性
  67. - `destination_city` (可选): 终点所在城市,用于提高地理编码准确性
  68. #### 公共交通路线
  69. ##### maps_direction_transit_integrated_by_coordinates
  70. 根据用户起终点经纬度坐标规划综合各类公共(火车、公交、地铁)交通方式的通勤方案,并且返回通勤方案的数据,跨城场景下必须传起点城市与终点城市
  71. **参数:**
  72. - `origin`: 起点经纬度坐标
  73. - `destination`: 终点经纬度坐标
  74. - `city`: 起点城市
  75. - `cityd`: 终点城市
  76. ##### maps_direction_transit_integrated_by_address
  77. 公共交通路径规划(地址版),使用地址进行公共交通路线规划,推荐优先使用此工具
  78. **参数:**
  79. - `origin_address`: 起点地址(例如:"北京市朝阳区阜通东大街6号")
  80. - `destination_address`: 终点地址(例如:"北京市海淀区上地十街10号")
  81. - `origin_city`: 起点所在城市(跨城交通必需)
  82. - `destination_city`: 终点所在城市(跨城交通必需)
  83. ### 距离测量工具
  84. #### maps_distance
  85. 测量两个经纬度坐标之间的距离,支持驾车、步行以及球面距离测量
  86. **参数:**
  87. - `origins`: 起点经纬度坐标
  88. - `destination`: 终点经纬度坐标
  89. - `type` (可选,默认为"1"): 测量类型
  90. ### POI搜索工具
  91. #### maps_text_search
  92. 关键词搜索 API 根据用户输入的关键字进行 POI 搜索,并返回相关的信息
  93. **参数:**
  94. - `keywords`: 搜索关键词
  95. - `city` (可选): 查询城市
  96. - `citylimit` (可选,默认为"false"): 是否限制城市范围内搜索
  97. #### maps_around_search
  98. 周边搜,根据用户传入关键词以及坐标location,搜索出radius半径范围的POI
  99. **参数:**
  100. - `location`: 中心点经纬度坐标
  101. - `radius` (可选,默认为"1000"): 搜索半径
  102. - `keywords` (可选): 搜索关键词
  103. #### maps_search_detail
  104. 查询关键词搜或者周边搜获取到的POI ID的详细信息
  105. **参数:**
  106. - `id`: POI ID
  107. ## 配置方法
  108. 要使用此服务,您需要在应用中添加以下MCP配置。服务支持三种传输方式:`stdio`(默认)、`sse` 和 `streamable-http`。
  109. ### stdio 传输(默认)
  110. 直接在客户端配置如下MCP Server即可。
  111. ```json
  112. {
  113. "mcpServers": {
  114. "amap-mcp-server": {
  115. "command": "uvx",
  116. "args": [
  117. "amap-mcp-server"
  118. ],
  119. "env": {
  120. "AMAP_MAPS_API_KEY": "your valid amap maps api key"
  121. }
  122. }
  123. }
  124. }
  125. ```
  126. ### SSE 传输
  127. SSE传输支持实时数据推送,适合远程部署MCP Server。
  128. 本地以SSE运行 `amap-mcp-server`:
  129. ```bash
  130. $ export AMAP_MAPS_API_KEY=你的有效API Key
  131. $ uvx amap-mcp-server sse
  132. INFO: Started server process [50125]
  133. INFO: Waiting for application startup.
  134. INFO: Application startup complete.
  135. INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  136. ```
  137. MCP客户端配置:
  138. ```json
  139. {
  140. "mcpServers": {
  141. "amap-mcp-server": {
  142. "url": "http://0.0.0.0:8000/sse"
  143. }
  144. }
  145. }
  146. ```
  147. ### Streamable HTTP 传输
  148. 本地以Streamable HTTP运行 `amap-mcp-server`:
  149. ```bash
  150. $ export AMAP_MAPS_API_KEY=你的有效API Key
  151. $ uvx amap-mcp-server streamable-http
  152. INFO: Started server process [50227]
  153. INFO: Waiting for application startup.
  154. StreamableHTTP session manager started
  155. INFO: Application startup complete.
  156. INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  157. ```
  158. MCP客户端配置:
  159. ```json
  160. {
  161. "mcpServers": {
  162. "amap-mcp-server": {
  163. "url": "http://localhost:8000/mcp"
  164. }
  165. }
  166. }
  167. ```
  168. 您可以在[高德开放平台](https://lbs.amap.com/)注册并获取API密钥。

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.