MyService Hotels for LangChain
pk.myservice/hotels
AI hotel search and booking: millions of properties, 85,000+ cities, live rates.
client:LangChain
transport:streamable-http
tools:10
Install MyService Hotels in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"hotels": {
"transport": "streamable_http",
"url": "https://mcp.myservice.pk/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs