Skip to main content
Glama
Google Maps MCP Server

Google Maps MCP Server

by AIWerk

@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-maps

Or 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

GOOGLE_MAPS_API_KEY

yes

API key from Google Cloud Console

GOOGLE_MAPS_API_TIMEOUT_MS

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)

maps_search_places, maps_search_nearby, maps_place_details, maps_place_autocomplete

Geocoding API

maps_geocode, maps_reverse_geocode, maps_place_id_lookup

Routes API

maps_directions, maps_distance_matrix

Elevation API

maps_elevation

Time Zone API

maps_timezone

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

maps_search_places

Text search for places, with optional area bias, type, rating, price and open-now filters.

maps_search_nearby

Places inside a circle around a coordinate, with the radius as a hard restriction.

maps_place_details

Full detail for one place ID: hours, phone, website, rating, optionally reviews.

maps_place_autocomplete

Place suggestions plus place IDs for partially typed input.

maps_geocode

Address to coordinates, with normalised address components and place ID.

maps_reverse_geocode

Coordinates to the addresses at that point.

maps_place_id_lookup

Place ID to address and coordinates through the cheaper Geocoding API.

maps_directions

Route with turn-by-turn steps, waypoints, traffic, alternatives and transit support.

maps_distance_matrix

Travel time and distance for every origin-destination pair.

maps_elevation

Elevation for up to 100 points, or a sampled profile along a path.

maps_timezone

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

"Bundesplatz 3, 3005 Bern"

Coordinates

"46.9480,7.4474"

Place ID

"place_id:ChIJ..."

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_details leaves reviews out until you set include_reviews: true, which moves the call to the Enterprise + Atmosphere tier.

  • maps_directions requests turn-by-turn steps by default. Set include_steps: false for totals only.

  • maps_search_places and maps_search_nearby accept a fields array that replaces the default mask entirely, for either trimming cost or reaching fields the default omits.

  • maps_place_id_lookup resolves 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 status field. This server checks that field, so a bad key surfaces as a tool error instead of an empty success.

  • ZERO_RESULTS is returned as data, not as an error. An empty results array means the address or route genuinely has no match.

  • routingPreference and the avoid_* flags only apply to DRIVE and TWO_WHEELER. Passing them with WALK, BICYCLE or TRANSIT is rejected locally rather than sent to the API.

  • maps_distance_matrix results carry originIndex and destinationIndex and are not necessarily ordered.

License

MIT

Available Tools

11 tools
maps_directionsA
Read-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_matrixA
Read-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_elevationA
Read-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_geocodeA
Read-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_autocompleteA
Read-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_detailsA
Read-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_lookupA
Read-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_geocodeA
Read-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_nearbyA
Read-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_placesA
Read-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_timezoneA
Read-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

    A4.2/5.0

    Scored across 11 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    Related MCP Servers