Adquirente de tarjetas dominante de Perú (ex-VisaNet, 300 mil+ comercios). Cobros con tarjeta mediante el flujo de security token.
Niubiz le da a tu agente 4 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
get_security_token — Fetch the Niubiz API bearer token (POST /api.security/v1/security, Basic auth). Other tools fetch and cache this automatically — call it explicitly only to verify credentials or force a refresh.create_session_token — Create a checkout session (POST /api.ecommerce/v2/ecommerce/token/session/{merchantId}). Returns the sessionKey the Niubiz checkout form needs. Send the purchase amount and the customer's IP for antifraud scoring.authorize_transaction — Authorize a purchase (POST /api.authorization/v3/authorization/ecommerce/{merchantId}). Pass the transactionToken the Niubiz checkout form returned after the customer entered the card, plus your purchaseNumber and the amount.// 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("get_security_token", { /* ... */ });$ npm install @codespar/mcp-niubizAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"niubiz": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-niubiz"
],
"env": {
"NIUBIZ_USER": "<your_niubiz_user>",
"NIUBIZ_PASSWORD": "<your_niubiz_password>",
"NIUBIZ_MERCHANT_ID": "<your_niubiz_merchant_id>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 4 herramientas de abajo — probá get_security_token primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
NIUBIZ_USERNiubiz API user
NIUBIZ_PASSWORDNiubiz API password
NIUBIZ_MERCHANT_IDMerchant id (código de comercio)
NIUBIZ_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox'.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
get_security_tokencreate_session_tokenauthorize_transactionreverse_transactionMCP es un protocolo — cualquier framework que lo hable puede montar este server.