Skip to main content
EP

ePayco

v0.1.0OAuth2

Gateway colombiano (do grupo Davivienda) com ampla cobertura de recebimento: cartões, débito bancário PSE, carteira Daviplata e redes de dinheiro em espécie.

8 ferramentas3 env vars🇨🇴 Colômbiaestável no npm

O que seu agente faz

O ePayco dá ao seu agente 8 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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.
Exemplo de chamada
// 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

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com 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>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 8 ferramentas abaixo — teste tokenize_card primeiro.

Variáveis de ambiente · 3

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

EPAYCO_PUBLIC_KEY
obrigatório

ePayco public key

EPAYCO_PRIVATE_KEY
obrigatóriosecret

ePayco private key

EPAYCO_TEST
opcional

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

Ferramentas disponíveis · 8

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

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 compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

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

Perguntas frequentes

Rode `npx -y @codespar/mcp-epayco` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
ePayco — MCP server · 8 tools | CodeSpar