Skip to content
LangChain

google flights for LangChain

io.github.johnisanerd/google-flights

Google Flights search data: fares, routes, stops, and price insights via a hosted MCP server.

client:LangChain transport:streamable-http

Install google flights in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "google-flights": {
            "transport": "streamable_http",
            "url": "https://mcp.apify.com/?tools=johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

google flights in other clients