weather mcp for LangChain
io.github.darshan0548/weather-mcp
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
client:LangChain
transport:streamable-http
Install weather mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"weather-mcp": {
"transport": "streamable_http",
"url": "https://weather-mcp-2yhb.onrender.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs