Skip to content
LangChain

x402image for LangChain

org.x402image/image

x402 image tools (USDC/Base): remove_background/upscale $0.02, resize/optimize $0.005; URL in/out

client:LangChain transport:streamable-http tools:6

Install x402image in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "image": {
            "transport": "streamable_http",
            "url": "https://x402image.org/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

x402image in other clients