Skip to main content

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

  1. Claude calls pay_checkout via MCP
  2. MCP server creates a virtual card and gets credentials
  3. Card details go directly to the extension via WebSocket (LLM never sees the card number)
  4. Extension fills every field across all frames (including Stripe iframes)
  5. 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: true in manifest — content script runs inside Stripe iframes
  • chrome.scripting.executeScript with allFrames: true for 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

  1. Download from GitHub
  2. Go to chrome://extensions/ → Enable Developer mode → Load unpacked
  3. The extension auto-connects to the MCP server when it’s running
Works on Chrome, Brave, Edge, and any Chromium-based browser.

Architecture