Skip to content
LangChain

agentpay for LangChain

io.github.up2itnow0822/agentpay

Non-custodial x402 payment MCP server for AI agents. Wallets and payments on 17 chains.

client:LangChain transport:stdio runtime:npm

Install agentpay in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

agentpay in other clients