Skip to content
LangChain

Irail for LangChain

io.github.pipeworx-io/irail

iRail MCP — Belgian rail (SNCB/NMBS) real-time via the community iRail API

client:LangChain transport:streamable-http

Install Irail in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "irail": {
            "transport": "streamable_http",
            "url": "https://gateway.pipeworx.io/irail/mcp",
        }
})

tools = await client.get_tools()

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

Irail in other clients