AgentCard MCP Server

Give your AI agent a real payment method, straight from Claude, Cursor, or any MCP client. The agentcard-mcp server exposes AgentCard's purchase surface as MCP tools: your agent pays securely with the card you already have. Mastercard holders pay through Mastercard Agent Pay (the default: a one-time network token per purchase, scoped to the merchant and amount and approved with a passkey). Any other card gets a one-time card number capped at the purchase amount (instant, live for 7 days).

Spending is guarded end to end: per-card caps, separate account budgets per payment source, a hard daily ceiling, and KYC verification.

Requirements

Setup

Claude Desktop / Claude Code

Add to your MCP config (claude_desktop_config.json, or claude mcp add agentcard -- npx -y agentcard-mcp for Claude Code):

{
  "mcpServers": {
    "agentcard": {
      "command": "npx",
      "args": ["-y", "agentcard-mcp"]
    }
  }
}

Cursor

Add the same block to .cursor/mcp.json.

Windsurf / Cline / other MCP clients

Same configuration — npx -y agentcard-mcp as the command.

First-time account setup

Your agent can do all of this through the MCP tools, in order:

  1. signup — pass your email; click the magic link it sends.
  2. setup — the agent asks whether you pay with a Mastercard and passes mastercard: true (Mastercard Agent Pay enrollment) or false (saves a card for one-time card numbers). Either way it returns a URL for you to open and enter your card (the agent never sees or types your real card). Also provisions your agent email inbox and wallet.
  3. check_identity — new accounts may need KYC; the tool returns a hosted verification URL to complete.

After that, your agent can pay.

Tools

Account

ToolDescription
get_setup_instructionsUsage instructions for the agent
signupSign up or log in with email (sends magic link)
setupChoose how the agent pays (mastercard: true for Agent Pay), agent email, wallet
check_identityCheck KYC status; returns a verification URL when required
get_limitsShow both spend budgets (issued cards + wallet, connected cards)
request_limit_increaseChange a spend limit — raises are email-approved by the account owner

Purchases

ToolDescription
create_cardOne-time card number for users without Agent Pay, or as the Agent Pay fallback ($1–$150)
list_purchasesList all purchases across both payment sources, with unified statuses
get_card_detailsRe-fetch a live issued card's number/CVV/expiry, or a connected purchase's status
cancel_cardCancel an unused issued card and release its hold immediately
get_3ds_codeCheckout 3DS / verification codes from the last 5 minutes
report_issueReport a problem to AgentCard support

Mastercard Agent Pay and connected cards

ToolDescription
list_sourcesList payment sources; a connected Mastercard is the default (isDefaultSource)
connect_cardConnect your Mastercard for Agent Pay (returns a browser URL)
create_connected_purchasePay through Agent Pay: merchant-scoped purchase (returns a passkey-approval URL)
get_purchase_credentialsRetrieve the one-time card credential after you approve (returned exactly once)

A typical purchase

  1. Agent calls get_limits to confirm budget, then list_sources.
  2. Mastercard Agent Pay (a connected Mastercard is the default source): create_connected_purchase with the merchant, URL, item, and total — you approve with a passkey — then get_purchase_credentials. Otherwise: create_card with the checkout total (e.g. 24.99 → a $25 one-time card number).
  3. Agent completes checkout with the returned card number, CVV, and expiry (plus, for one-time card numbers, cardholder name Alchemy Agentcard and the billing address) — exactly as returned.
  4. If the merchant asks for a verification code, agent calls get_3ds_code.
  5. Done with a one-time card number early? cancel_card releases the hold immediately; otherwise unused holds release within 7 days and you're only ever charged when a merchant actually uses a card. With Agent Pay the merchant charges your Mastercard directly — no hold.

If any Agent Pay step fails, the agent tells you and falls back to create_card.

Safety model

Troubleshooting

SymptomFix
Tools return "Not logged in"Run signup again — sessions expire
create_card says no payment methodRun setup and open the returned Stripe URL
KYC verification requiredRun check_identity and complete the returned URL
Over a spend limitget_limits to see which budget tripped; request_limit_increase with that source
Agent Pay enrollment failsThe card isn't supported for agentic payments yet — setup with mastercard: false, then create_card
Anything elsereport_issue with the error details

Links