Google Maps MCP Server
Provides access to Google Maps Platform APIs for places search, geocoding, turn-by-turn directions, route matrices, elevation, and time zones. Enables natural language queries for location-based information and routing.
README
@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"
}
}
}
}
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_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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.