AgentPay for LangChain
io.github.yyxqqq777/agentpay
x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.
client:LangChain
transport:streamable-http
runtime:pypi
tools:4
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-xhs-production.up.railway.app/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs