Skip to content
LangChain

RelaySwitch for LangChain

io.github.uplinkswitch/relayswitch

One key for coding agents and editors: 350 models, presets and fallbacks, prices readable without a

client:LangChain transport:streamable-http tools:15

Install RelaySwitch in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

RelaySwitch in other clients