用于 Google Maps API 的 MCP 服务器。
maps_geocode
address(字符串)maps_reverse_geocode
latitude(数字)longitude(数字)maps_search_places
query(字符串)location(可选):{ latitude: 数字, longitude: 数字 }radius(可选):数字(米,最大50000)maps_place_details
place_id(字符串)maps_distance_matrix
origins(字符串数组)destinations(字符串数组)mode(可选):"driving" | "walking" | "bicycling" | "transit"maps_elevation
locations({latitude, longitude} 数组)maps_directions
origin(字符串)destination(字符串)mode(可选):"driving" | "walking" | "bicycling" | "transit"按照此处的说明获取 Google Maps API 密钥。
在你的 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"google-maps": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_MAPS_API_KEY",
"mcp/google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
Docker 构建:
docker build -t vonwig/google-maps:mcp -f src/google-maps/Dockerfile .
此 MCP 服务器采用 MIT 许可证。这意味着你可以自由地使用、修改和分发该软件,但需遵守 MIT 许可证中的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。