Google Maps MCP Server
Google 地图 MCP 服务器
Google Maps API 的 MCP 服务器。
工具
maps_geocode将地址转换为坐标
输入:
address(字符串)返回:location、formatted_address、place_id
maps_reverse_geocode将坐标转换为地址
输入:
latitude(数字)longitude(数字)
返回:formatted_address、place_id、address_components
maps_search_places使用文本查询搜索地点
输入:
query(字符串)location(可选):{纬度:数字,经度:数字}radius(可选):数字(米,最大 50000)
返回:包含名称、地址、位置的地点数组
maps_place_details获取有关某个地点的详细信息
输入:
place_id(字符串)返回:姓名、地址、联系信息、评分、评论、营业时间
maps_distance_matrix计算点之间的距离和时间
输入:
origins(字符串[])destinations(字符串[])mode(可选):“驾驶” | “步行” | “骑自行车” | “公交”
返回:距离和持续时间矩阵
maps_elevation获取位置的海拔数据
输入:
locations({纬度,经度} 数组)返回:每个点的海拔数据
maps_directions获取点之间的路线
输入:
origin(字符串)destination(字符串)mode(可选):“驾驶” | “步行” | “骑自行车” | “公交”
返回:路线详情,包括步数、距离、持续时间
Related MCP server: mapbox-mcp-server
设置
API 密钥
按照 此处的说明获取 Google Maps API 密钥。
与 Claude Desktop 一起使用
将以下内容添加到您的claude_desktop_config.json中:
Docker
{
"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>"
}
}
}
}NPX
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}与 VS Code 一起使用
为了快速安装,请使用下面的一键安装按钮之一...
如需手动安装,请将以下 JSON 块添加到 VS Code 中的“用户设置 (JSON)”文件中。您可以按下Ctrl + Shift + P并输入Preferences: Open User Settings (JSON)来完成此操作。
或者,您可以将其添加到工作区中名为.vscode/mcp.json的文件中。这样您就可以与其他人共享该配置。
请注意
.vscode/mcp.json文件中不需要mcp键。
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "maps_api_key",
"description": "Google Maps API Key",
"password": true
}
],
"servers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "${input:maps_api_key}"
}
}
}
}
}对于 Docker 安装:
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "maps_api_key",
"description": "Google Maps API Key",
"password": true
}
],
"servers": {
"google-maps": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "${input:maps_api_key}"
}
}
}
}
}建造
Docker 构建:
docker build -t mcp/google-maps -f src/google-maps/Dockerfile .执照
此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceMCP server to interact with Google produts.489MIT
- MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that enables interaction with Google's Service Usage API, allowing management and control of which Google Cloud Platform APIs and services are enabled for a project.
Related MCP Connectors
MCP server for Google search results via SERP API
Google Maps MCP Pack — geocoding, places, directions, distance matrix, elevation.
Geospatial MCP server for earthquake, tsunami, volcano, disaster, and FX data queries.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/modelcontextprotocol/google-maps'
If you have feedback or need assistance with the MCP directory API, please join our Discord server