Overview
The AgentPay Chrome extension works with the MCP server to fill checkout forms automatically — including Stripe Elements iframes that standard browser tools can’t access.How it works
- Claude calls
pay_checkoutvia MCP - MCP server creates a virtual card and gets credentials
- Card details go directly to the extension via WebSocket (LLM never sees the card number)
- Extension fills every field across all frames (including Stripe iframes)
- User reviews and clicks Submit
MCP tools
detect_checkout
Scans the active tab and all iframes for payment form fields.pay_checkout
Creates a card AND fills the checkout in one call. The AI model never sees the card number.fill_card
Fills an existing card into the checkout form.Stripe iframe support
Standard browser automation can’t fill Stripe Elements because they run in cross-origin iframes. The extension solves this with:all_frames: truein manifest — content script runs inside Stripe iframeschrome.scripting.executeScriptwithallFrames: truefor cross-origin injection- Per-character keyboard event dispatching (keydown/keypress/keyup) for Stripe’s change detection
Security
- LLM never sees the card — details flow MCP server → WebSocket → extension → form
- Single-use cards — locked to funded amount, auto-close after use
- Submit button left for human — the agent fills, you confirm
Install
- Download from GitHub
- Go to
chrome://extensions/→ Enable Developer mode → Load unpacked - The extension auto-connects to the MCP server when it’s running