Skip to content
LangChain

HPP x402 MCP Bridge for LangChain

io.github.hpp-io/x402-mcp-bridge

MCP bridge for autonomous x402 payments in HPP USDC.e — discover and pay for services per call.

client:LangChain transport:stdio runtime:npm

Install HPP x402 MCP Bridge in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "x402-mcp-bridge": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@hpp-io/x402-mcp-bridge"],
        }
})

tools = await client.get_tools()

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

HPP x402 MCP Bridge in other clients