Documentation Index
Fetch the complete documentation index at: https://docs.safefypay.com.br/llms.txt
Use this file to discover all available pages before exploring further.
Official package
The Safefy MCP Server implements the Model Context Protocol (MCP), allowing AI agents to interact with the Safefy API directly, without writing any integration code.Requirements
- Node.js 18 or higher
Setup by platform
Generate your credentials at app.safefypay.com.br/panel/merchant/api-credentials.
- Claude
- Cursor / Windsurf / VS Code
- v0 (Vercel)
- Lovable
Edit your
claude_desktop_config.json file:Available tools
The MCP Server exposes the following tools to the AI agent:Authentication
configure_credentials: Set public key and secret keyauthenticate: Generate an access token
Transactions
create_transaction: Create a PIX or boleto chargeget_transaction: Get details of a transactionlist_transactions: List transactions with filterssimulate_transaction: Simulate confirmation/failure in Sandbox
Customers
create_customer: Create a customerget_customer: Get customer by IDlist_customers: List customers with filtersupdate_customer: Update customer data
Balance
get_balance: Get available balance
Cashouts
create_cashout: Request a withdrawalget_cashout: Get details of a cashoutlist_cashouts: List cashouts with filterscancel_cashout: Cancel a pending cashoutsimulate_cashout: Simulate completion/failure in Sandbox
Payment Links
get_payment_link: Get payment link by IDget_payment_link_status: Get status of a payment linkstart_payment_link: Start a charge on a payment link
Orders
get_order: Get order by ID
Products
get_product: Get product by IDlist_products: List products with filters
Usage example
Once the MCP is configured, you can ask the AI agent:create_transaction automatically and return the QR Code and PIX copy-and-paste code.
list_transactions and get_balance in parallel and present a summary.