Skip to content
LangChain

weatherport for LangChain

io.github.cloudcorprecords/weatherport

OpenWeather current weather, 5-day forecast, One Call, air pollution, and geocoding.

client:LangChain transport:stdio runtime:npm

Install weatherport in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "weatherport": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@reneturcios/weatherport"],
        }
})

tools = await client.get_tools()

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

weatherport in other clients