Google Maps MCP Server

Productivitystdiov0.6.2
代码仓库

MCP server for the Google Maps Platform. Enables AI agents to geocode addresses, search for places, retrieve place details, and compute directions and distances, giving models location awareness and routing from AI-powered tools.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "google-maps": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-google-maps"
      ],
      "env": {
        "GOOGLE_MAPS_API_KEY": "<YOUR_GOOGLE_MAPS_API_KEY>"
      }
    }
  }
}

工具 (3)

maps_geocode

Convert an address into latitude/longitude coordinates.

{
  "type": "object",
  "required": [
    "address"
  ],
  "properties": {
    "address": {
      "type": "string",
      "description": "Address to geocode"
    }
  }
}

maps_search_places

Search for places near a location using a text query.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Text query (for example \"coffee near me\")"
    },
    "radius": {
      "type": "integer",
      "description": "Search radius in meters"
    },
    "location": {
      "type": "string",
      "description": "Center location as \"lat,lng\""
    }
  }
}

maps_directions

Get directions and travel time between an origin and destination.

{
  "type": "object",
  "required": [
    "origin",
    "destination"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "description": "Travel mode (driving, walking, bicycling, transit)"
    },
    "origin": {
      "type": "string",
      "description": "Starting address or coordinates"
    },
    "destination": {
      "type": "string",
      "description": "Ending address or coordinates"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Model Context Protocol (@modelcontextprotocol)
代码仓库
https://github.com/modelcontextprotocol/servers
许可证
MIT
版本
0.6.2
星标
1,876
最后更新
2026年7月9日