Convert address to coordinates, returning location, formatted address, and place ID
Convert coordinates to address, returning formatted address, place ID, and address components
Search for places using text query, optionally filtered by location and radius
Get detailed information about a place including name, address, contact info, ratings, reviews, and opening hours
Calculate distances and travel times between multiple origins and destinations
Get elevation data for specified locations
Get directions between points, including route details with steps, distance, and duration
The Google Maps MCP provides a comprehensive interface to Google Maps API services, allowing AI assistants to work with location data. It enables geocoding addresses to coordinates, finding places, calculating routes, measuring distances between locations, and retrieving detailed place information. With this integration, AI assistants can help users with location-based tasks such as planning trips, finding nearby businesses, calculating travel times, and analyzing geographic data - all while maintaining context within the conversation.
The Google Maps MCP Server provides access to Google Maps API functionality, allowing AI assistants to work with location data, search for places, calculate routes, and more.
Before using this MCP, you'll need to obtain a Google Maps API key:
You can install and use the Google Maps MCP with different AI assistant platforms:
Add the following configuration to your claude_desktop_config.json
file:
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
{
"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>"
}
}
}
}
For VS Code, you can use the one-click install buttons available in the repository or manually add the configuration:
Ctrl + Shift + P
and type Preferences: Open User Settings (JSON)
{
"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}"
}
}
}
}
}
Alternatively, you can create a .vscode/mcp.json
file in your workspace with the same configuration (without the mcp
key).
Once installed, you can use the Google Maps MCP to perform various location-based tasks:
Find coordinates for an address: "What are the coordinates for the Empire State Building?"
Get directions between locations: "What's the fastest route from Central Park to Times Square?"
Search for nearby places: "Find coffee shops near the Eiffel Tower."
Get detailed information about a place: "Tell me about the opening hours and reviews for the Louvre Museum."
Calculate travel distances and times: "How long would it take to drive from Los Angeles to San Francisco?"
The AI assistant will use the appropriate Google Maps API tools to provide accurate and helpful responses to these queries.