Niubiz

Finance and commerceSecurity

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

Your AI app calls the Niubiz MCP server, which does the finance and commerce and security work and sends the result back to the chat.

About Niubiz

Niubiz is a community MCP server from codespar, filed in our directory under finance and commerce and security. MCP server for Niubiz, Peru card acquirer: security token, session, authorize, reverse.

Niubiz runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-niubiz@0.1.0 and talks to it over standard input and output. It needs NIUBIZ_USER, NIUBIZ_PASSWORD and NIUBIZ_MERCHANT_ID set before Niubiz starts.

Niubiz is listed in the official MCP registry as io.github.codespar/mcp-niubiz, version 0.1.0.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-niubiz
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-niubiz

How to set up Niubiz

  1. Install Node.js on the machine that runs your AI app, because Niubiz starts with npx and downloads its package on first run.
  2. Create NIUBIZ_USER, NIUBIZ_PASSWORD and NIUBIZ_MERCHANT_ID for Niubiz in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Niubiz to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Niubiz tools to confirm the connection.
  5. Run one read-only task with Niubiz first, and keep your app asking before each tool call until the results look right.

Niubiz compared with similar servers

  • Nubank by codespar has fewer GitHub stars than Niubiz (278 against 278); both are community servers, and both run locally.
  • Nfe Io by codespar has fewer GitHub stars than Niubiz (278 against 278); both are community servers, and both run locally.
  • Nupay by codespar has fewer GitHub stars than Niubiz (278 against 278); both are community servers, and both run locally.

Before you connect Niubiz

  • Give Niubiz its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Niubiz tool call until you trust what it does with them.
  • Treat text that Niubiz fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Niubiz on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Niubiz

How marketing and sales teams put Niubiz to work, by company size. Pick the size closest to yours and start Niubiz on one use case.

Small business

  • A small business can ask Niubiz which products and customers drive margin, then plan promotions around them.
  • Owners can use Niubiz to check refunds, failed payments and churn reasons without opening three dashboards.
  • A small business can use Niubiz to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Niubiz runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Niubiz to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Niubiz to check spend against budget each week and move money to what's working.
  • Marketing ops can use Niubiz to review what each connected app can access and remove keys nobody uses.
  • Start Niubiz on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Niubiz read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Niubiz to answer revenue questions by channel and region with figures finance signs off on.
  • Enterprises can run Niubiz in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Niubiz is a community server, so have security review the code and pin a version before Niubiz touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Niubiz README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

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)

Tool Endpoint What it does
get_security_token POST /api.security/v1/security Bearer token (cached 20 min; other tools auto-fetch)
create_session_token POST /api.ecommerce/v2/ecommerce/token/session/{merchantId} Checkout session with amount + antifraud data
authorize_transaction POST /api.authorization/v3/authorization/ecommerce/{merchantId} Authorize with the checkout's transactionToken
reverse_transaction POST /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

Variable Required Description
NIUBIZ_USER yes API user
NIUBIZ_PASSWORD yes API password
NIUBIZ_MERCHANT_ID yes Merchant id (código de comercio)
NIUBIZ_ENV no sandbox (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

Questions about Niubiz

What is the Niubiz MCP server?

MCP server for Niubiz, Peru card acquirer: security token, session, authorize, reverse. Niubiz is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Niubiz MCP server?

Add Niubiz to your AI app's MCP config with the command npx -y @codespar/mcp-niubiz@0.1.0. In Claude Code, run claude mcp add --transport stdio codespar-niubiz -- npx -y @codespar/mcp-niubiz@0.1.0. To run Niubiz this way you need Node.js installed.

Does Niubiz need an API key?

Yes. Niubiz expects NIUBIZ_USER, NIUBIZ_PASSWORD and NIUBIZ_MERCHANT_ID to be set. Create the key for Niubiz in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Niubiz an official MCP server?

No. Niubiz is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Niubiz access to company data.

What license is Niubiz under?

Niubiz is released under the MIT license, according to its GitHub repository. The license covers the code of Niubiz; the service it connects to has its own terms.