wttr mcp for LangChain
io.github.mrfentmen/wttr-mcp
Weather text from wttr.in. No key required.
client:LangChain
transport:stdio
runtime:npm
Install wttr mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"wttr-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "wttr-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs