Provides access to Google Maps Geocoding API, enabling forward geocoding (address to coordinates), reverse geocoding (coordinates to address), and Place ID lookups with support for multi-language results and advanced filtering.
Google Maps Geocoding MCP Server
A Model Context Protocol (MCP) server that provides access to Google Maps Geocoding API. This server enables LLM clients like Claude Desktop and Cursor to perform address geocoding, reverse geocoding, and place ID lookups. The aim of this MCP is only the Geocoding API. This is because there isn't great support for connecting to many MCP servers yet in most tools.
Features
πΊοΈ Forward Geocoding: Convert addresses to coordinates
π Reverse Geocoding: Convert coordinates to addresses
π’ Place Geocoding: Convert Google Place IDs to addresses
π Multi-language Support: Get results in different languages
π― Advanced Filtering: Filter by result types, location types, and components
π Built on Official SDK: Uses Google's official
@googlemaps/google-maps-services-jslibrary will full TypeScript support
Prerequisites
Google Maps API Key: Get one from the Google Cloud Console
Node.js: Version 18 or higher
Claude Desktop or Cursor (or another MCP-compatible client)
Setup with MCP Clients
Claude Desktop
Edit your Claude Desktop config file:
Platform | Config File Location |
macOS |
|
Windows |
|
Then restart Claude Desktop and ask Claude to geocode an address!
Cursor
Add to your Cursor settings (Settings β Extensions β MCP Servers):
Test the integration using the AI chat!
Usage Examples
Forward Geocoding (Address β Coordinates)
Ask your AI client:
"Geocode the address '1600 Amphitheatre Parkway, Mountain View, CA'"
Reverse Geocoding (Coordinates β Address)
Ask your AI client:
"What address is at coordinates 37.4224764, -122.0842499?"
Place Geocoding (Place ID β Address)
Ask your AI client:
"Get the address for Google Place ID 'ChIJd8BlQ2BZwokRAFUEcm_qrcA'"
Advanced Usage
With component filtering:
"Find 'Main Street' in San Francisco, CA, US"
With language preferences:
"Geocode 'Champs-ΓlysΓ©es' in French"
With regional biasing:
"Find restaurants near coordinates 37.7749, -122.4194 in the US region"
Common Issues
MCP Server not connecting:
Verify Node.js version is 18+
Check your MCP client configuration
API key errors:
Verify your API key is correct
Check that the Geocoding API is enabled in Google Cloud Console
Ensure API key restrictions allow your usage
Debug Mode
Enable debug logging by setting:
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for development setup, guidelines, and how to submit changes.