Pay Mcp

io.github.pay-skill由 GitHub 帳號 pay-skill 發布v0.2.8更新於 Oct 24, 2026

USDC payments for AI agents on Base — direct, tabs, x402 paywalls, discovery

概覽

AI 產生的概覽

讓助理在 Base 上收發 USDC 付款、管理按量計費的 tab,並支付 x402 付費 API。

可以做什麼
提供 15 個工具,用於在 Base 上進行 USDC 支付:直接轉帳、帶 x402 自動付款的 HTTP 請求,以及由服務方按呼叫計費的預付 tab。錢包工具涵蓋餘額與狀態、入金連結、出金連結和測試網 USDC 鑄造。另提供服務探索以尋找付費 API,以及支付事件的 webhook 註冊,並附帶錢包與 tab 資源和引導式提示詞。
適用情境
當助理需要用 Base 上的 USDC 為 API 或服務付費、結算 x402 付費牆,或與服務方運行預付按量帳戶時使用。適合會動用真實資金、並需要查看餘額、tab 和 webhook 的代理工作流程。
執行需求
透過 stdio 在本機執行,通常使用 npx @pay-skill/mcp,適用於 Claude Desktop、Cursor、VS Code 或 Claude Code 等桌面用戶端。需要 Node.js 以及連線 Pay API 的網路。首次執行會產生錢包並存入作業系統鑰匙圈;PAYSKILL_SIGNER_KEY 為選用覆寫項,PAY_NETWORK 選擇主網或測試網。
安裝前請注意
此伺服器會動用真實資金:可傳送 USDC、開設預付 tab,並可自動支付 x402 請求,確認門檻為低於 10 美元自動、10 至 100 美元需規劃、超過 100 美元需明確確認。PAYSKILL_SIGNER_KEY 是私鑰或金鑰庫密碼,可控制錢包,請勿放入共用設定。入金與出金連結有時效,webhook 會註冊到第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pay Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@pay-skill/mcp

MCP server for Pay -- the complete x402 payment stack for AI agents. USDC on Base.

Gives any MCP-compatible client (Claude Desktop, Cursor, VS Code, custom frameworks) the full power of Pay: direct payments, tabs, x402 paywalls, service discovery, and wallet management. No CLI binary needed.

Setup

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "pay": {      "command": "npx",      "args": ["-y", "@pay-skill/mcp"]    }  }}

VS Code / Cursor

Add to .vscode/mcp.json:

json
{  "servers": {    "pay": {      "command": "npx",      "args": ["-y", "@pay-skill/mcp"]    }  }}

Claude Code

bash
claude mcp add pay -- npx -y @pay-skill/mcp

That's it. On first run, the server generates a wallet and stores it in the OS keychain (Windows Hello, macOS Keychain, Linux Secret Service). Subsequent runs load it automatically.

Configuration

Env VarRequiredDefaultDescription
PAYSKILL_SIGNER_KEYNo—Optional override. Raw hex key or .enc keystore password. Not needed for normal use.
PAY_NETWORKNomainnetmainnet (Base) or testnet (Base Sepolia)

Key Resolution (checked in order)

  1. OS keychain (default) — Loads from the OS credential store via keytar. On first run, a new keypair is generated and stored automatically.
  2. Encrypted keystore — If ~/.pay/keys/default.enc exists, PAYSKILL_SIGNER_KEY is used as the decryption password.
  3. Raw hex key — If PAYSKILL_SIGNER_KEY is a 64-char hex string, it's used directly. For dev/testing or importing an existing wallet.
  4. Auto-generate — If none of the above, generates a new keypair and stores it in the OS keychain.

Diagnostic Check

Verify everything is configured correctly:

bash
npx @pay-skill/mcp --check

Output:

pay-mcp diagnostic check  network: Base (chain 8453)  api:     https://pay-skill.com/api/v1  wallet:  0x1234...  key:     keychain  server:  OK (router: 0xABCD...)  auth:    OK (balance: $50.00)
All checks passed. MCP server is ready.

Tools (15)

Payments

ToolDescription
pay_sendDirect USDC payment ($1 min). Confirmation thresholds: <$10 auto, $10-100 plan, >$100 explicit.
pay_requestHTTP request with x402 auto-payment. Handles 402 detection, direct/tab settlement, price skepticism.

Tabs (metered accounts)

ToolDescription
pay_tab_openOpen pre-funded tab ($5 min, $50 recommended). Provider charges per-call.
pay_tab_closeClose tab. Returns distribution breakdown (provider 99%, fee 1%, agent remainder).
pay_tab_chargeCharge against open tab (provider only).
pay_tab_topupAdd funds to open tab (agent only).
pay_tab_listList tabs with idle/low-balance flags.

Wallet

ToolDescription
pay_statusBalance, locked/available funds, actionable suggestions.
pay_fundGenerate 1-hour funding link (Coinbase Onramp or direct USDC).
pay_withdrawGenerate 1-hour withdrawal link.
pay_mintMint testnet USDC (Base Sepolia only).

Discovery & Webhooks

ToolDescription
pay_discoverSearch paid API services by keyword/category.
pay_webhook_registerRegister webhook for payment events (HMAC-signed).
pay_webhook_listList registered webhooks.
pay_webhook_deleteDelete a webhook.

Resources (5)

URIDescription
pay://wallet/statusBalance, tabs, locked/available
pay://wallet/tabsAll open tabs
pay://tab/{tab_id}Single tab detail
pay://wallet/addressWallet address
pay://networkNetwork config + contract addresses

Prompts (3)

PromptDescription
pay-for-serviceGuided: discover service, evaluate pricing, make request
review-tabsReview tabs, flag idle, suggest close/topup
fund-walletGenerate fund link, explain deposit process

Development

bash
git clone https://github.com/pay-skill/pay-mcp.gitcd pay-mcpnpm installnpm run buildnpm test                    # unit tests (mocked)npm run test:acceptance     # testnet (requires PAYSKILL_TESTNET_KEY)

License

MIT

Part of Pay

Pay is the complete x402 payment stack -- gateway, facilitator, SDKs, CLI, and MCP server -- that lets AI agents pay for APIs with USDC on Base.

來源:README.md,提交 9dd2d20

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.8最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。