tollbooth x402 for LangChain
io.github.solomonisblack/tollbooth-x402
Discover, quote, verify & self-check 56 x402 pay-per-call finance/tax calculators for AI agents.
client:LangChain
transport:stdio
runtime:npm
Install tollbooth x402 in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"tollbooth-x402": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "tollbooth-x402"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs