Skip to content
LangChain

DEX Swap Quotes API for LangChain

io.github.br0ski777/dex-quotes

Best swap quotes across DEXes (Uniswap, SushiSwap, Aerodrome). Base & Ethereum. x402.

client:LangChain transport:sse

Install DEX Swap Quotes API in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dex-quotes": {
            "transport": "streamable_http",
            "url": "https://dex-quotes.api.klymax402.com/mcp",
        }
})

tools = await client.get_tools()

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

DEX Swap Quotes API in other clients