Sign In

@useagentpay/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useagentpay/mcp-server

MCP server for AgentPay – exposes payment tools to AI agents

Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

@useagentpay/mcp-server

MCP server for AgentPay — exposes the full payment lifecycle to any MCP-compatible AI host (Claude Desktop, Cursor, Claude Code, Windsurf).

8 tools, 3 resources, 3 prompts. Agents can propose purchases, wait for human approval, execute checkout, and retrieve receipts — all over the Model Context Protocol.

Install & Setup

npx agentpay init     # creates agentpay/ folder with AGENT.md
npx agentpay setup    # opens browser to enter card, set budget & limits

Host Configuration

Add to your Claude Desktop, Cursor, or Claude Code config:

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": ["-p", "@useagentpay/mcp-server", "agentpay", "serve"]
    }
  }
}

With passphrase (for execute)

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": ["-p", "@useagentpay/mcp-server", "agentpay", "serve"],
      "env": {
        "AGENTPAY_PASSPHRASE": "your-passphrase"
      }
    }
  }
}

Tools

ToolDescription
agentpay_statusCheck if setup is complete, balance, budget, pending count
agentpay_check_balanceCurrent balance and limits (call before proposing)
agentpay_list_pendingPending transactions awaiting approval
agentpay_propose_purchasePropose a new purchase (merchant, amount, description, url)
agentpay_get_transactionGet transaction details by ID
agentpay_wait_for_approvalLong-poll until approved or rejected
agentpay_execute_purchaseExecute an approved purchase (requires passphrase config)
agentpay_get_receiptGet receipt for a completed purchase

Resources

URIDescription
agentpay://walletWallet balance and limits
agentpay://transactions/{txId}Transaction details
agentpay://audit-logLast 50 audit log entries

Prompts

NameDescription
buyGuided step-by-step purchase flow
budget-checkBalance and pending transaction summary
purchase-statusRecent transaction history

Typical Agent Flow

1. agentpay_status          → verify setup is complete
2. agentpay_check_balance   → confirm budget for purchase
3. agentpay_propose_purchase → create pending transaction
4. agentpay_wait_for_approval → wait for human to approve
5. agentpay_execute_purchase → run checkout via headless browser
6. agentpay_get_receipt      → retrieve confirmation

Passphrase Modes

The execute_purchase tool needs access to the vault passphrase. Three modes:

ModeConfigDescription
envAGENTPAY_PASSPHRASEPassphrase from environment variable
serverAGENTPAY_PASSPHRASE_SERVERFetch passphrase from a URL
noneNeither setRead-only — propose/approve works, execute does not

Environment Variables

VariablePurposeDefault
AGENTPAY_PASSPHRASEPassphrase for execute (env mode)
AGENTPAY_PASSPHRASE_SERVERURL to fetch passphrase (server mode)
ANTHROPIC_API_KEYLLM API key for browser navigation
AGENTPAY_HOMEOverride data directory./agentpay
MCP_TRANSPORTSet to http for HTTP transportstdio
MCP_HTTP_PORTHTTP port3100

License

MIT

FAQs

Package last updated on 12 Feb 2026

Related posts