Skip to content
LangChain

agentpay for LangChain

io.github.alefnt/agentpay

AI Agent payment protocol on CKB Fiber Network. Zero-gas micropayments with Hold Invoice escrow.

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-dev/mcp-server"],
        }
})

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