# mcp-clip

An MCP server for taking payments through Clip (PayClip) in Mexico. Agents get hosted payment links, card-token charges, refunds and payment lookups, priced in MXN.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/mexico/clip
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-clip

## What it does

Six tools come with it. `create_payment_link` produces a hosted checkout page and `get_payment_link` reports on it. `create_payment` charges a card token issued by Clip's client-side SDK; `get_payment` and `list_payments` return payment details and a paged list. `refund_payment` covers full or partial money-back. The server never takes a raw card number, so without a tokenisation front-end the payment link is the path you have. Get the Basic token from the Clip developer dashboard and pass it as `CLIP_AUTH_TOKEN`; the token alone decides whether calls hit test mode, no separate sandbox URL exists.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `CLIP_AUTH_TOKEN`, `CLIP_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env CLIP_AUTH_TOKEN=<CLIP_AUTH_TOKEN> --env CLIP_BASE_URL=<CLIP_BASE_URL> --transport stdio clip -- npx -y @codespar/mcp-clip
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add clip --env CLIP_AUTH_TOKEN=<CLIP_AUTH_TOKEN> --env CLIP_BASE_URL=<CLIP_BASE_URL> -- npx -y @codespar/mcp-clip
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "clip": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-clip"
            ],
            "env": {
                "CLIP_AUTH_TOKEN": "<CLIP_AUTH_TOKEN>",
                "CLIP_BASE_URL": "<CLIP_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "clip": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-clip"
            ],
            "env": {
                "CLIP_AUTH_TOKEN": "<CLIP_AUTH_TOKEN>",
                "CLIP_BASE_URL": "<CLIP_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e CLIP_AUTH_TOKEN=<CLIP_AUTH_TOKEN> -e CLIP_BASE_URL=<CLIP_BASE_URL> clip npx -y @codespar/mcp-clip
```
Replace <…> with your own values

## When to use it
- send a customer a payable checkout link in MXN
- charge a card through a token without handling the number
- check whether a payment link was paid
- page through past payments
- refund a payment in full or in part

## Example prompts
- Make a 450.00 MXN payment link for the consulting gig and send it to the client.
- What is the status of this morning's payment link?
- Issue a partial refund on the latest payment.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
