Skip to main content
CL

Clip

v0.1.0API Key

Principal adquirente nativo de México. Cobros vía links de pago alojados o checkout transparente, para que tu agente cobre tarjetas MX sin trámites locales.

6 herramientas2 env vars🇲🇽 Méxicoestable en npm

Qué puede hacer tu agente

Clip le da a tu agente 6 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier 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.
Ejemplo de llamada
// 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

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "clip": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-clip"
      ],
      "env": {
        "CLIP_AUTH_TOKEN": "<your_clip_auth_token>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 6 herramientas de abajo — probá create_payment_link primero.

Variables de entorno · 2

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

CLIP_AUTH_TOKEN
obligatoriosecret

Basic auth token from the Clip developer dashboard

CLIP_BASE_URL
opcional

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

Herramientas disponibles · 6

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

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 compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

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

Preguntas frecuentes

Corré `npx -y @codespar/mcp-clip` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Clip — MCP server · 6 tools | CodeSpar