Google Maps MCP Server

by arunrajece

Not rated
GitHub

About

Integrates Google Maps for route planning, traffic analysis, and cost estimation.

Details

Author
arunrajece
Categories
Search, Knowledge Base, Other

Setup

Install Google Maps MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/arunrajece/google-maps-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that integrates Google Maps routing and traffic capabilities with Claude AI for advanced route planning, traffic analysis, and cost estimation.

- Node.js(LTS version 18+ recommended) - Download fromnodejs.org
- Google Maps API Keywith required services enabled
- Claude Desktopapplication for MCP integration

git clone [your-repo-url] cd google-maps-mcp-server npm install

- Go toGoogle Cloud Console
- Create a new project or select existing one
- Enable the following APIs:

- Directions API(required for routing)
- Distance Matrix API(required for traffic data)
- Geocoding API(required for address lookup)
- Places API(optional, for enhanced address search)

Editconfig/config.jsonand replaceGOOGLE_API_KEYwith your actual API key:

{ "googleMaps": { "apiKey": "your-actual-api-key-here" } }
# Test configuration npm test # Start in development mode npm run dev

Add this to your Claude Desktop MCP settings file:

macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "google-maps": { "command": "node", "args": ["/absolute/path/to/google-maps-mcp-server/src/index.js"], "cwd": "/absolute/path/to/google-maps-mcp-server" } } }

Restart Claude Desktop and you can now ask questions like:

- "Find the fastest route from New York to Boston"
- "Compare routes to the airport with and without tolls"
- "What's the traffic like for my commute right now?"

- calculate_route: Get optimal route with traffic consideration and waypoints
- compare_routes: Compare multiple route alternatives with different options
- get_live_traffic: Get real-time traffic information and travel delays
- estimate_costs: Calculate trip costs including fuel and toll estimates

1. "Please set your Google Maps API key" error

- Check thatconfig/config.jsonhas your actual API key, notGOOGLE_API_KEY
- Ensure the JSON format is valid (no trailing commas)

2. "Google Maps API error" messages

- Verify your API key is valid and has the required APIs enabled
- Check API quotas and billing in Google Cloud Console
- Ensure your API key isn't restricted to wrong domains/IPs

- Check that addresses are valid and exist
- Try using coordinates instead of addresses (lat,lng format)
- Verify the locations are accessible by car

# Check Node.js version node --version # Should be 18+ # Clear dependencies and reinstall rm -rf node_modules package-lock.json npm install # Check for configuration errors npm test

5. Claude Desktop can't find the server

- Use absolute paths in Claude Desktop config
- Restart Claude Desktop after configuration changes
- Check that the MCP config file path is correct for your OS

# Test route calculation echo '{"origin":"New York, NY","destination":"Boston, MA"}' | node src/index.js # Check API connectivity curl "https://maps.googleapis.com/maps/api/directions/json?origin=NYC&destination=Boston&key=YOUR_API_KEY"
{ "googleMaps": { "apiKey": "your-api-key" }, "server": { "port": 3001, "host": "localhost" }, "routing": { "defaultTrafficModel": "best_guess", "maxWaypoints": 25, "maxAlternatives": 3, "units": "metric" }, "costs": { "fuelPricePerLiter": 1.50, "vehicleFuelEfficiency": 8.0, "tollEstimatePerKm": 0.05 } }

MIT License - feel free to modify and distribute.

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

Fetch, convert, and search AWS documentation pages, with recommendations for related content.

Search campgrounds around the world on campertunity, check availability, and provide booking links.

The Ferryhopper MCP Server exposes ferry routes, schedules and booking redirects so an AI assistant can discover connections across Europe and the Mediterranean and send users to Ferryhopper to complete bookings.

All-in-One SEO & Web Intelligence Toolkit API from FetchSERP.

MCP server that provides read-only access to HyperKitty, the web-based email archive component of Mailman 3.

At Sunrise Apps, we believe AI agents should be limitless, especially when it comes to visual data. We created ImageSorcery to bridge the critical gap in AI's ability to interact with and manipulate images directly, all while upholding the highest standards of privacy and security.

Just Domain is the domain registrar for businesses built with AI. Its remote MCP server checks availability and returns first-year and renewal pricing, plus a link to register on justdomain.ai, with DNS and WHOIS privacy in the same place. No account, no API key, read only. Endpoint: https://mcp.justdomain.ai/

Research tools, including a Sqlite-backed document stash

Semantic search over 9 free-license stock photo sources. Hosted remote server with OAuth — no API key to paste.

SerpApi MCP Server for Google and other search engine results

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.