google-maps-comprehensive-mcp
Integrates with Google Maps APIs (Places, Routes, Geocoding, Elevation) to provide geocoding, place search and details, distance matrix, elevation data, and directions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-maps-comprehensive-mcpGet directions from London to Paris by train"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Maps MCP Server
MCP Server per le API moderne di Google Maps (Places API, Routes API, Geocoding API, Elevation API).
Supporta geocoding, ricerca luoghi, dettagli di posti, calcolo di distanze, elevazioni e percorsi.
Tools Disponibili
πΊοΈ 8 Tools Implementati
maps_ping(Health Check)Verifica se il server MCP Γ¨ attivo
Input: nessuno
Output:
"Google Maps MCP server is alive β "
maps_geocodeConverte un indirizzo in coordinate geografiche
Input:
address(string)Output:
location,formatted_address,place_id,address_components
maps_reverse_geocodeConverte coordinate in un indirizzo leggibile
Input:
latitude(number)longitude(number)
Output:
formatted_address,place_id,address_components
maps_search_placesRicerca luoghi tramite query testuale usando Places API (New)
Input:
query(string)Output: array di luoghi con
displayName,formattedAddress,location,types
maps_place_detailsOttieni informazioni dettagliate su un luogo
Input:
place_id(string)Output:
name,address,contact info,ratings,reviews,opening hours,photos
maps_distance_matrixCalcola distanze e tempi tra multiple origini e destinazioni
Input:
origins(string[])destinations(string[])mode(optional):"driving" | "walking" | "bicycling" | "transit"
Output: matrice di
distancesedurations
maps_elevationRecupera dati di elevazione per punti geografici
Input:
locations(array di{ latitude, longitude })Output:
elevationeresolutionper ogni punto
maps_directionsOttieni indicazioni stradali tra due punti usando Routes API (New)
Input:
origin(string)destination(string)travelMode(optional):"DRIVE" | "WALK" | "BICYCLE" | "TRANSIT"
Output:
route steps,distance,duration,polyline
Related MCP server: MCP Google Map Server
π Setup e Installazione
1. Ottenere una API Key
Crea una API key Google Maps abilitando:
Places API (New)
Routes API (New)
Geocoding API
Elevation API
Segui la guida ufficiale: Get an API Key
2. Installazione Dipendenze
npm install3. Build del Progetto
npm run build4. Variabile d'Ambiente
export GOOGLE_MAPS_API_KEY="your_api_key_here"π§ Uso
Esecuzione Locale
# Con variabile d'ambiente
GOOGLE_MAPS_API_KEY="your_key" node dist/index.js
# O con export
export GOOGLE_MAPS_API_KEY="your_key"
node dist/index.jsDocker
# Build dell'immagine
docker build -t google-maps-mcp .
# Esecuzione con docker-compose
GOOGLE_MAPS_API_KEY="your_key" docker-compose up
# Esecuzione diretta
docker run --rm -it -e GOOGLE_MAPS_API_KEY="your_key" google-maps-mcpπ― Configurazione MCP Client
Claude Desktop
{
"mcpServers": {
"google-maps": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/google-maps-mcp",
"env": {
"GOOGLE_MAPS_API_KEY": "your_api_key"
}
}
}
}LM Studio
{
"mcpServers": {
"google-maps": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/Users/pallotta/mcp-servers/google-maps",
"env": {
"GOOGLE_MAPS_API_KEY": "your_api_key"
}
}
}
}Docker (Claude Desktop)
{
"mcpServers": {
"google-maps": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "GOOGLE_MAPS_API_KEY=your_api_key",
"google-maps-mcp"
]
}
}
}π§ͺ Test
Il server Γ¨ stato testato con successo e tutti i tool funzionano correttamente:
β maps_ping - Health check
β maps_geocode - Address β Coordinates
β maps_reverse_geocode - Coordinates β Address
β maps_search_places - Place search
β maps_place_details - Detailed place info
β maps_distance_matrix - Distance/time matrix
β maps_elevation - Elevation data
β maps_directions - Route directions
π API Utilizzate
Google Places API (New) - Per ricerca luoghi e dettagli
Google Routes API (New) - Per indicazioni stradali
Google Geocoding API - Per conversione indirizzi β coordinate
Google Elevation API - Per dati di elevazione
π Sicurezza
β οΈ Importante: Non committare mai la tua API key nel repository. Usa sempre variabili d'ambiente.
π Note
Il server utilizza stdio transport per la comunicazione MCP
Supporta CommonJS per compatibilitΓ
Tutti i tool restituiscono dati in formato JSON
Gestione errori completa per tutte le API calls
π Troubleshooting
Errore: "GOOGLE_MAPS_API_KEY environment variable is required"
Assicurati di aver impostato la variabile d'ambiente
Verifica che l'API key sia valida e abilitata
Errore: "Tool not found"
Verifica che il server sia stato buildato correttamente:
npm run buildControlla che tutti i tool siano implementati nel codice
Problemi Docker
Se il container non ha i tool aggiornati, esegui:
docker build --no-cache -t google-maps-mcp .Verifica che la variabile d'ambiente sia passata correttamente al container
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.
Latest Blog Posts
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/vicpeacock/google-maps-comprehensive-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server