Skip to content
LangChain

whentofly for LangChain

io.github.dimabalony/whentofly

whentofly: flexible-date economy/business flight search + price-level context for AI agents

client:LangChain transport:streamable-http tools:2

Install whentofly in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "whentofly": {
            "transport": "streamable_http",
            "url": "https://whentofly.io/mcp?ch=mcp-registry",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

whentofly in other clients