SuperAPI AI Directory

amap-maps

General & other

View repository

Updated 10-16 12:38

About this skill

Amap Skill

Call the Amap Web Service API via the MCP server (amap-maps).

Prerequisites

  • In your mcporter.json , add the server configuration (just merge it under mcpServers ):

    "amap-maps": {
      "command": "npx",
      "args": ["-y", "@amap/amap-maps-mcp-server"],
      "env": {
        "AMAP_MAPS_API_KEY": "YOUR_AMAP_API_KEY"
      }
    }
    
  • An Amap Web Service API Key is required (environment variable AMAP_MAPS_API_KEY)

Available Tools

All tools are called via mcporter call amap-maps.<tool> .

Geocoding

# 地址 → 坐标
mcporter call amap-maps.maps_geo address="杭州市萧山区"

# 坐标 → 地址(逆地理编码)
mcporter call amap-maps.maps_regeocode location="120.26,30.27"

IP Location

mcporter call amap-maps.maps_ip_location ip="114.247.50.2"

Weather

mcporter call amap-maps.maps_weather city="杭州"

POI Search

# 关键词搜索
mcporter call amap-maps.maps_search_text keywords="咖啡" city="杭州"

# 周边搜索
mcporter call amap-maps.maps_search_around keywords="餐厅" location="120.26,30.27"

# POI 详情
mcporter call amap-maps.maps_search_detail id="B0FFH3V5BN"

Route Planning

# 驾车
mcporter call amap-maps.maps_direction_driving origin="120.26,30.27" destination="121.47,31.23"

# 步行
mcporter call amap-maps.maps_direction_walking origin="120.26,30.27" destination="120.28,30.29"

# 骑行
mcporter call amap-maps.maps_bicycling origin="120.26,30.27" destination="120.28,30.29"

# 公交(跨城需传 city/cityd)
mcporter call amap-maps.maps_direction_transit_integrated origin="120.26,30.27" destination="121.47,31.23" city="杭州" cityd="上海"

Distance Measurement

mcporter call amap-maps.maps_distance origins="120.26,30.27" destination="121.47,31.23"

Coordinate Format

Amap uses the GCJ-02 coordinate system, with the format 经度,纬度(note: longitude comes first).

Usage Tips

  • When coordinates are needed, first use maps_geo to convert the address into longitude and latitude
  • Use together with the caiyun-weather skill: first use Amap geocoding to get coordinates, then pass them to Caiyun Weather
  • The Amap API has a QPS limit, so avoid making a large number of requests in a short time