网淘吧来吧,欢迎您!

Google Maps Grounding MCP技能使用说明

2026-03-28 新闻来源:网淘吧 围观:15
电脑广告
手机广告

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_placestextQuery(必填项),位置偏好语言代码地区代码

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

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

注意事项

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

相关文章

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