Google Maps MCP Server 配置与使用说明
安装方式npx
风险等级中风险
API Key需要
客户端3 个支持
Google Maps API 集成,支持地点搜索、路线规划和地理编码
支持客户端
- Claude Desktop
- Cursor
- VS Code / Cline
安装命令
npx -y @modelcontextprotocol/server-google-maps配置示例
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<your-api-key>"
}
}
}
}需要设置环境变量:GOOGLE_MAPS_API_KEY。不要把这些值提交到公开仓库。
权限范围与安全提示
需要 Google Maps API Key,会产生 API 调用费用
- network-access
- credential-required
风险评分:3/10
常见报错
- API Key 无效
- 在 Google Cloud Console 启用 Maps API 并生成 Key
- REQUEST_DENIED
- 确认 API Key 已启用 Places API 和 Directions API
来源
最近核验:2026-05-18。客户端版本和配置格式可能变化,使用前请以官方文档为准。