Skip to main content
RA

Rapyd

v0.2.1API Key

Plataforma global de collect + disburse em mais de 100 países. Complementa o dLocal (focado em LatAm) com retirada em dinheiro (OXXO Pay, 7-Eleven) e carteiras gerenciadas pelo merchant — única em relação a outros servers do catálogo.

22 ferramentas3 env vars🌐 GLOBALestável no npm

O que seu agente faz

O Rapyd dá ao seu agente 22 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • create_checkout_pageCreate a Rapyd hosted checkout page. Returns a redirect_url the payer opens in a browser. Rapyd renders the appropriate local methods (cards, cash pickup, bank transfer, wallets) for the country + currency combination, so one call supports 100+ countries.
  • create_paymentCreate a direct payment with a fully-specified payment_method. Use when you already have a payment_method id/token or when you want server-to-server flow without the hosted page. For voucher/cash methods the response contains redirect/display data.
  • get_paymentRetrieve a payment by Rapyd payment id (payment_xxx). Returns status, amount, method, and any next-action data.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_checkout_page", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-rapyd

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "rapyd": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-rapyd"
      ],
      "env": {
        "RAPYD_ACCESS_KEY": "<your_rapyd_access_key>",
        "RAPYD_SECRET_KEY": "<your_rapyd_secret_key>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 22 ferramentas abaixo — teste create_checkout_page primeiro.

Variáveis de ambiente · 3

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

RAPYD_ACCESS_KEY
obrigatório

Rapyd access key (sent in the access_key header)

RAPYD_SECRET_KEY
obrigatóriosecret

Rapyd secret key used to sign HMAC-SHA256 requests (never transmitted)

RAPYD_ENV
opcional

Rapyd environment: 'sandbox' (https://sandboxapi.rapyd.net) or 'production' (https://api.rapyd.net). Defaults to sandbox.

Ferramentas disponíveis · 22

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

WRITEcreate_checkout_page
Create a Rapyd hosted checkout page. Returns a redirect_url the payer opens in a browser. Rapyd renders the appropriate local methods (cards, cash pickup, bank transfer, wallets) for the country + currency combination, so one call supports 100+ countries.
WRITEcreate_payment
Create a direct payment with a fully-specified payment_method. Use when you already have a payment_method id/token or when you want server-to-server flow without the hosted page. For voucher/cash methods the response contains redirect/display data.
WRITEget_payment
Retrieve a payment by Rapyd payment id (payment_xxx). Returns status, amount, method, and any next-action data.
DELETEcancel_payment
Cancel a payment that has not yet been captured/completed. For auth-only card payments this voids the auth; for pending redirect payments it cancels the expectation.
DELETEcreate_refund
Refund a completed payment. Omit amount for a full refund or set amount for partial.
WRITEcreate_payout
Create a payout (disbursement) to a beneficiary. Rapyd supports bank transfer, wallet top-up, and cash pickup (OXXO Pay, 7-Eleven, etc). Use list_payout_methods_by_country first to find the right payout_method_type for the destination country.
WRITEget_payout
Retrieve a payout by Rapyd payout id (payout_xxx).
WRITEconfirm_payout
Second step of Rapyd's two-step payout approval. After create_payout returns a payout in 'Created' state, call confirm_payout to release funds. Used when your Rapyd account requires dual-approval.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-rapyd` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Rapyd — MCP server · 22 tools | CodeSpar