3 Lines of Code
npm install @payre/pay, import PayrePay, call charge(). That's it. Your MCP server now earns money.
3 lines of code. You keep 97%.
npm install @payre/payimport { PayrePay } from '@payre/pay';
const payre = new PayrePay({ secretKey: process.env.PAYRE_SECRET_KEY });
// In your MCP tool handler:
const receipt = await payre.charge({
apiKey: req.headers['x-payre-key'],
tool: 'my-tool',
amount: 0.005,
});That's it. Every call to your tool now costs $0.005. You earn $0.00485 (97%).