Abacate Pay MCP Server logo

Abacate Pay MCP Server

Organization
AbacatePay

Servidor MCP para usar a API v2 da Abacate Pay no Claude, no Cursor ou por URL remota (Claude.ai, automações, outras integrações).

PublisherAbacatePay
Repositoryabacatepay-mcp
LanguageTypeScript
Forks
2
Stars
5
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Abacate Pay MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    5 stars and 2 forks from the linked repository.

Abacate Pay MCP Server

Servidor MCP para usar a API v2 da Abacate Pay no Claude, no Cursor ou por URL remota (Claude.ai, automações, outras integrações).

Conteúdo: Início rápido · Como rodar o servidor · Conectar via OAuth (Claude.ai / remoto) · Ferramentas · Problemas comuns


Início rápido

Pré-requisito: Bun 1.x.

bash
git clone https://github.com/AbacatePay/abacatepay-mcp.git
cd abacatepay-mcp
bun install

Chave de API: Abacate Pay → Integrar → API Keys. Use uma chave de API v2 — é a única versão suportada por este servidor.

Claude Desktop / Cursor (modo local, processo próprio):

json
{
  "mcpServers": {
    "abacate-pay": {
      "command": "bun",
      "args": ["/CAMINHO/absoluto/para/abacatepay-mcp/src/index.ts"],
      "env": {
        "ABACATE_PAY_API_KEY": "sua_chave"
      }
    }
  }
}

Muitas ferramentas também aceitam apiKey na própria chamada, para usar outra chave quando precisar (útil para operar em modo teste e produção sem trocar a configuração).


Como rodar o servidor

Escolha uma opção.

No seu computador com Cursor ou Claude Desktop (o mais simples)

O próprio app liga o servidor para você via stdio (bun run src/index.ts). Você só configura o caminho e a variável ABACATE_PAY_API_KEY, como no início rápido. Não precisa de URL, porta ou OAuth.

Na internet (HTTP) — Claude.ai, n8n, automações

Use o endpoint público quando você integra com Claude.ai (conector remoto), n8n, outras automações, ou quer configuração remota no cliente (sem command/processo local).

Onde rodaEndereço
Servidor público Abacate Payhttps://mcp.abacatepay.com/mcp

Esse endpoint aceita dois modos de autenticação:

  1. Authorization: Bearer <chave-v2> (ou header X-API-Key) diretamente — simples para clientes que já guardam a chave (n8n, scripts, Cursor apontando para a URL).
  2. OAuth 2.0 — obrigatório para o conector remoto do Claude.ai, que não aceita headers estáticos e exige um fluxo de autorização. Veja a seção abaixo.

Exemplo de configuração remota (Cursor, com header direto):

json
{
  "mcpServers": {
    "abacatepay": {
      "url": "https://mcp.abacatepay.com/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}

Local, servindo HTTP (para testar OAuth ou o modo multi-tenant)

bash
bun run src/http-server.ts
# porta padrão 3000; ajuste com MCP_PORT ou PORT

Conectar via OAuth (Claude.ai / remoto)

O servidor implementa um Authorization Server OAuth 2.0 completo (Dynamic Client Registration + Authorization Code + PKCE), necessário porque o conector remoto do Claude.ai exige OAuth — não é possível conectar apenas com um header estático nesse cliente.

Fluxo, do ponto de vista do Claude/cliente MCP:

  1. O cliente descobre os metadados em /.well-known/oauth-protected-resource e /.well-known/oauth-authorization-server.
  2. Registra-se dinamicamente em POST /register (RFC 7591).
  3. Abre GET /authorize no navegador do usuário — uma página simples pede a chave de API v2 da Abacate Pay (não uma senha de conta).
  4. Após validar a chave contra a API (GET /v2/stores/get), o servidor emite um código de autorização e redireciona de volta ao cliente.
  5. O cliente troca o código por um token em POST /token (com verificação PKCE). O "token" retornado é, na prática, a própria chave de API v2, guardada de forma criptografada (AES-256-GCM) no SQLite do servidor até esse ponto.
  6. O cliente usa esse token como Authorization: Bearer normalmente em /mcp.

Não há conta de usuário nem senha do Abacate Pay envolvida — apenas a chave de API do lojista, o mesmo modelo de autenticação usado no header direto.

Configuração de produção (Fly.io): o banco de dados OAuth (SQLite) precisa de um volume persistente e de uma chave de criptografia fixa:

bash
fly volumes create oauth_data --size 1 --region gru
fly secrets set OAUTH_ENCRYPTION_KEY=$(openssl rand -hex 32)

Isso já está configurado em fly.toml (OAUTH_DB_PATH=/data/oauth.db, montado no volume oauth_data). Localmente, se OAUTH_ENCRYPTION_KEY não estiver definida, uma chave é gerada e persistida ao lado do banco (oauth.key), com aviso no console.


Ferramentas

Nomes exatos das tools são os registrados no código (src/tools/); a lista completa aparece no cliente MCP ao conectar. Resumo por recurso:

RecursoTools
ClientescreateCustomer, listCustomers, getCustomer, deleteCustomer
CuponscreateCoupon, listCoupons, getCoupon, deleteCoupon, toggleCoupon
ProdutoscreateProduct, listProducts, getProduct, deleteProduct
Checkouts (pagamento único)createCheckout, listCheckouts, getCheckout, deleteCheckout, refundCheckout
Links de pagamento (reutilizáveis)createPaymentLink, listPaymentLinks, getPaymentLink, deletePaymentLink, refundPaymentLink
Checkout transparente (PIX/Boleto)createTransparentPix, createTransparentBoleto, getTransparent, checkTransparentPix, simulateTransparentPixPayment, listTransparent, refundTransparent
Payouts (saque para a própria chave Pix)createPayout, getPayout, listPayouts
Envio de Pix (para terceiros)sendPix, getPixTransaction, listPixTransactions
AssinaturascreateSubscription, listSubscriptions, getSubscription, cancelSubscription, changeSubscriptionPlan, recordSubscriptionUsage
LojagetStore, listStores
WebhookscreateWebhook, listWebhooks, getWebhook, deleteWebhook

Implementação: um arquivo por recurso em src/tools/ (ex.: src/tools/checkouts.ts).

Notas importantes de negócio, refletidas nas ferramentas:

  • Reembolsos (refund*) são sempre integrais — a API v2 não suporta reembolso parcial.
  • checkTransparentPix e simulateTransparentPixPayment funcionam apenas para PIX; boleto não tem simulação de pagamento.
  • simulateTransparentPixPayment só funciona com uma chave de teste (modo dev).
  • listPixTransactions/getPixTransaction exigem id; a API não pagina nem filtra por status nesse endpoint.
  • changeSubscriptionPlan e cancelSubscription são irreversíveis; não há suporte a pró-rata no cancelamento.

Ideias de prompts

  • Produto + checkout: "Crie um produto 'Consultoria' de R$ 150 e um checkout PIX+cartão para ele."
  • Cupom para campanha: "Crie um cupom 15% com código ALEX15, máximo 100 usos."
  • Conferir vendas: "Liste os checkouts pagos dos últimos 7 dias e resuma valores."
  • Assinatura: "Crie um produto mensal de R$ 49 e uma assinatura para o cliente X."

Problemas comuns

SituaçãoO que verificar
Erro de API keyCursor/Claude local: ABACATE_PAY_API_KEY no env da config. HTTP: header Authorization ou X-API-Key, ou conecte via OAuth.
MCP não conecta (local)Caminho absoluto para src/index.ts, Bun instalado, reiniciar o app após mudar config.
Claude.ai não conecta (remoto)Confirme que está usando o fluxo OAuth (o conector do Claude.ai exige /authorize); não funciona apenas com header estático nesse cliente específico.
Bun não encontradobun --version; instalação em bun.sh.
401/403 em uma toolA chave precisa ser de API v2; chaves v1 antigas não funcionam mais neste servidor.

Contribuição e licença

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "abacatepay-abacatepay-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use Abacate Pay MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Abacate Pay MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Abacate Pay MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Abacate Pay MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "abacatepay-abacatepay-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "abacatepay-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Abacate Pay MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Abacate Pay MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Abacate Pay MCP Server to help me with this task?
Abacate Pay MCP Server
Sure. I read it.
Here is what I found using Abacate Pay MCP Server.

Option 2: Add an MCP server URL

Use this when Abacate Pay MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for Abacate Pay MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Abacate Pay MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Abacate Pay MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Abacate Pay MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Abacate Pay MCP Server to help me with this task?
Abacate Pay MCP Server
Sure. I read it.
Here is what I found using Abacate Pay MCP Server.

Frequently asked questions

What is the Abacate Pay MCP Server MCP server used for?

Abacate Pay MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Abacate Pay MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Abacate Pay MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Abacate Pay MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Abacate Pay MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Abacate Pay MCP Server MCP to TypingMind?

Abacate Pay MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Abacate Pay MCP Server MCP provide in TypingMind?

Abacate Pay MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Abacate Pay MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Abacate Pay MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇