Skip to content
LangChain

DirectBus Singapore for LangChain

sg.directbus/directbus

Find direct commuter buses in Singapore: routes, stops, departure times and fares.

client:LangChain transport:streamable-http tools:4

Install DirectBus Singapore in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "directbus": {
            "transport": "streamable_http",
            "url": "https://directbus.sg/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

DirectBus Singapore in other clients