Skip to content
LangChain

agentpay for LangChain

io.github.kar69-96/agentpay

AI agent payments with human approval. Local-first, encrypted credentials, budget controls.

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", "@useagentpay/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