Skip to main content
EP

ePayco

v0.1.0OAuth2

Gateway colombiano (del grupo Davivienda) con amplia cobertura de cobro: tarjetas, débito bancario PSE, billetera Daviplata y redes de efectivo.

8 herramientas3 env vars🇨🇴 Colombiaestable en npm

Qué puede hacer tu agente

ePayco le da a tu agente 8 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • tokenize_cardCreate a one-time card token (POST /v1/tokens on api.secure.payco.co). The token is then bound to a customer via create_customer and charged via charge_card.
  • create_customerCreate an ePayco customer bound to a card token (POST /payment/v1/customer/create). Returns customer_id used by charge_card.
  • charge_cardCharge a tokenized card (POST /payment/v1/charge/create). Amounts in COP unless currency says otherwise. Test mode is controlled by EPAYCO_TEST.
Ejemplo de llamada
// 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("tokenize_card", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-epayco

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "epayco": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-epayco"
      ],
      "env": {
        "EPAYCO_PUBLIC_KEY": "<your_epayco_public_key>",
        "EPAYCO_PRIVATE_KEY": "<your_epayco_private_key>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 8 herramientas de abajo — probá tokenize_card primero.

Variables de entorno · 3

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

EPAYCO_PUBLIC_KEY
obligatorio

ePayco public key

EPAYCO_PRIVATE_KEY
obligatoriosecret

ePayco private key

EPAYCO_TEST
opcional

"true" flags payloads as test mode. Defaults to "true" — set "false" for production.

Herramientas disponibles · 8

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEtokenize_card
Create a one-time card token (POST /v1/tokens on api.secure.payco.co). The token is then bound to a customer via create_customer and charged via charge_card.
WRITEcreate_customer
Create an ePayco customer bound to a card token (POST /payment/v1/customer/create). Returns customer_id used by charge_card.
WRITEcharge_card
Charge a tokenized card (POST /payment/v1/charge/create). Amounts in COP unless currency says otherwise. Test mode is controlled by EPAYCO_TEST.
READget_transaction
Get transaction detail by referencePayco (GET https://secure.epayco.co/validation/v1/reference/{ref}). Works for card, PSE and cash payments.
WRITEcreate_pse_payment
Create a PSE bank-debit payment (POST /restpagos/pagos/debitos.json on secure.payco.co). Returns a bank redirect URL the payer must open to authorize the debit.
READget_pse_transaction
Get a PSE transaction's status by transaction id (GET /restpagos/pse/transactioninfo.json on secure.payco.co).
READlist_pse_banks
List PSE banks available for bank debit (GET /restpagos/pse/bancos.json on secure.payco.co).
WRITEcreate_cash_payment
Create a cash payment voucher on a Colombian cash network (POST /restpagos/v2/efectivo/{network} on secure.payco.co). The payer takes the voucher code to a physical point to pay.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-epayco` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
ePayco — MCP server · 8 tools | CodeSpar