Skip to main content

Google Maps MCP

In one line: Give your UnleashX agent location superpowers — find places, convert addresses to coordinates, calculate routes and travel times, and look up timezones and elevation.
CategoryProductivity
AuthenticationAPI Key (Google Maps Platform)
Setup time~5 minutes
DifficultyEasy
Best forAgents that need geographic context — finding nearby businesses, validating addresses, planning routes, or estimating travel time.

1. Overview

Google Maps Platform is Google’s suite of location services. It can find places by name or keyword, turn an address into latitude/longitude (geocoding) and back again, calculate driving/walking/transit routes, estimate travel times and distances, and answer questions about timezones, roads, and ground elevation. Once you connect Google Maps to UnleashX, your agent can answer location-aware questions and enrich its workflows with real geographic data. It can find the nearest open store, confirm a customer’s address, tell a caller how long the drive will take, or look up the local time at a destination. Connecting Google Maps is great for booking, delivery, dispatch, and concierge-style agents. Instead of guessing, the agent uses Google’s live map data to give accurate places, directions, and times. All Google Maps tools here are read-only — they look things up and never change your data.

2. What you’ll need

  • A Google Cloud account (console.cloud.google.com).
  • A Google Cloud project with billing enabled (Maps Platform requires a billing account, though it includes a generous free tier).
  • Permission to create credentials (typically Editor / Owner or a role with serviceusage and credential access).
  • The relevant Maps Platform APIs enabled: Places API, Geocoding API, Directions API, Distance Matrix API, Time Zone API, Roads API, and Elevation API.
If you can’t enable APIs or create keys, ask a Google Cloud project admin to create a Maps Platform API key for you. Connecting only needs the API key string.

3. Get your credentials

Google Maps MCP authenticates with a single Maps Platform API key — a string that looks like AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Getting one takes five steps in the Google Cloud Console: create a project, turn on billing, enable the APIs you need, create the key, and restrict it.

Step 1 — Create or select a Google Cloud project

Sign in at the Google Cloud Console with your Google account. Click the project dropdown at the top of the page, then choose New Project. Open the project picker and choose New Project Give the project a name (for example myHelloWorld or my-maps-agent). Google generates a Project ID automatically — note that it cannot be changed later. Click Create. Name the new project and click Create If your account belongs to an organization, you can also pick the billing account and organization while creating the project. Create a project with a billing account and organization selected

Step 2 — Enable billing

Google Maps Platform requires a billing account, even though it includes a generous monthly free credit. Open the menu (☰) and go to Billing, or just type “billing” into the search bar at the top. Billing in the left navigation menu Find Billing accounts using the search bar If the project isn’t linked to a billing account yet, click Link a billing accountCreate billing account, and add a credit/debit card. Link a billing account to the project Once billing is active, the Billing account overview shows your current spend, forecast, and any remaining free credits. Billing account overview with cost trend and credits
Google usually provides a monthly free usage credit, but a billing account must still be attached or every Maps API call returns REQUEST_DENIED.

Step 3 — Enable the required APIs

Go to APIs & Services → Library and enable each API your agent will use. Search for the API, open it, and click Enable. Enable the Places API Enable the Geocoding API For full UnleashX functionality, enable all of these: Places API, Geocoding API, Directions API, Distance Matrix API, Time Zone API, Roads API, and Elevation API. At minimum, the three below cover most agent use cases:
You want to…Enable this API
Find nearby businesses / autocomplete addressesPlaces API
Convert addresses ↔ latitude/longitudeGeocoding API
Display a map on a websiteMaps JavaScript API
Get routes & directionsDirections API (or the newer Routes API)
If an API isn’t enabled, the matching tool will fail with REQUEST_DENIED. Enable it in the Library and retry.

Step 4 — Create the API key

Open APIs & Services → Credentials (from the Maps Platform docs you can also click Go to the Credentials page). Go to the Credentials page from the Maps Platform docs Click Create credentials → API key. Google generates the key string immediately. Create credentials and choose API key Create an API key from the Maps Platform Keys & Credentials page The Credentials page lists API keys, OAuth 2.0 Client IDs, and service accounts. For Maps MCP you only need a plain API key — not an OAuth client ID or service account. The Credentials page with the Create credentials dropdown
Treat the API key like a password. Copy it now and store it securely. For safety, restrict the key (next step) so it can’t be misused if it ever leaks.
Click the newly created key to open its settings. Restrictions prevent quota theft and unauthorized use. Application restrictions — limit who can use the key:
  • For websites (frontend Maps JavaScript): choose HTTP referrers and add your domains, e.g. https://yourdomain.com/* and https://www.yourdomain.com/*.
  • For backend servers (the typical UnleashX/MCP case): choose IP addresses and add your server IP. If your server IP isn’t fixed, leave it as None and rely on the API restrictions below.
Restrict the key to HTTP referrers and add your website API restrictions — limit which APIs the key can call. Select Restrict key, then tick only the APIs you enabled in Step 3. Restrict and rename the API key, selecting only the APIs you use Application and API restrictions with the selected APIs listed Website and API restrictions, then Save Click Save. Changes can take up to 5 minutes to take effect. Your restricted key is now ready to paste into UnleashX (Section 4).

Permissions / APIs this key uses

APIPlain-English reason UnleashX needs it
Places APISearch for places and fetch place details.
Geocoding APIConvert addresses ↔ coordinates.
Directions APICalculate routes between points.
Distance Matrix APIEstimate travel times and distances.
Time Zone APILook up the local timezone for a location.
Roads APISnap GPS points to the nearest roads.
Elevation APIGet ground elevation for coordinates or a path.

4. Connect on UnleashX

1

Open your agent

Sign in at tryunleashx.com and open the agent you want to give Google Maps access to.
2

Go to Data Connectors

Open Data Connectors and find Google Maps in the list.
3

Connect

Click Connect / Add / Configure and paste your Maps Platform API key (sent as the api-key / api_key credential). Authenticate once.
4

Confirm success

When the key works, the status changes to a Connected badge. Your agent can now use the Google Maps tools below.
01 google maps connect

5. Available tools

This server exposes 14 tools. All Google Maps tools are read-only (they look up data and never change anything in your account).
Tool nameWhat it doesChanges data?
Search NearbyFind places near a location, with radius/rating/open-now filters.No
Get Place DetailsGet full details for a place by place ID.No
GeocodeConvert an address into coordinates.No
Reverse GeocodeConvert coordinates back into an address.No
Distance MatrixCalculate travel time/distance between many origins and destinations.No
DirectionsGet a route between an origin and destination.No
ElevationGet ground elevation for a list of coordinates.No
Search PlacesSearch places by text query (with optional location bias).No
Search Place DetailsSearch places and enrich each with detailed info (phone, hours, website, rating).No
Get Place Details (Single)Get details for a single place by place ID.No
Get DirectionsGet directions with optional waypoints and travel mode.No
Get TimezoneLook up the timezone for a location and timestamp.No
Get RoadsSnap a path of points to the nearest roads.No
Get ElevationGet elevation for places/coordinates, optionally sampled along a path.No
There are two families of tools with overlapping capabilities. Your agent picks whichever best fits the request — both run read-only lookups against Google Maps Platform.

6. Example usage

“Find coffee shops within 1 km of MG Road, Bengaluru that are open now and rated 4+.” → Runs Search Nearby (geocodes the location, then filters by radius, open-now, and minimum rating). “How long does it take to drive from Indiranagar to Bangalore Airport right now?” → Runs Directions (or Distance Matrix) to estimate the route and travel time.

7. Permissions & data access

UnleashX can:
  • Search for places and fetch place details (name, address, phone, hours, rating, website).
  • Geocode and reverse-geocode addresses and coordinates.
  • Calculate routes, travel times, and distances.
  • Look up timezones, snap points to roads, and get elevation.
UnleashX cannot:
  • Create, edit, or delete anything in Google Maps — every tool is read-only.
  • Access your personal Google Maps history, saved places, or Timeline.
  • Change your Google Cloud project, billing, or API settings.
How to disconnect: In your agent’s Data Connectors, open Google Maps and choose Disconnect to stop UnleashX from using the key immediately. To fully revoke access, delete or regenerate the API key in APIs & Services → Credentials.

8. Troubleshooting

ProblemWhat it meansHow to fix it
401 Unauthorized / “API key is required”No valid API key was provided.Reconnect Google Maps with a valid Maps Platform API key.
REQUEST_DENIED / 403The API isn’t enabled, billing is off, or the key is restricted away from that API.Enable the needed API in APIs & Services → Library, confirm billing is on, and check the key’s API restrictions.
OVER_QUERY_LIMIT / 429You’ve hit your usage quota or rate limit.Wait, raise your quota, or enable billing/upgrade in Google Cloud.
ZERO_RESULTSThe query was valid but no places/routes matched.Broaden the search, increase the radius, or check the spelling of the address.
”Invalid coordinate format”A location wasn’t a recognizable address or lat,lng pair.Provide a real address or coordinates as latitude,longitude.
For general connector issues, see /mcp/integrations.

9. Frequently asked questions

Does this cost money? Google Maps Platform is billed by usage, but includes a substantial monthly free tier. Light agent use often stays within it; heavy use may incur charges from Google (not UnleashX). Is any data changed in my account? No. Every tool here is read-only — it only looks up location information. Can I use one key across multiple agents? Yes. The same Maps Platform API key can be connected to multiple agents. For security, restrict the key to only the APIs you use. Why did a tool fail with “REQUEST_DENIED”? Usually the specific API (e.g. Directions API) isn’t enabled for your project, or your key is restricted away from it. Enable the API and adjust the key restrictions.

10. References