google-maps

google-maps

4.3

MCP Server for the Google Maps API.

The Google Maps MCP Server is designed to facilitate seamless integration with the Google Maps API, providing a robust set of tools for geocoding, reverse geocoding, place searches, and more. This server acts as an intermediary, allowing developers to easily access and utilize Google Maps functionalities within their applications. By leveraging the Model Context Protocol (MCP), it ensures a standardized approach to interacting with the API, making it easier to manage and scale applications that require location-based services.

Features

  • Geocoding and Reverse Geocoding: Convert addresses to coordinates and vice versa.
  • Place Search and Details: Search for places and retrieve detailed information.
  • Distance Matrix: Calculate distances and travel times between multiple points.
  • Elevation Data: Retrieve elevation information for specific locations.
  • Directions: Get detailed route information between two points.

MCP Tools

  • maps_geocode: Convert address to coordinates
  • maps_reverse_geocode: Convert coordinates to address
  • maps_search_places: Search for places using text query
  • maps_place_details: Get detailed information about a place
  • maps_distance_matrix: Calculate distances and times between points
  • maps_elevation: Get elevation data for locations
  • maps_directions: Get directions between points

Usage with Different Platforms

Claude Desktop

{'Docker': {'script': '{\n  "mcpServers": {\n    "google-maps": {\n      "command": "docker",\n      "args": [\n        "run",\n        "-i",\n        "--rm",\n        "-e",\n        "GOOGLE_MAPS_API_KEY",\n        "mcp/google-maps"\n      ],\n      "env": {\n        "GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"\n      }\n    }\n  }\n}'}, 'NPX': {'script': '{\n  "mcpServers": {\n    "google-maps": {\n      "command": "npx",\n      "args": ["-y", "@modelcontextprotocol/server-google-maps"],\n      "env": {\n        "GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"\n      }\n    }\n  }\n}'}}

VS Code

{'NPX': {'script': '{\n  "mcp": {\n    "inputs": [\n      {\n        "type": "promptString",\n        "id": "maps_api_key",\n        "description": "Google Maps API Key",\n        "password": true\n      }\n    ],\n    "servers": {\n      "google-maps": {\n        "command": "npx",\n        "args": ["-y", "@modelcontextprotocol/server-google-maps"],\n        "env": {\n          "GOOGLE_MAPS_API_KEY": "${input:maps_api_key}"\n        }\n      }\n    }\n  }\n}'}, 'Docker': {'script': '{\n  "mcp": {\n    "inputs": [\n      {\n        "type": "promptString",\n        "id": "maps_api_key",\n        "description": "Google Maps API Key",\n        "password": true\n      }\n    ],\n    "servers": {\n      "google-maps": {\n        "command": "docker",\n        "args": ["run", "-i", "--rm", "mcp/google-maps"],\n        "env": {\n          "GOOGLE_MAPS_API_KEY": "${input:maps_api_key}"\n        }\n      }\n    }\n  }\n}'}}