other
Google Maps MCP Integration for LangChain
Connect Google Maps to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Google Maps to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Google Maps MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-google-maps": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google-maps",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=google-maps --write=deny Why Use KosmoKrator Here
Expose only Google Maps instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Google Maps Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Google Maps integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__google_maps__google_maps_geocode_address | google-maps.google_maps_geocode_address | Read | Convert a street address into geographic coordinates and place details using Google Maps geocoding. |
integration__google_maps__google_maps_reverse_geocode | google-maps.google_maps_reverse_geocode | Read | Convert latitude and longitude coordinates into street addresses using Google Maps reverse geocoding. |
integration__google_maps__google_maps_search_places | google-maps.google_maps_search_places | Read | Search for places with a text query using Google Maps Places search. |
integration__google_maps__google_maps_get_place_details | google-maps.google_maps_get_place_details | Read | Get detailed information about a specific Google Maps place by Place ID. |
integration__google_maps__google_maps_get_directions | google-maps.google_maps_get_directions | Read | Get directions between an origin and destination using Google Maps Directions API. |
integration__google_maps__google_maps_get_distance_matrix | google-maps.google_maps_get_distance_matrix | Read | Calculate travel distances and durations between multiple origins and destinations. |
integration__google_maps__google_maps_get_current_user | google-maps.google_maps_get_current_user | Read | Get geolocation data for the current requester and verify Google Maps API credentials. |