Skip to content
LangChain

payanagent for LangChain

io.github.dernif/payanagent

Buy any of 24,000+ live x402 services with USDC on Base — the open marketplace for the agent economy

client:LangChain transport:stdio runtime:npm

Install payanagent in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

payanagent in other clients