Skip to content
LangChain

Rubin Exchange for LangChain

trade.rubin/exchange

Rubin: self-custody DEX for crypto perpetuals & spot - trade, read positions, orders, balances.

client:LangChain transport:streamable-http tools:33

Install Rubin Exchange in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "exchange": {
            "transport": "streamable_http",
            "url": "https://mcp.mainnet.rubin.trade/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

All 33 tools →

Rubin Exchange in other clients