Skip to content
LangChain

sunrise sunset mcp for LangChain

io.github.mrfentmen/sunrise-sunset-mcp

Sunrise, sunset, and twilight times for any location. No key required.

client:LangChain transport:stdio runtime:npm

Install sunrise sunset mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "sunrise-sunset-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "sunrise-sunset-mcp"],
        }
})

tools = await client.get_tools()

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

sunrise sunset mcp in other clients