Google Maps MCP Server
Geocoding, place search, directions, and distance matrix for AI agents
The Google Maps MCP Server connects AI agents to the Google Maps Platform, unlocking geocoding (address → coordinates), reverse geocoding, place search, directions between locations, and distance matrix calculations. Ideal for any agent that needs to reason about physical locations, plan routes, or enrich data with geographic context.
You need a Google Maps Platform API key with the Geocoding API, Places API, and Directions API enabled.
Installation & Configuration
Add this block to your claude_desktop_config.json:
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_api_key_here"
}
}
}
}
Get an API key from the Google Cloud Console. Enable the Geocoding, Places, and Directions APIs for your project.
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Available Tools (5)
maps_geocodemaps_reverse_geocodemaps_search_placesmaps_get_directionsmaps_distance_matrix
Use Cases
- Enrich a customer address list with coordinates for mapping
- Plan delivery routes — get driving directions between multiple stops
- Find nearby businesses or services given a location
- Calculate travel time between locations for scheduling agents
- Validate and normalize street addresses programmatically
Source & Documentation
GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/google-maps
Google Maps API Docs: developers.google.com/maps/documentation