Skip to content
LangChain

SL – Stockholm public transport for LangChain

io.github.hashtagsmile/sl-mcp

Stockholm public transport (SL): live departures, trips to addresses with exits, disruptions.

client:LangChain transport:streamable-http tools:4

Install SL – Stockholm public transport in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "sl-mcp": {
            "transport": "streamable_http",
            "url": "https://sl-mcp.miltonlindblad.workers.dev/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

SL – Stockholm public transport in other clients