mcpField
M
mcp-epayco

mcp-epayco

Local
github.com/codesparFinance275Updated 4w ago

About mcp-epayco

mcp-epayco is an MCP server for ePayco, a Colombian payment gateway, covering card tokenization and charges, PSE bank debit, and cash-network payments. Its tools mirror the official epayco-node SDK, and test mode is set through the EPAYCO_TEST payload flag.

Key features

  1. 01Card tokenization and customer creation
  2. 02Card charges and transaction lookup
  3. 03PSE bank debit and status queries
  4. 04Cash voucher creation for payment networks
  5. 05Test mode flag in payloads

Use cases

  1. 01Charging cards for Colombian online merchants from an AI agent
  2. 02Retrieving PSE bank redirect URLs and transaction status
  3. 03Generating cash vouchers for in-store payment networks

MCP support

The server exposes eight tools over MCP that wrap ePayco's card, PSE and cash payment endpoints.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-epayco": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-epayco"
],
"env": {
"EPAYCO_PUBLIC_KEY": "<EPAYCO_PUBLIC_KEY>",
"EPAYCO_PRIVATE_KEY": "<EPAYCO_PRIVATE_KEY>",
"EPAYCO_TEST": "<EPAYCO_TEST>"
}
}
}
}
Run commandnpx -y @codespar/mcp-epayco
Environment variables to set
EPAYCO_PUBLIC_KEYSecretePayco public key
EPAYCO_PRIVATE_KEYSecretePayco private key
EPAYCO_TEST"true" flags payloads as test mode. Defaults to "true" — set "false" for production.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-epayco0.1.0

Tools

8

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
cvcstringYesCard CVC
exp_yearstringYesExpiry year, e.g. 2027
exp_monthstringYesExpiry month, e.g. 09
card_numberstringYesCard PAN

Details

From the project README

@codespar/mcp-epayco

MCP server for ePayco — Colombian payment gateway (Davivienda-owned): card tokenization and charges, PSE bank debit, and cash networks (Efecty, Gana, Red Servi, Punto Red, Su Red).

npm License: MIT

The tool set mirrors the official ePayco SDKs (epayco-node): the card/token API on api.secure.payco.co and the restpagos API on secure.payco.co for PSE and cash. Test mode is a payload flag (EPAYCO_TEST), not a separate host.

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "epayco": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-epayco"],
      "env": {
        "EPAYCO_PUBLIC_KEY": "your-public-key",
        "EPAYCO_PRIVATE_KEY": "your-private-key",
        "EPAYCO_TEST": "true"
      }
    }
  }
}
Claude Code
claude mcp add epayco --env EPAYCO_PUBLIC_KEY=pk --env EPAYCO_PRIVATE_KEY=sk -- npx -y @codespar/mcp-epayco

Tools (8)

ToolDescription
tokenize_cardCreate a card token (POST /v1/tokens)
create_customerCreate a customer bound to a card token
charge_cardCharge a tokenized card (POST /payment/v1/charge/create)
get_transactionTransaction detail by referencePayco
create_pse_paymentPSE bank debit — returns the bank redirect URL
get_pse_transactionPSE transaction status by transaction id
list_pse_banksPSE bank list
create_cash_paymentCash voucher on efecty / gana / redservi / puntored / sured

Environment

VariableRequiredDescription
EPAYCO_PUBLIC_KEYyesPublic key
EPAYCO_PRIVATE_KEYyesPrivate key
EPAYCO_TESTno"true" (default) flags payloads as test mode

Docs

Enterprise

Need governance, budget limits, and audit trails for agent-driven payments on ePayco? CodeSpar Enterprise adds a policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Comments

Markdown supported

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.