Fortrip for LangChain
io.github.fortripengineering/fortrip
Search hotels worldwide, compare live room rates, book and pay securely, and cancel bookings.
client:LangChain
transport:streamable-http
runtime:npm
Install Fortrip in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"fortrip": {
"transport": "streamable_http",
"url": "https://mcp.fortrip.ai/",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs