Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Payment Agent Demo

FreeNot checked

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

GitHubEmbed

About

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

README

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

Claude complete checkout

Transaction success in Stripe

Agentic Commerce Flow

[ AI Agent (e.g. Claude) ]
            │
            │ 1. Connects to remote MCP server with auth token and wallet id
            ▼
[ Remote MCP Server (Wallet Provider) ] 
            │
            │ 2. Makes checkout tool available to Agent. Holds the agent's private key. 
            | 3. Private key is used to sign payload to create Visa TAP signature
            ▼
 [ Merchant Storefront API ]
            │
            │ 4. Validates the signature with agent's public key fetched from Visa agent registry.
            │ 5. Verifies that the item is in stock and the price is correct.
            ▼
     [ Stripe API ] 
            │
            │ 6. Storefront triggers stripe.PaymentIntent.create()
            ▼
 [ Customer's Bank Account ] <-- Funds are safely moved

Integration Flow

 ┌──────────────────────────────┐
 │    MERCHANT STOREFRONT       │
 └──────────────┬───────────────┘
                │
                │ 1. Publishes OpenAPI Spec / Documentation. 
                |    RFC 9421 does not specify the data schema of the CheckoutRequest. 
                |    Therefore, the Agent / MCP server must follow the merchant storefront's spec or signature validation will fail.
                ▼
 ┌───────────────────────────────────────────────────────┐
 │    WALLET PROVIDER                                    │
 ├───────────────────────────────────────────────────────┤
 │  • Provides tools and holds agent's private key       │
 │  • Configures MCP Tool parameters to match.           |
 │  • Signs payload using their private key.             |
 └───────────────────────────────────────────────────────┘

Project Structure

project-root/
├── .venv/                          <-- single, unified virtual environment
├── pyproject.toml                  <-- Holds all Python dependencies for all 3 components
├── client-bridge/
|   ├── .mcp_access_token           <-- File where the Agent's access token will be stored
|   └── client.py                   <-- Bridge to allow Claude to access remote MCP server with authentication
|
├── wallet_provider/                <-- Remote MCP server to allow an agent (like Claude) to make payments
│   ├── create_tap_sig.py
|   ├── generate_test_keys.py       <-- generate a public/private key pair for the agent
│   └── main.py
|
└── merchant_api/                   <-- simulates merchant store API which allows agents
    ├── mock_visa_directory.py  
    └── server.py

Quick Start Guide

1. Add MCP Server to Claude desktop config

"mcpServers": {
    "agent-stripe-checkout": {
      "command": "uv", 
      "args": [
        "run",
        "--directory",
        "/Users/<your_user>/<path_you_cloned_to>/payment-agent-demo/payment_mcp",
        "main.py"
      ],
      "env": {
        "DEMO_AGENT_WALLET_ID": "mock_visa_tap_agent_01"
      }
    },
}

2. Run Merchant Storefront API

cd merchant_api/
uv sync

Run the merchant API server: uvicorn server:app --reload

Requirements

  • Python >= 3.14
  • uv (Astral)

Environment variables

Run generate_test_keys.py to get create a private/public key pair for your agent

At minimum set the following values in the appropriate .env files:

  • STRIPE_SECRET_KEY — your Stripe test secret key (required by both components in this demo)
  • DEMO_AGENT_WALLET_ID — used by the MCP server when running in Claude/Desktop integrations

from github.com/Programalyst/payment-agent-demo

Installing Payment Agent Demo

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Programalyst/payment-agent-demo

FAQ

Is Payment Agent Demo MCP free?

Yes, Payment Agent Demo MCP is free — one-click install via Unyly at no cost.

Does Payment Agent Demo need an API key?

No, Payment Agent Demo runs without API keys or environment variables.

Is Payment Agent Demo hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Payment Agent Demo in Claude Desktop, Claude Code or Cursor?

Open Payment Agent Demo on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

$5

Stripe

Payments, customers, subscriptions

Stripeby Stripe

malamutemayhem/unclick-agent-native-endpoints

110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n

malamutemayhemby malamutemayhem

whiteknightonhorse/APIbase

Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa

whiteknightonhorseby whiteknightonhorse

trackerfitness729-jpg/sitelauncher-mcp-server

Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr

trackerfitness729-jpgby trackerfitness729-jpg

embeddedlayers/mcp-analytics

Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources

embeddedlayersby embeddedlayers

carrierone/verilexdata-mcp

20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit

carrieroneby carrierone

tipdotmd/tip-md-x402-mcp-server

MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.

tipdotmdby tipdotmd

laundromatic/shopgraph

Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev

laundromaticby laundromatic

mrslbt/xendit-mcp

Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal

mrslbtby mrslbt

@arbitova/mcp-server

Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create

jiayuanliang0716-maxby jiayuanliang0716-max

Compare Payment Agent Demo with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All finance MCPs