google maps directions for LangChain
io.github.johnisanerd/google-maps-directions
Google Maps routes, ETAs, and turn-by-turn steps via the Apify Directions API, hosted MCP.
client:LangChain
transport:streamable-http
Install google maps directions in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"google-maps-directions": {
"transport": "streamable_http",
"url": "https://mcp.apify.com/?tools=johnvc/google-maps-directions-api",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs