maps-mcp
Provides tools for geocoding, reverse geocoding, place search and details, traffic-aware travel times, nearby place search, and time zone lookup using Google Maps Platform APIs.
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., "@maps-mcpHow long does it take to drive from Surry Hills to Sydney Airport?"
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.
maps-mcp
An MCP server exposing Google Maps Platform to any MCP client: geocoding, place search/details, traffic-aware travel times, and time zones. Seven tools, built on the Python MCP SDK (FastMCP). Runs as a local stdio server or as a containerized Streamable HTTP service with bearer auth.
Auth is a single API key, not OAuth — Maps Platform is a key-metered developer API, so there are no accounts to connect and no token refresh.
Tool Reference
Tool | Parameters | Description |
|
| Free-form address/place name → coordinates, canonical address, |
|
| Coordinates → nearest street address(es). |
|
| Text search for businesses/POIs ("vet near Potts Point"). Returns name, address, rating, open-now, phone, |
|
| One place in full: weekly opening hours, phone, website, rating, price level, editorial summary. |
|
| Route duration + distance via the Routes API; traffic-aware for |
|
| Typed "what's around me" (Places New searchNearby): |
|
| IANA zone + UTC offset (incl. DST) at a point; |
Origins/destinations for travel_time accept three spellings, resolved by
shape: a free-form address, "lat,lng", or "place_id:<id>".
# "When do I need to leave?" — compose with your calendar MCP server
travel_time(
origin="home address here",
destination="325 Edgecliff Rd, Woollahra", # from the event's location
mode="drive",
departure_time="2026-07-05T08:30:00+10:00",
)
# Find somewhere that's open right now
place_search(query="pharmacy Potts Point", open_now=True)Related MCP server: google-maps-mcp
Setup (Google Cloud console — one-time)
Create (or pick) a GCP project. Prefer a dedicated project — an API key is easier to leak than an OAuth token, and project isolation caps the blast radius. Enable billing (personal volumes sit inside the monthly free tiers, but the billing account is mandatory).
Enable four APIs: Geocoding API, Places API (New), Routes API, Time Zone API.
Create an API key (Credentials → Create credentials → API key) and restrict it to exactly those four APIs. Add IP restrictions if the caller set is stable.
Set
MAPS_API_KEYin the server's environment and restart. The server runs fine without the key — every tool call returns a setup-pointer error until it's set — so deployment order doesn't matter.
Quick start (stdio)
Most MCP clients (Claude Code, Claude Desktop, VS Code, …) spawn stdio servers directly. With uv installed:
// e.g. Claude Desktop claude_desktop_config.json / Claude Code .mcp.json
{
"mcpServers": {
"maps": {
"command": "uv",
"args": ["run", "--project", "/path/to/maps-mcp", "maps-mcp", "--stdio"],
"env": { "MAPS_API_KEY": "your-key-here" }
}
}
}stdio mode has no network surface and skips bearer auth — the client owns the process.
HTTP mode (container)
The bundled Containerfile builds a Streamable HTTP server at /mcp
(stateless — restarts never strand client sessions). HTTP mode refuses
to start without MCP_BEARER_TOKEN; clients authenticate with
Authorization: Bearer <token>.
podman build -t maps-mcp . # or: docker build -t maps-mcp .
podman run -d --name maps-mcp -p 8328:8328 \
-e MAPS_API_KEY=your-key -e MCP_BEARER_TOKEN=some-long-random-token \
maps-mcpmaps_mcp.healthcheck does a full HTTP round-trip to /mcp (the 401
counts as alive — it proves the event loop responds); wire it to your
container healthcheck with a restart-on-unhealthy policy. Terminate TLS
at a reverse proxy — the server itself speaks plain HTTP.
Configuration
Env var | Default | Purpose |
| (empty) | Google Maps Platform API key. Tools error clearly when unset. |
| (empty) | Optional ccTLD geocoding bias (e.g. |
| (empty) | Optional BCP-47 language for Places responses (e.g. |
|
| HTTP listen port. |
| (empty) | Required in HTTP mode; server refuses to start without it. Not used in |
Architecture notes
Four upstream APIs, one thread-safe
httpx.Client. Legacy-style APIs (Geocoding, Time Zone) take the key as a query param and report errors in a bodystatusfield; new-style APIs (Places New, Routes) takeX-Goog-Api-Key+ a mandatoryX-Goog-FieldMaskheader.Sync tool handlers are offloaded to a worker thread (the MCP SDK runs sync tools inline on the event loop, so a slow upstream call would otherwise stall every concurrent request). Per-request log lines (
tool= outcome= duration_ms= rss_mib=) go to stderr.API-key values are redacted from error messages before they can reach logs or clients.
Testing
# Tiers 1 + 2 — pure helpers + mocked HTTP (fast, no network, no key)
uv run --extra test pytest tests/test_maps_client.py -v
# Tier 3 — live API round-trips against stable Sydney landmarks
# (read-only; nothing to clean up). Gated on the key; skips without it.
MAPS_API_KEY=... uv run --extra test pytest tests/test_integration.py -vLicense
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.
Related MCP Servers
- AlicenseAqualityDmaintenanceProduction-ready MCP server for Google Maps Platform APIs, providing 11 tools for directions, places, geocoding, traffic, and road data to empower AI agents with location intelligence.Last updated114Apache 2.0
- Alicense-qualityCmaintenanceA TypeScript MCP server that exposes Google Maps Platform APIs as tools for LLMs, providing real map data like directions, transit routes, place search, address validation, photos, and elevation.Last updated359GPL 3.0
- Alicense-qualityDmaintenanceProvides MCP tools for Google Maps services including directions, geocoding, distance matrix, and places search.Last updated14Apache 2.0
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server for Google Maps — routing, place discovery, and commute comparison over stdio.Last updated1
Related MCP Connectors
Google Maps MCP Pack — geocoding, places, directions, distance matrix, elevation.
MCP server for Mireye Earth — federal-source-cited geospatial data for any MCP-aware agent.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/snickery/maps-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server