PagSafe MCP by usefulapi is an MCP server published by io.usefulapi, hosted at pagsafe.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 6 tools, including pagsafe_create_pix_charge, pagsafe_get_transaction, pagsafe_refund_transaction, pagsafe_create_pix_subscription, pagsafe_get_subscription.
Create Pix charges, check and refund payments, and manage Pix subscriptions in PagSafe.
4,406 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Create a one-time Pix charge. Returns the id, status PENDING, and pix.payload (the copy and paste code to show the buyer). The charge is paid only when the PagSafe webhook reports AUTHORIZED: do not treat the reply as paid. A retry with the same external_id, amount and customer.document returns the same pending Pix within 6 hours (reused: true). Writes a real charge. Uses POST /v2/transactions.
| Parameter | Type | Description |
|---|---|---|
| ip * | any | The buyer's real IP address, IPv4 or IPv6. PagSafe uses it for fraud checks. |
| items * | array | The order items. |
| amount * | number | Total in reais, decimal, for example 149.9 for R$ 149,90. Never send centavos. Minimum 5.00. |
| customer * | object | |
| tracking | object | Optional UTM tags for the sale. They come back in the transaction. |
| external_id * | string | Your order id. On a retry of the same order, send the same external_id, amount and customer.document: PagSafe returns the same pending Pix if it was created within the last 6 hours. |
{
"name": "pagsafe_create_pix_charge",
"title": "Create a Pix charge",
"description": "Create a one-time Pix charge. Returns the id, status PENDING, and pix.payload (the copy and paste code to show the buyer). The charge is paid only when the PagSafe webhook reports AUTHORIZED: do not treat the reply as paid. A retry with the same external_id, amount and customer.document returns the same pending Pix within 6 hours (reused: true). Writes a real charge. Uses POST /v2/transactions.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"external_id",
"amount",
"items",
"ip",
"customer"
],
"properties": {
"ip": {
"anyOf": [
{
"type": "string",
"format": "ipv4",
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
},
{
"type": "string",
"format": "ipv6",
"pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"
}
],
"description": "The buyer's real IP address, IPv4 or IPv6. PagSafe uses it for fraud checks."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"title",
"description",
"price",
"quantity",
"is_physical"
],
"properties": {
"id": {
"type": "string",
"description": "Your product id."
},
"price": {
"type": "number",
"description": "Unit price in reais.",
"exclusiveMinimum": 0
},
"title": {
"type": "string"
},
"quantity": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": {
"type": "string"
},
"is_physical": {
"type": "boolean",
"description": "true for a product that needs delivery."
}
}
},
"minItems": 1,
"description": "The order items."
},
"amount": {
"type": "number",
"minimum": 5,
"description": "Total in reais, decimal, for example 149.9 for R$ 149,90. Never send centavos. Minimum 5.00."
},
"customer": {
"type": "object",
"required": [
"name",
"email",
"phone",
"document_type",
"document"
],
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"type": "string",
"pattern": "^\\+55\\d{10,11}$",
"description": "Brazilian phone in international format, for example +5511999999999."
},
"document": {
"type": "string",
"description": "CPF (11 digits) or CNPJ (14 digits), digits only, matching document_type."
},
"document_type": {
"enum": [
"CPF",
"CNPJ"
],
"type": "string"
}
}
},
"tracking": {
"type": "object",
"properties": {
"utm_term": {
"type": "string"
},
"utm_medium": {
"type": "string"
},
"utm_source": {
"type": "string"
},
"utm_content": {
"type": "string"
},
"utm_campaign": {
"type": "string"
}
},
"description": "Optional UTM tags for the sale. They come back in the transaction."
},
"external_id": {
"type": "string",
"minLength": 1,
"description": "Your order id. On a retry of the same order, send the same external_id, amount and customer.document: PagSafe returns the same pending Pix if it was created within the last 6 hours."
}
}
},
"annotations": {
"title": "Create a Pix charge",
"destructiveHint": true
}
}Get the current status of a transaction created through this API: PENDING, AUTHORIZED (paid), FAILED, REFUNDED, IN_DISPUTE or CHARGEBACK. Use it to check a payment or to recover a lost webhook; prefer the webhook for live updates. Uses GET /v2/transactions/{transaction_id}.
| Parameter | Type | Description |
|---|---|---|
| transaction_id * | string | The PagSafe transaction id (for example tr_8f2c1a), from the create call. |
{
"name": "pagsafe_get_transaction",
"title": "Get a transaction",
"description": "Get the current status of a transaction created through this API: PENDING, AUTHORIZED (paid), FAILED, REFUNDED, IN_DISPUTE or CHARGEBACK. Use it to check a payment or to recover a lost webhook; prefer the webhook for live updates. Uses GET /v2/transactions/{transaction_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"transaction_id"
],
"properties": {
"transaction_id": {
"type": "string",
"minLength": 1,
"description": "The PagSafe transaction id (for example tr_8f2c1a), from the create call."
}
}
},
"annotations": {
"title": "Get a transaction",
"readOnlyHint": true
}
}Refund the full amount of a transaction back to the buyer. The transaction must be AUTHORIZED, created through this API, and have enough balance in every split account. A refund cannot be undone. Uses POST /v2/transactions/{transaction_id}/refund.
| Parameter | Type | Description |
|---|---|---|
| transaction_id * | string | The PagSafe transaction id (for example tr_8f2c1a), from the create call. |
{
"name": "pagsafe_refund_transaction",
"title": "Refund a transaction",
"description": "Refund the full amount of a transaction back to the buyer. The transaction must be AUTHORIZED, created through this API, and have enough balance in every split account. A refund cannot be undone. Uses POST /v2/transactions/{transaction_id}/refund.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"transaction_id"
],
"properties": {
"transaction_id": {
"type": "string",
"minLength": 1,
"description": "The PagSafe transaction id (for example tr_8f2c1a), from the create call."
}
}
},
"annotations": {
"title": "Refund a transaction",
"destructiveHint": true
}
}Create a recurring Pix Automático subscription. Returns status PENDING_AUTHORIZATION and pix.qr_code or pix.payment_link: show one to the buyer, who must authorize it once. After authorization the status becomes ACTIVE and later cycles are charged on their own. For Pix, the cycles are SEMANAL, MENSAL and ANUAL only. If the call fails with HTTP 500, check PagSafe for an existing subscription before you retry. Writes a real subscription. Uses POST /v2/subscriptions.
| Parameter | Type | Description |
|---|---|---|
| ip * | any | The buyer's real IP address, IPv4 or IPv6. PagSafe uses it for fraud checks. |
| items * | array | The order items. |
| amount * | number | Amount charged in every cycle, in reais (not the total). Minimum 5.00. |
| customer * | object | |
| external_id * | string | Your id for this subscription. The retry reuse rule is documented for one-time Pix charges only. |
| membership_period * | string | Billing cycle: SEMANAL (weekly), MENSAL (monthly) or ANUAL (yearly). |
Get a subscription's status (PENDING_AUTHORIZATION, ACTIVE, LATE, PAUSED or CANCELED), amount, cycle, and the dates of the last and next charge. Uses GET /v2/subscriptions/{subscription_id}.
| Parameter | Type | Description |
|---|---|---|
| subscription_id * | string | The PagSafe subscription id (for example sub_5a90c2), from the create call. |
{
"name": "pagsafe_get_subscription",
"title": "Get a subscription",
"description": "Get a subscription's status (PENDING_AUTHORIZATION, ACTIVE, LATE, PAUSED or CANCELED), amount, cycle, and the dates of the last and next charge. Uses GET /v2/subscriptions/{subscription_id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "string",
"minLength": 1,
"description": "The PagSafe subscription id (for example sub_5a90c2), from the create call."
}
}
},
"annotations": {
"title": "Get a subscription",
"readOnlyHint": true
}
}Cancel a PagSafe customer subscription so no further cycles are charged. The buyer keeps access until the cycle already paid ends. This cancels a subscription of YOUR customer, not a UsefulAPI plan. Uses POST /v2/subscriptions/{subscription_id}/cancel.
| Parameter | Type | Description |
|---|---|---|
| subscription_id * | string | The PagSafe subscription id (for example sub_5a90c2), from the create call. |
{
"name": "pagsafe_cancel_pix_subscription",
"title": "Cancel a PagSafe subscription",
"description": "Cancel a PagSafe customer subscription so no further cycles are charged. The buyer keeps access until the cycle already paid ends. This cancels a subscription of YOUR customer, not a UsefulAPI plan. Uses POST /v2/subscriptions/{subscription_id}/cancel.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "string",
"minLength": 1,
"description": "The PagSafe subscription id (for example sub_5a90c2), from the create call."
}
}
},
"annotations": {
"title": "Cancel a PagSafe subscription",
"destructiveHint": true
}
}Tools for PagSafe, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Create a Pix charge for R$ 149.90 for order pedido-1042 and give me the copy and paste code."; "Has transaction tr_8f2c1a been paid yet?"; "Refund transaction tr_8f2c1a.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes PagSafe data. Free plan: 50 tool calls per month. Run pagsafe_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run pagsafe_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run pagsafe_upgrade without a plan: it returns both plans, each with a payment link for the user to open. pagsafe_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "pagsafe_create_pix_subscription",
"title": "Create a Pix Automático subscription",
"description": "Create a recurring Pix Automático subscription. Returns status PENDING_AUTHORIZATION and pix.qr_code or pix.payment_link: show one to the buyer, who must authorize it once. After authorization the status becomes ACTIVE and later cycles are charged on their own. For Pix, the cycles are SEMANAL, MENSAL and ANUAL only. If the call fails with HTTP 500, check PagSafe for an existing subscription before you retry. Writes a real subscription. Uses POST /v2/subscriptions.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"external_id",
"amount",
"membership_period",
"items",
"ip",
"customer"
],
"properties": {
"ip": {
"anyOf": [
{
"type": "string",
"format": "ipv4",
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
},
{
"type": "string",
"format": "ipv6",
"pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"
}
],
"description": "The buyer's real IP address, IPv4 or IPv6. PagSafe uses it for fraud checks."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"title",
"description",
"price",
"quantity",
"is_physical"
],
"properties": {
"id": {
"type": "string",
"description": "Your product id."
},
"price": {
"type": "number",
"description": "Unit price in reais.",
"exclusiveMinimum": 0
},
"title": {
"type": "string"
},
"quantity": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": {
"type": "string"
},
"is_physical": {
"type": "boolean",
"description": "true for a product that needs delivery."
}
}
},
"minItems": 1,
"description": "The order items."
},
"amount": {
"type": "number",
"minimum": 5,
"description": "Amount charged in every cycle, in reais (not the total). Minimum 5.00."
},
"customer": {
"type": "object",
"required": [
"name",
"email",
"phone",
"document_type",
"document"
],
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"type": "string",
"pattern": "^\\+55\\d{10,11}$",
"description": "Brazilian phone in international format, for example +5511999999999."
},
"document": {
"type": "string",
"description": "CPF (11 digits) or CNPJ (14 digits), digits only, matching document_type."
},
"document_type": {
"enum": [
"CPF",
"CNPJ"
],
"type": "string"
}
}
},
"external_id": {
"type": "string",
"minLength": 1,
"description": "Your id for this subscription. The retry reuse rule is documented for one-time Pix charges only."
},
"membership_period": {
"enum": [
"SEMANAL",
"MENSAL",
"ANUAL"
],
"type": "string",
"description": "Billing cycle: SEMANAL (weekly), MENSAL (monthly) or ANUAL (yearly)."
}
}
},
"annotations": {
"title": "Create a Pix Automático subscription",
"destructiveHint": true
}
}