Picpay

Finance and commerce

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

Your AI app calls the Picpay MCP server, which does the finance and commerce work and sends the result back to the chat.

About Picpay

Picpay is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for PicPay Business, BR digital wallet (60M+ users): checkout, Pix QR, subscriptions.

Picpay runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-picpay@0.2.0-alpha.3 and talks to it over standard input and output. It needs PICPAY_TOKEN and PICPAY_SELLER_TOKEN set before Picpay starts.

Picpay is listed in the official MCP registry as io.github.codespar/mcp-picpay, version 0.2.0-alpha.3.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-picpay
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-picpay

How to set up Picpay

  1. Install Node.js on the machine that runs your AI app, because Picpay starts with npx and downloads its package on first run.
  2. Create PICPAY_TOKEN and PICPAY_SELLER_TOKEN for Picpay in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Picpay to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Picpay tools to confirm the connection.
  5. Run one read-only task with Picpay first, and keep your app asking before each tool call until the results look right.

Picpay compared with similar servers

  • Pix Bcb by codespar has fewer GitHub stars than Picpay (278 against 278); both are community servers, and both run locally.
  • Persona by codespar has fewer GitHub stars than Picpay (278 against 278); both are community servers, and both run locally.
  • Pluggy by codespar has fewer GitHub stars than Picpay (278 against 278); both are community servers, and both run locally.

Before you connect Picpay

  • Give Picpay its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Picpay tool call until you trust what it does with them.
  • Treat text that Picpay fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Picpay on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Picpay

How marketing and sales teams put Picpay to work, by company size. Pick the size closest to yours and start Picpay on one use case.

Small business

  • A small business can ask Picpay which products and customers drive margin, then plan promotions around them.
  • Owners can use Picpay to check refunds, failed payments and churn reasons without opening three dashboards.
  • Picpay runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Picpay to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Picpay to check spend against budget each week and move money to what's working.
  • Start Picpay on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Picpay read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Picpay to answer revenue questions by channel and region with figures finance signs off on.
  • Picpay is a community server, so have security review the code and pin a version before Picpay touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Picpay README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@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)

Tool Purpose
create_payment Create a PicPay checkout payment.
get_payment_status Get the status of a payment by referenceId.
cancel_payment Cancel a PicPay order.
create_plan Create a subscription plan (Recurrency API).
list_plans List all subscription plans registered for this merchant.
update_plan Update an existing subscription plan.
delete_plan Delete a subscription plan.
create_subscription Enroll a buyer in a subscription plan.
get_subscription Retrieve a subscription by id.
cancel_subscription Cancel an active subscription.
validate_notification Verify that an incoming webhook callback came from PicPay by comparing the x-seller-token header against PI...
refund_payment Refund a paid PicPay order, optionally partially.
create_b2p_transfer Create a Business-to-Person (B2P) transfer: push funds from the merchant wallet to a PicPay user identified...
get_b2p_transfer Get the status of a B2P transfer by referenceId.
create_batch_payment Submit a batch of B2P transfers in a single request.
list_transactions List merchant transactions (payments and transfers) within a date range.
get_wallet_balance Retrieve the merchant's current PicPay wallet balance (available and blocked amounts in BRL).
generate_static_qrcode Generate a static PicPay Pay QR code for in-store / reusable use.
generate_dynamic_qrcode Generate a dynamic PicPay Pay QR code with a fixed amount and optional expiration.
create_payment_link Create a shareable PicPay payment link.

Install

npm install @codespar/mcp-picpay@alpha

Environment

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

Authentication

Every request sends:

Content-Type: application/json
x-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

# 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

Questions about Picpay

What is the Picpay MCP server?

MCP server for PicPay Business, BR digital wallet (60M+ users): checkout, Pix QR, subscriptions. Picpay is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Picpay MCP server?

Add Picpay to your AI app's MCP config with the command npx -y @codespar/mcp-picpay@0.2.0-alpha.3. In Claude Code, run claude mcp add --transport stdio codespar-picpay -- npx -y @codespar/mcp-picpay@0.2.0-alpha.3. To run Picpay this way you need Node.js installed.

Does Picpay need an API key?

Yes. Picpay expects PICPAY_TOKEN and PICPAY_SELLER_TOKEN to be set. Create the key for Picpay in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Picpay an official MCP server?

No. Picpay is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Picpay access to company data.

What license is Picpay under?

Picpay is released under the MIT license, according to its GitHub repository. The license covers the code of Picpay; the service it connects to has its own terms.