Skip to main content
CL

Clip

v0.1.0API Key

Mexico's leading native acquirer. Inbound charges via hosted payment links or transparent checkout, so your agent charges MX cards without local paperwork.

6 tools2 env vars๐Ÿ‡ฒ๐Ÿ‡ฝ Mexicostable on npm

What your agent can do

Clip gives your agent 6 tools it calls directly โ€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_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).
  • get_payment_link โ€” Fetch a checkout / payment link by id (GET /v2/checkout/{id}) โ€” status, amount, payment outcome.
  • create_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.
Example call
// 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", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-clip

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

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

After restart, your agent can call any of the 6 tools below โ€” try create_payment_link first.

Environment variables ยท 2

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

CLIP_AUTH_TOKEN
requiredsecret

Basic auth token from the Clip developer dashboard

CLIP_BASE_URL
optional

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

Available tools ยท 6

Each tool is independent โ€” your agent loads only what it needs to reduce context and response time.

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.

Compatible frameworks

MCP is a protocol โ€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-clip` and add the config block above to your MCP client โ€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Clip โ€” MCP server ยท 6 tools | CodeSpar