# mcp-conekta

Connects your coding agent to the Conekta payment gateway. Useful for managing Mexican card charges, OXXO cash vouchers, and SPEI bank transfers directly from prompts.

- 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/conekta
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-conekta

## What it does

The server bridges your assistant with Conekta API `v2.2.0`. It provides 21 tools covering the full billing lifecycle, including customer records, payment cards, order creation, refunds, and webhook administration.

Transport runs via standard I/O by default, though an HTTP mode is available when passing `MCP_HTTP=true` on port 3000. Authentication relies on HTTP Basic Auth using your private token as the username with a blank password. Without a valid `CONEKTA_API_KEY` set in the environment, all payment operations fail immediately.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `CONEKTA_API_KEY` — 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 mcp-conekta -e CONEKTA_API_KEY=<CONEKTA_API_KEY> -- npx -y @codespar/mcp-conekta
```
Replace <…> with your own values

### Codex

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

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

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

## When to use it
- create customer profiles and attach saved payment tokens
- generate orders for OXXO cash payments or SPEI transfers
- capture pre-authorized authorizations or issue refunds
- register and inspect endpoints for webhook events

## Example prompts
- Create a Conekta order for 350 MXN paid via SPEI transfer for customer `cust_abc`
- Check the latest webhook events to verify charge status on order `ord_xyz`
- Refund the charge `ch_102030` and mark the order as canceled

## 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
