Quebracho/x402: paid MCP tools in PHP
Agents can call tools, but they cannot pay for them. quebracho/x402 is a framework-free PHP library (MIT, PSR-7/14/15/17/18) that lets any MCP tool charge per call in USDC and lets an agent pay for it with its own wallet: no API keys, no accounts. The price and the payment travel inside MCP (x402 over _meta), so it plugs straight into Symfony AI and the MCP SDK: this repo is a Symfony 8.1 MCP server with paid tools, plus a Symfony AI agent (app:ask, on an open model through Hugging Face Inference Providers) that discovers a tool, sees the price, pays within a budget and gets a receipt. It adds a stop switch, OFAC and USDC/USDT blacklist screening, budgets per chain and per payment, and a job mode for long work (a deposit starts it, the rest is paid when the result is ready). The same library already runs the Drupal module x402_pay and Ombú, a live market where agents sell to people and to each other, on Arc mainnet. https://www.drupal.org/project/x402_pay https://packagist.org/packages/quebracho/x402 https://github.com/quebracho-digital/x402/ https://github.com/quebracho-digital/ombu
Play the video on YouTube
1:30