google-maps-transit
Requires enabling Google Cloud APIs (Routes API and Places API) and setting up an API key via the Google Cloud Console.
Provides tools for transit routing, place search and details, and commute comparison using Google Maps 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., "@google-maps-transittransit directions from Union Square to JFK 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
A Model Context Protocol server for Google Maps — routing, place discovery, and commute comparison over stdio.
Tools
get_transit_commute
Route between two addresses (or neighborhoods). Supports transit (default), driving, walking, bicycling, two_wheeler. Multi-leg trips via intermediates (A→B→C). Returns up to 3 alternative routes, each with:
mode,duration_minutes,distance_km,summary,steps_counttransit:
segments(line + vehicle type),transfers,walking_minutes,first_departure,last_arrivaldriving / two_wheeler:
duration_in_traffic_minutes(traffic-aware),toll_roads
search_places
Find restaurants, hotels, attractions, parks, gas stations, etc. using free-text queries. Optionally bias by location (near), filter by place type (type), and filter to currently-open places (open_now). Returns up to 20 results with name, address, rating, price level, open/closed status, and a id for follow-up.
get_place_details
Full details for a place from search_places: phone, website, per-day opening hours, editorial summary, and up to 5 user reviews. Takes a place_id.
compare_commutes
Rank 2–5 candidate origins against a shared destination by travel time. Fans out in parallel and returns results sorted fastest → slowest. Per-origin failures surface inline rather than aborting the whole comparison.
Related MCP server: MCP Google Map Server
Google Cloud setup
In Google Cloud Console, pick or create a project and enable these APIs (APIs & Services → Library):
Routes API — for
get_transit_commuteandcompare_commutesPlaces API (New) — for
search_placesandget_place_details
Then Credentials → Create credentials → API key. Restrict the key to those two APIs. Put the value in .env:
echo 'GOOGLE_MAPS_API_KEY=your-key-here' > .envSetup & running
npm install
npm run build
npm start # or: npx tsx src/index.ts (dev, no build needed)Make target | What it does |
|
|
| Compile TypeScript → |
| Run server (dev / compiled) |
| Unit + in-memory e2e tests |
| Live API test (needs key) |
| One real API request |
| Build/run Docker image |
Connecting a client (e.g. Cursor / Claude Desktop)
{
"mcpServers": {
"maps-mcp": {
"command": "node",
"args": ["/absolute/path/to/maps-mcp/dist/index.js"],
"env": { "GOOGLE_MAPS_API_KEY": "your-key-here" }
}
}
}For dev without building: "command": "npx", "args": ["tsx", "/absolute/path/to/maps-mcp/src/index.ts"].
Notes
MCP server name:
google-maps-transitdrivingandtwo_wheeleruseTRAFFIC_AWARErouting (Routes API v2)Up to
MAX_ROUTES = 3alternatives returned; Google may return fewerMissing
GOOGLE_MAPS_API_KEYsurfaces as a clear tool error
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.
Latest Blog Posts
- 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/Ocean-Ch/google-maps-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server