Skip to content
LangChain

matthew x402 hub for LangChain

io.github.matvans-tech/matthew-x402-hub

7-DEX swap router (1inch v6.1, Jupiter, 0x, LI.FI) + 9 x402 v2 crypto intelligence oracles.

client:LangChain transport:streamable-http tools:9

Install matthew x402 hub in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "matthew-x402-hub": {
            "transport": "streamable_http",
            "url": "https://matthew-x402-protocol-hub.pages.dev/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

matthew x402 hub in other clients