Mcp Niubiz

io.github.codespar由 GitHub 账号 codespar 发布v0.1.0更新于 Oct 24, 2026

MCP server for Niubiz — Peru card acquirer: security token, session, authorize, reverse

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向秘鲁收单机构 Niubiz 的本地 MCP 服务器,让助手获取安全令牌、创建结账会话、授权银行卡支付并撤销交易。

可以做什么
获取 Niubiz 安全令牌,缓存约 20 分钟,其他工具需要时自动获取。使用金额和反欺诈数据创建结账会话,返回交易令牌。使用结账会话的交易令牌授权交易。当日撤销一笔授权。银行卡数据不经过该服务器,而是在 Niubiz 自有结账表单中输入。
适用场景
当助手需要为秘鲁商户操作 Niubiz 电商支付流程时适用:准备结账会话、完成授权或撤销当日授权,通常用于集成测试的沙箱环境。
运行要求
通过 npx 从 npm 包在本地运行,需要 Node.js。需要环境变量 NIUBIZ_USER、NIUBIZ_PASSWORD 和 NIUBIZ_MERCHANT_ID,可选 NIUBIZ_ENV 设为 sandbox(默认)或 production。需要访问 Niubiz API 的网络连接。
安装前请注意
服务器持有 NIUBIZ_USER 和 NIUBIZ_PASSWORD 中的 Niubiz API 凭据,请勿放入共享配置。当 NIUBIZ_ENV 设为 production 时可授权真实银行卡支付并撤销授权,涉及真实资金,请先在沙箱测试。README 还宣传了付费的企业版和托管版。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Niubiz,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@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:

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

bash
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

来源:packages/payments/niubiz/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分