About mcp-clip
mcp-clip is an MCP server for Clip (PayClip), a payment acquirer in Mexico. It is intended for merchants collecting payments in MXN and exposes hosted payment links, card-token charges and refunds as tools. Raw card numbers are not accepted by the server.
Key features
- 01Hosted payment link creation and status lookup
- 02Card-token charges from Clip's client-side SDK
- 03Payment detail lookup and paginated listing
- 04Full or partial refunds
Use cases
- 01Generating a payment link through an agent and sending it to a buyer
- 02Collecting payments without handling raw card data
- 03Checking payment records and issuing refunds for orders
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @codespar/mcp-clipCLIP_AUTH_TOKENSecretBasic auth token from the Clip developer dashboardCLIP_BASE_URLAPI base URL override. Defaults to https://api.payclip.com.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| amount | number | Yes | Amount in MXN (decimal pesos, e.g. 150.00) |
| currency | string | No | Currency code. Clip processes MXN. |
| metadata | object | No | Optional metadata echoed back on queries/webhooks |
| redirection_url | object | No | Where the buyer lands after paying |
| redirection_url.error | string | No | URL on failure |
| redirection_url.default | string | No | Fallback URL |
| redirection_url.success | string | No | URL on success |
| purchase_description | string | Yes | What the buyer is paying for (shown at checkout) |
Details
From the project README@codespar/mcp-clip
MCP server for Clip (PayClip) — Mexico's leading native acquirer. Hosted payment links, transparent card-token charges, queries and refunds, in MXN.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"clip": {
"command": "npx",
"args": ["-y", "@codespar/mcp-clip"],
"env": {
"CLIP_AUTH_TOKEN": "your-basic-token"
}
}
}
}
Claude Code
claude mcp add clip -- npx @codespar/mcp-clip
Environment
| Variable | Required | Description |
|---|---|---|
CLIP_AUTH_TOKEN | yes | Basic auth token from the Clip developer dashboard (sent as Authorization: Basic <token>) |
CLIP_BASE_URL | no | API base override (default https://api.payclip.com) |
Test mode: Clip distinguishes environments by the token itself — test tokens hit the sandbox processing path; there is no separate URL.
Tools (6)
| Tool | What it does |
|---|---|
create_payment_link | Hosted checkout link (POST /v2/checkout) — the no-PCI path |
get_payment_link | Checkout status by id |
create_payment | Transparent charge with a client-side card token (POST /payments) |
get_payment | Payment detail |
list_payments | List payments, paginated |
refund_payment | Full or partial refund (POST /payments/{id}/refund) |
Raw card numbers are never accepted — create_payment takes a token from Clip's client-side SDK. When you have no tokenization front-end, use create_payment_link.
Example
"Cobra 450 pesos por la consultoría y mándame el link."
The agent calls create_payment_link (amount: 450.00, purchase_description: "Consultoría") and returns the payment_request_url for the buyer.
Authentication
Clip issues a single Basic auth token in the developer dashboard; the server sends it as Authorization: Basic <CLIP_AUTH_TOKEN> on every call.
Enterprise
Need governance, budget limits, and audit trails for agent-driven payments on Clip? CodeSpar Enterprise adds a policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.