🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-niubiz

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-niubiz

MCP server for Niubiz — Peru's dominant card acquirer (ex-VisaNet): session, authorization, reverse

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
18
-30.77%
Maintainers
2
Weekly downloads
 
Created
Source

@codespar/mcp-niubiz

MCP server for Niubiz (ex-VisaNet Perú) — Peru's dominant card acquirer, 300k+ merchants. Implements the real ecommerce flow: security token → checkout session → authorization, plus same-day reverse.

npm License: MIT

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "niubiz": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-niubiz"],
      "env": {
        "NIUBIZ_USER": "your-api-user",
        "NIUBIZ_PASSWORD": "your-api-password",
        "NIUBIZ_MERCHANT_ID": "your-merchant-id",
        "NIUBIZ_ENV": "sandbox"
      }
    }
  }
}

Claude Code

claude mcp add niubiz --env NIUBIZ_USER=... --env NIUBIZ_PASSWORD=... --env NIUBIZ_MERCHANT_ID=... -- npx -y @codespar/mcp-niubiz

Cursor / VS Code

Add the same block to .cursor/mcp.json or .vscode/mcp.json.

Tools (4)

ToolEndpointWhat it does
get_security_tokenPOST /api.security/v1/securityBearer token (cached 20 min; other tools auto-fetch)
create_session_tokenPOST /api.ecommerce/v2/ecommerce/token/session/{merchantId}Checkout session with amount + antifraud data
authorize_transactionPOST /api.authorization/v3/authorization/ecommerce/{merchantId}Authorize with the checkout's transactionToken
reverse_transactionPOST /api.authorization/v3/reverse/ecommerce/{merchantId}Same-day void of an authorization

The Niubiz flow

Card data never touches this server: the customer types the card into Niubiz's own checkout form (fed by create_session_token), the form returns a transactionToken, and authorize_transaction completes the purchase. This is Niubiz's standard 3-step ecommerce integration.

Authentication

VariableRequiredDescription
NIUBIZ_USERyesAPI user
NIUBIZ_PASSWORDyesAPI password
NIUBIZ_MERCHANT_IDyesMerchant id (código de comercio)
NIUBIZ_ENVnosandbox (default) or production

Enterprise

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

Managed tier

This open-source server calls Niubiz's API directly with your credentials. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, governance, audit and a credential vault: codespar.dev/agents.

License

MIT

Keywords

mcp

FAQs

Package last updated on 04 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts