Skip to content
LangChain

AiFinPay for LangChain

io.github.daochild/aifinpay

Pay for any HTTP API in stablecoins on Polygon and Solana with one MCP call.

client:LangChain transport:streamable-http runtime:npm

Install AiFinPay in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "aifinpay": {
            "transport": "streamable_http",
            "url": "https://mcp.aifinpay.io/mcp",
        }
})

tools = await client.get_tools()

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

AiFinPay in other clients