Integrates Google Maps for route planning, traffic analysis, and cost estimation.
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.
git clone [your-repo-url]
cd google-maps-mcp-server
npm install
Edit config/config.json
and replace GOOGLE_API_KEY
with 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.json
Windows: %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:
1. "Please set your Google Maps API key" error
config/config.json
has your actual API key, not GOOGLE_API_KEY
2. "Google Maps API error" messages
3. "No route found" errors
4. Server won't start
# 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
Run with debug logging:
DEBUG=* npm start
# 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"
Edit config/config.json
to customize:
{
"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.
Lightning-Fast, High-Accuracy Deep Research Agent 👉 8–10x faster 👉 Greater depth & accuracy 👉 Unlimited parallel runs
Search for IP addresses using Chaitin's IP Intelligence API.
Performs deep web searches for information using the Tavily API.
Provides real-time Caltrain schedule information using GTFS data.
Provides web search capabilities using a self-hosted SearxNG instance, allowing AI assistants to search the web.
An MCP server for expert discovery, registration, and context injection, utilizing vector and graph databases.
Search for Google images, view results, and download them directly within your IDE.
MCP server for interacting with the Ordiscan API to query Bitcoin ordinals and inscriptions. Requires an Ordiscan API key.
An enhanced MCP server for SearXNG web searching, utilizing a category-aware web-search, web-scraping, and includes a date/time retrieval tool.
Provides access to MarineTraffic vessel tracking data.