Google Maps Grounding MCP技能使用说明

subsun 6个月前 (03-28) openclaw小龙虾 269 0

Grounding Lite

Google Maps Grounding Lite MCP 提供基于 AI 的地理位置数据。实验性版本(正式发布前),预览期间免费。

设置

  1. 启用 API:gcloud beta services enable mapstools.googleapis.com
  2. 从以下位置获取 API 密钥:Cloud Console
  3. 设置环境变量:export GOOGLE_MAPS_API_KEY="YOUR_KEY"
  4. 配置 mcporter:
    mcporter config add grounding-lite \
      --url https://mapstools.googleapis.com/mcp \
      --header "X-Goog-Api-Key=$GOOGLE_MAPS_API_KEY" \
      --system
    

工具

  • search_places:查找地点、商家、地址。返回带有 Google Maps 链接的 AI 摘要。
  • lookup_weather:当前状况和预报(48小时逐小时预报,7天逐日预报)。
  • compute_routes:旅行距离和时长(不提供逐向导航指示)。

命令

# Search places
mcporter call grounding-lite.search_places textQuery="pizza near Times Square NYC"

# Weather
mcporter call grounding-lite.lookup_weather location='{"address":"San Francisco, CA"}' unitsSystem=IMPERIAL

# Routes
mcporter call grounding-lite.compute_routes origin='{"address":"SF"}' destination='{"address":"LA"}' travelMode=DRIVE

# List tools
mcporter list grounding-lite --schema

参数

search_places:textQuery(必填项),位置偏好,语言代码,地区代码

查询天气:地点(必填项:地址/经纬度坐标/地点ID),单位制,日期,小时

计算路线:起点,终点(必填项),出行模式(驾车/步行)

注意事项

  • 速率限制:search_places 100 QPM(每日1千次),lookup_weather 300 QPM,compute_routes 300 QPM
  • 在面向用户的输出中包含Google Maps链接(需注明出处)
  • 仅适用于不基于输入数据进行训练的模型
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

相关推荐

网友评论

  • (*)

最新评论

您是本站第2182642名访客 今日有0篇新文章/评论