Google Maps Grounding MCP技能使用说明
2026-03-28
新闻来源:网淘吧
围观:15
电脑广告
手机广告
Grounding Lite
Google Maps Grounding Lite MCP 提供基于 AI 的地理位置数据。实验性版本(正式发布前),预览期间免费。
设置
- 启用 API:
gcloud beta services enable mapstools.googleapis.com - 从以下位置获取 API 密钥:Cloud Console
- 设置环境变量:
export GOOGLE_MAPS_API_KEY="YOUR_KEY" - 配置 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链接(需注明出处)
- 仅适用于不基于输入数据进行训练的模型
文章底部电脑广告
手机广告位-内容正文底部
上一篇:X Algorithm技能使用说明
下一篇:Twilio技能使用说明


微信扫一扫,打赏作者吧~