Skip to content
LangChain

agenticpay for LangChain

io.github.krystiangw/agenticpay

x402 USDC paywall bridge for MCP — pay per tool call on Solana.

client:LangChain transport:stdio runtime:npm

Install agenticpay in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

agenticpay in other clients