-
Set the required environment variable:
GOOGLE_MAPS_API_KEY
: Your Google Maps API key.
-
Install Meshagent Python package:
-
Sign up and authenticate with Meshagent:
- Follow the guide at Meshagent CLI Getting Started.
-
Run the MCP server as a transient agent in a test room:
- Launches a Google Maps MCP server in a Meshagent Room named
test
. - The service and room are ephemeral—they will close when inactive.
- Launches a Google Maps MCP server in a Meshagent Room named
-
Start a chatbot in the same test room, linked to the Google Maps tools:
- This joins a chatbot that can use the Google Maps toolkit.
- Multiple toolkits can be loaded into the same agent.
- A direct room link is provided after running this command.
-
Try it out:
- Visit the room link in your browser.
- Interact with the MCP Server tools by chatting with the agent.
Environment Variables
GOOGLE_MAPS_API_KEY
– [required] Your Google Maps API KeyMESHAGENT_PORT
– [required] Port for MCP server communications (e.g.,8001
)
Project Level Deployment: Persistent MCP Server and Chatbot
For production or all-room availability, deploy as persistent project-level services:-
Create a persistent MCP server service:
-
Create a persistent chatbot service using the MCP Google Maps toolkit:
Tools Available
Provided by MCP Google Maps Server
Tool | Description |
---|---|
maps_directions | Get directions between two points |
maps_distance_matrix | Calculate travel distance and time for multiple origins and destinations |
maps_elevation | Get elevation data for locations on the earth |
maps_geocode | Convert an address into geographic coordinates |
maps_place_details | Get detailed information about a specific place |
maps_reverse_geocode | Convert coordinates into an address |
maps_search_places | Search for places using Google Places API |
Tool Details
maps_directions
- Purpose: Get directions between two points
- Parameters:
destination
(string) – Ending point address or coordinatesorigin
(string) – Starting point address or coordinatesmode
(string, optional) – Travel mode (driving, walking, bicycling, transit)
maps_distance_matrix
- Purpose: Calculate travel distance and time for multiple origins and destinations
- Parameters:
destinations
(array) – Array of destination addresses or coordinatesorigins
(array) – Array of origin addresses or coordinatesmode
(string, optional) – Travel mode (driving, walking, bicycling, transit)
maps_elevation
- Purpose: Get elevation data for locations on the earth
- Parameters:
locations
(array) – Array of locations to get elevation for
maps_geocode
- Purpose: Convert an address into geographic coordinates
- Parameters:
address
(string) – The address to geocode
maps_place_details
- Purpose: Get detailed information about a specific place
- Parameters:
place_id
(string) – The place ID to get details for
maps_reverse_geocode
- Purpose: Convert coordinates into an address
- Parameters:
latitude
(number) – Latitude coordinatelongitude
(number) – Longitude coordinate
maps_search_places
- Purpose: Search for places using Google Places API
- Parameters:
query
(string) – Search querylocation
(object, optional) – Optional center point for the searchradius
(number, optional) – Search radius in meters (max 50000)
Additional Resources
- Meshagent: https://www.meshagent.com/
- Meshagent Documentation: https://docs.meshagent.com
- Meshagent MCP Google Maps Tool (Docker): https://hub.docker.com/r/meshagent/mcp-google-maps