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