Mcp Picpay

io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.3更新于 Oct 24, 2026

MCP server for PicPay Business — BR digital wallet (60M+ users): checkout, Pix QR, subscriptions

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 PicPay Business 的本地 MCP 服务器,让助手创建和管理巴西数字钱包的支付、Pix 二维码、支付链接、订阅与转账。

可以做什么
创建与管理结账支付:创建支付、按参考号查询状态、取消、退款(可部分退款),并按日期范围列出商户交易。生成 Pix 风格二维码(静态或带固定金额与有效期的动态码)以及可分享的支付链接。管理订阅计划:创建、列出、更新、删除计划,并为买家登记、查询或取消订阅。资金转出:创建企业到个人(B2P)转账、查询转账状态、批量提交转账。查询商户钱包的巴西雷亚尔余额,并用卖家令牌校验传入的 webhook 回调。
适用场景
适合让助手操作 PicPay Business 商户账户的场景:收款、生成 Pix 二维码或支付链接、运营订阅、向 PicPay 用户付款,或核对交易与余额。更适合把 PicPay 结账集成进代理工作流的开发者,而非普通终端用户。
运行要求
通过 npm 包 @codespar/mcp-picpay 以 stdio 在本地运行(需要 Node.js);另有可选的 HTTP 模式用于服务器间测试。需要 PicPay 商户集成令牌(PICPAY_TOKEN)和卖家令牌(PICPAY_SELLER_TOKEN)。PICPAY_BASE_URL 可选,默认指向公开的电商 API。需要访问 PicPay 的网络连接。
安装前请注意
涉及真实资金:转账、批量付款、退款、取消和删除计划会移动或改变资金,不能随意撤销。两个令牌都是商户凭据,会作为请求头发送,应避免写入日志或共享配置。在信任 webhook 负载前应先用卖家令牌校验。该包为 alpha 版本,订阅相关接口的字段级结构尚未与线上 API 确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Picpay,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-picpay

MCP server for PicPay Business — Brazilian digital wallet with 60M+ users.

PicPay's Checkout API lets merchants create a payment intent that the buyer completes inside the PicPay app, returning a redirect URL plus a Pix-style QR code. The Recurrency API adds subscription plans on top.

Tools (20)

ToolPurpose
create_paymentCreate a PicPay checkout payment.
get_payment_statusGet the status of a payment by referenceId.
cancel_paymentCancel a PicPay order.
create_planCreate a subscription plan (Recurrency API).
list_plansList all subscription plans registered for this merchant.
update_planUpdate an existing subscription plan.
delete_planDelete a subscription plan.
create_subscriptionEnroll a buyer in a subscription plan.
get_subscriptionRetrieve a subscription by id.
cancel_subscriptionCancel an active subscription.
validate_notificationVerify that an incoming webhook callback came from PicPay by comparing the x-seller-token header against PI...
refund_paymentRefund a paid PicPay order, optionally partially.
create_b2p_transferCreate a Business-to-Person (B2P) transfer: push funds from the merchant wallet to a PicPay user identified...
get_b2p_transferGet the status of a B2P transfer by referenceId.
create_batch_paymentSubmit a batch of B2P transfers in a single request.
list_transactionsList merchant transactions (payments and transfers) within a date range.
get_wallet_balanceRetrieve the merchant's current PicPay wallet balance (available and blocked amounts in BRL).
generate_static_qrcodeGenerate a static PicPay Pay QR code for in-store / reusable use.
generate_dynamic_qrcodeGenerate a dynamic PicPay Pay QR code with a fixed amount and optional expiration.
create_payment_linkCreate a shareable PicPay payment link.

Install

bash
npm install @codespar/mcp-picpay@alpha

Environment

bash
PICPAY_TOKEN="..."          # Merchant integration token (x-picpay-token header)PICPAY_SELLER_TOKEN="..."   # Seller token used to validate webhook callbacksPICPAY_BASE_URL="..."       # Optional. Defaults to https://appws.picpay.com/ecommerce/public

Authentication

Every request sends:

Content-Type: application/jsonx-picpay-token: <PICPAY_TOKEN>

PicPay webhook callbacks carry x-seller-token: <PICPAY_SELLER_TOKEN>. Use the validate_notification tool (or compare the header yourself) before trusting a payload, then fetch the authoritative status with get_payment_status.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-picpay
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-picpay

Status

0.1.0-alpha.1. Core checkout endpoints (/payments, /payments/{ref}/status, /payments/{ref}/cancellations) are verified against PicPay's public docs. Recurrency (plans + subscriptions) endpoints come from the documented path shape but field-level schemas (frequency enum values, subscription response) should be confirmed against the live API before production use.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/payments/picpay/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0-alpha.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分