Skip to content
LangChain

Sunrise-Sunset.org for LangChain

org.sunrise-sunset/sun-times

Sunrise, sunset, twilight, golden hour and moon times for any place on Earth. Free, no API key.

client:LangChain transport:streamable-http tools:2

Install Sunrise-Sunset.org in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "sun-times": {
            "transport": "streamable_http",
            "url": "https://api.sunrise-sunset.org/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

Sunrise-Sunset.org in other clients