Skip to content
LangChain

IBM Granite x402 Remote for LangChain

io.github.nirholas/ibm-x402-mcp-remote

Pay-per-use IBM Granite AI via x402: chat, code, embeddings, forecasting. USDC on Base or Solana.

client:LangChain transport:streamable-http

Install IBM Granite x402 Remote in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "ibm-x402-mcp-remote": {
            "transport": "streamable_http",
            "url": "https://three.ws/api/ibm-mcp",
        }
})

tools = await client.get_tools()

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

IBM Granite x402 Remote in other clients