AgentPay for LangChain
com.myuiaf/agentpay
Let agents pay for third-party APIs per call from one prepaid wallet. Charged only on success.
client:LangChain
transport:streamable-http
Install AgentPay in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"agentpay": {
"transport": "streamable_http",
"url": "https://agentpay.myuiaf.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs