Google Maps MCP Server
Provides tools for using Google Maps Platform APIs, including place search and details, geocoding, turn-by-turn directions, distance matrices, elevation, and time zone lookups.
Click on "Deploy 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 MCP Server Get turn-by-turn directions from Portland to Seattle"
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.
@aiwerk/mcp-server-google-maps
Google Maps Platform MCP server — places, geocoding, turn-by-turn directions, route matrices, elevation and time zones.
Built on the current Google APIs: Places API (New), Routes API v2, Geocoding API, Elevation API and Time Zone API. Turn-by-turn steps, transit routes and live traffic are included, which the Maps Grounding Lite MCP service does not provide.
Install
npx -y @aiwerk/mcp-server-google-mapsOr add to your MCP client config:
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@aiwerk/mcp-server-google-maps"],
"env": {
"GOOGLE_MAPS_API_KEY": "your-api-key"
}
}
}
}Related MCP server: Google Maps MCP Server
Configure
Variable | Required | Description |
| yes | API key from Google Cloud Console |
| no | Request timeout in ms (default: 30000) |
APIs to enable on the Cloud project
Each tool group calls a different API, and a disabled API answers REQUEST_DENIED or HTTP 403. Enable the ones you plan to use:
API | Powers |
Places API (New) |
|
Geocoding API |
|
Routes API |
|
Elevation API |
|
Time Zone API |
|
Billing must be enabled on the project. The legacy Places API and Directions API are not used, so enabling those alone is not enough.
Tools
11 read-only tools. Nothing in this server writes, and every tool is annotated readOnlyHint.
Name | Description |
| Text search for places, with optional area bias, type, rating, price and open-now filters. |
| Places inside a circle around a coordinate, with the radius as a hard restriction. |
| Full detail for one place ID: hours, phone, website, rating, optionally reviews. |
| Place suggestions plus place IDs for partially typed input. |
| Address to coordinates, with normalised address components and place ID. |
| Coordinates to the addresses at that point. |
| Place ID to address and coordinates through the cheaper Geocoding API. |
| Route with turn-by-turn steps, waypoints, traffic, alternatives and transit support. |
| Travel time and distance for every origin-destination pair. |
| Elevation for up to 100 points, or a sampled profile along a path. |
| Time zone, UTC offset and DST offset for a coordinate at a given moment. |
Location arguments
maps_directions and maps_distance_matrix accept three shapes for every location:
Shape | Example |
Address |
|
Coordinates |
|
Place ID |
|
maps_reverse_geocode, maps_elevation and maps_timezone need coordinates, since those APIs do not geocode. Run maps_geocode first.
Cost control
Places and Routes calls are billed by the fields they request, so the field masks in this server are deliberately narrow.
maps_place_detailsleaves reviews out until you setinclude_reviews: true, which moves the call to the Enterprise + Atmosphere tier.maps_directionsrequests turn-by-turn steps by default. Setinclude_steps: falsefor totals only.maps_search_placesandmaps_search_nearbyaccept afieldsarray that replaces the default mask entirely, for either trimming cost or reaching fields the default omits.maps_place_id_lookupresolves a place ID through Geocoding instead of Place Details when only the address is needed.
Set a quota cap in Google Cloud Console before pointing an autonomous agent at this server.
Notes
The classic web services (Geocoding, Elevation, Time Zone) answer HTTP 200 even when they refuse a request, with the real result in a
statusfield. This server checks that field, so a bad key surfaces as a tool error instead of an empty success.ZERO_RESULTSis returned as data, not as an error. An emptyresultsarray means the address or route genuinely has no match.routingPreferenceand theavoid_*flags only apply toDRIVEandTWO_WHEELER. Passing them withWALK,BICYCLEorTRANSITis rejected locally rather than sent to the API.maps_distance_matrixresults carryoriginIndexanddestinationIndexand are not necessarily ordered.
License
MIT
Available Tools
11 toolsmaps_directionsARead-only
Compute a route with turn-by-turn steps between two points, with optional waypoints. Supports DRIVE, WALK, BICYCLE, TWO_WHEELER and TRANSIT, live traffic for the motorised modes, toll/highway/ferry avoidance, alternative routes and waypoint order optimisation. Origin, destination and waypoints each accept an address, "latitude,longitude", or "place_id:...". Set include_steps=false when only total time and distance matter.
Inputs: origin (required), destination (required), units, waypoints, +14 more.
maps_distance_matrixARead-only
Travel time and distance for every origin-destination pair, e.g. which of five depots is closest to a customer. Results carry originIndex and destinationIndex pointing back at the input arrays, and are not necessarily in order. Limit is 625 elements (origins x destinations), 100 for TRANSIT or TRAFFIC_AWARE_OPTIMAL.
Inputs: origins (required), destinations (required), units, avoid_tolls, +7 more.
maps_elevationARead-only
Elevation in metres above sea level for up to 100 coordinate pairs. Pass samples together with two or more locations to get an evenly spaced elevation profile along that path.
Inputs: locations (required), samples.
maps_geocodeARead-only
Convert an address into coordinates, plus the normalised address components, place ID and viewport. Narrow ambiguous addresses with components, e.g. "country:CH". An empty results array means ZERO_RESULTS, not an error.
Inputs: address (required), bounds, region, language, +1 more.
maps_place_autocompleteARead-only
Turn partially typed text into place suggestions with their place IDs. Cheaper and faster than a full search when the goal is only to resolve what the user meant, e.g. an ambiguous street or city name.
Inputs: input (required), latitude, longitude, region_code, +3 more.
maps_place_detailsARead-only
Full detail for one place ID: address components, phone numbers, website, opening hours, rating and business status. Set include_reviews to also get user reviews and the editorial summary, which costs more. Get the place ID from maps_search_places, maps_search_nearby, maps_geocode or maps_place_autocomplete.
Inputs: place_id (required), fields, region_code, language_code, +1 more.
maps_place_id_lookupARead-only
Resolve a place ID to its address and coordinates through the Geocoding API. Cheaper than maps_place_details when only the location is needed, but it returns no opening hours, phone number, rating or website.
Inputs: place_id (required), language.
maps_reverse_geocodeARead-only
Convert coordinates into the addresses at that point, ordered from most to least specific. Filter with result_type (e.g. "street_address") or location_type (e.g. "ROOFTOP") when only one kind of match is useful.
Inputs: location (required), language, result_type, location_type.
maps_search_nearbyARead-only
List places inside a circle around a coordinate, optionally filtered by type (e.g. ["cafe", "bakery"]). Unlike maps_search_places the radius is a hard restriction, so this is the tool for "what is within 500 m of here" questions.
Inputs: latitude (required), longitude (required), radius_meters (required), fields, +6 more.
maps_search_placesARead-only
Search places by free-form text, e.g. "vegan restaurant in Bern" or "pharmacy open now". Returns name, address, coordinates, place ID, rating and price level per hit. Bias results toward an area with latitude + longitude + radius_meters, and page through more results with the returned nextPageToken. Use maps_search_nearby instead when the search must stay strictly inside a radius.
Inputs: query (required), fields, rank_by, latitude, +10 more.
maps_timezoneARead-only
Time zone ID, name and UTC offset for a coordinate, including the daylight saving offset at the given moment. Pass timestamp when asking about a past or future date, since the DST offset depends on it.
Inputs: location (required), language, timestamp.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose: search, nearby search, place details, autocomplete, geocoding, reverse geocoding, place ID lookup, directions, distance matrix, elevation, and timezone. Even the two search tools are explicitly differentiated (free text vs. strict radius), and place details vs. place ID lookup are distinguished by data richness.
All tools use the maps_ prefix with snake_case, but the pattern varies: some are verb_noun (search_places, place_details) while others are noun-only (elevation, timezone). Overall the naming is predictable and readable, but not perfectly uniform.
11 tools is a well-scoped size for a Maps server, covering the core Google Maps APIs without bloat. Each tool earns its place and the set feels neither sparse nor overwhelming.
The surface is remarkably complete for a read-only Maps API server: it includes place search and details, geocoding (forward and reverse), place ID resolution, directions, distance matrix, elevation, and timezone. No obvious missing operations that an agent would commonly need.
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Ground your AI applications with trusted geospatial data from Google Maps.
The Google Maps MCP server is a fully-managed server provided by the Maps Grounding Lite API that connects AI applications to Google Maps Platform services. It provides three main tools for building LLM applications: searching for places, looking up weather information, and computing routes with details like distance and travel time. The server acts as a proxy that translates Google Maps data into a format that AI applications can understand, enabling agents to accurately answer real-world location and travel queries.
4 Google Maps endpoints. Pay per call in USDC via x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to access Google Maps services including geocoding, place search, directions, distance calculations, and elevation data through stdio communication. Provides comprehensive location-based functionality with direct Google Maps API integration.MIT
- AlicenseNot gradedqualityCmaintenanceEnables location-aware AI agents to search for nearby places, get detailed place information including hours and ratings, and calculate routes with turn-by-turn directions using Google Maps APIs.22MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access Google Maps services including places search, details, directions, geocoding, and nearby search through natural language.628 PyPI3MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Maps API for geocoding, place search, directions, distance matrices, and elevation data through natural language.MIT