Skip to main content
CL

Clip

v0.1.0API Key

Principal adquirente nativo do México. Cobranças via links de pagamento hospedados ou checkout transparente, para seu agente cobrar cartões MX sem burocracia local.

6 ferramentas2 env vars🇲🇽 Méxicoestável no npm

O que seu agente faz

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

  • create_payment_linkCreate a hosted checkout / payment link (POST /v2/checkout). The buyer opens the returned payment_request_url and pays with card, Clip account or other enabled MX methods. Amount is in MXN pesos (decimal, e.g. 150.00).
  • get_payment_linkFetch a checkout / payment link by id (GET /v2/checkout/{id}) — status, amount, payment outcome.
  • create_paymentCreate a transparent card charge (POST /payments) using a card token generated by Clip's client-side SDK. Use create_payment_link instead when you have no tokenization front-end — raw card numbers are never accepted here.
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_payment_link", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-clip

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": {
    "clip": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-clip"
      ],
      "env": {
        "CLIP_AUTH_TOKEN": "<your_clip_auth_token>"
      }
    }
  }
}

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

Variáveis de ambiente · 2

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

CLIP_AUTH_TOKEN
obrigatóriosecret

Basic auth token from the Clip developer dashboard

CLIP_BASE_URL
opcional

API base URL override. Defaults to https://api.payclip.com.

Ferramentas disponíveis · 6

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

WRITEcreate_payment_link
Create a hosted checkout / payment link (POST /v2/checkout). The buyer opens the returned payment_request_url and pays with card, Clip account or other enabled MX methods. Amount is in MXN pesos (decimal, e.g. 150.00).
WRITEget_payment_link
Fetch a checkout / payment link by id (GET /v2/checkout/{id}) — status, amount, payment outcome.
WRITEcreate_payment
Create a transparent card charge (POST /payments) using a card token generated by Clip's client-side SDK. Use create_payment_link instead when you have no tokenization front-end — raw card numbers are never accepted here.
WRITEget_payment
Fetch a payment by id (GET /payments/{id}) — status, amounts, card summary, refunds.
WRITElist_payments
List payments (GET /payments), newest first. Paginated via limit/offset.
DELETErefund_payment
Refund a payment (POST /payments/{id}/refund). Omit amount for a full refund; pass it for a partial refund in MXN.

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-clip` 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.
Clip — MCP server · 6 tools | CodeSpar