# io.github.codespar/mcp-niubiz (npm · @codespar/mcp-niubiz)

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

- Trust score: 69/100 (medium)
- Change this week: +43
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-04

## Components

- npm · `@codespar/mcp-niubiz`: 69/100 (this document), [markdown](https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz.md), [page](https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz)

## Channel facts

- Registry: `npm`
- Package: `@codespar/mcp-niubiz`
- Version: `0.1.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-04.

- **Supply Chain Security**: 86/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 31 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 71/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 504 tokens (~126/item across 4 items; 4 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 30/100
  - Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add codespar-mcp-niubiz -- npx -y @codespar/mcp-niubiz
```

### Codex

```bash
codex mcp add codespar-mcp-niubiz -- npx -y @codespar/mcp-niubiz
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-niubiz": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-niubiz"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add codespar-mcp-niubiz --command npx --arg -y --arg @codespar/mcp-niubiz
```

### Hermes

```yaml
mcp_servers:
  codespar-mcp-niubiz:
    command: "npx"
    args: ["-y", "@codespar/mcp-niubiz"]
```

### Other

```json
{
  "mcpServers": {
    "codespar-mcp-niubiz": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-niubiz"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-04 (score 69, +1)

No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-08-03 (score 68, +4)

- [functional improvement] Stability: unverified → 0.27

### 2026-08-02 (score 64, +7)

- [security regression] Install scripts: pass → unverified
- [security regression] Malware scan: pass → unverified
- [security regression] Provenance: fail → unverified
- [security improvement] Known CVEs: unverified → partial
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] License: pass → unverified
- [functional regression] Capabilities: pass → unverified
- [functional regression] Maintenance: pass → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] Dependency health: unverified → partial
- [functional] Licence: MIT

### 2026-08-01 (score 57, +5)

- [security regression] Known CVEs: partial → unverified
- [security improvement] Malware scan: unverified → pass
- [functional regression] Dependency health: partial → unverified

### 2026-07-31 (score 52, +46)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 6, −72)

- [security regression] Known CVEs: partial → unverified
- [security regression] Malware scan: pass → unverified
- [security regression] Provenance: fail → unverified
- [security regression] Install scripts: pass → unverified
- [functional regression] License: pass → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Dependency health: partial → unverified
- [functional regression] Maintenance: pass → unverified
- [functional] Licence: MIT

### 2026-07-29 (score 78, +52)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] License: unverified → pass
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-07-28 (score 26, −20)

- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] Dependency health: unverified → partial
- [functional] First check of Schema quality: unverified

## MCP tools (4)

### `get_security_token` (~65 tokens)

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.

Input parameters:

- `force` (boolean): Force a fresh token even if one is cached

### `create_session_token` (~132 tokens)

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.

Input parameters:

- `amount` (number, required): Purchase amount (e.g. 100.00)
- `channel` (string): Sales channel: web (default) | mobile
- `clientIp` (string, required): Customer IP address (antifraud)
- `merchantDefineData` (object): Optional MDD antifraud fields (MDD4 email, MDD21 frequent-flyer, etc.)

### `authorize_transaction` (~168 tokens)

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.

Input parameters:

- `amount` (number, required): Amount to authorize (must match the session)
- `captureType` (string): manual | automatic (default automatic)
- `channel` (string): Sales channel: web (default) | mobile
- `countable` (boolean): true = sale (capture), false = preauth only
- `currency` (string): PEN (default) or USD
- `purchaseNumber` (string, required): Your unique purchase number (numeric string, max 12 digits)
- `transactionToken` (string, required): tokenId returned by the Niubiz checkout form

### `reverse_transaction` (~72 tokens)

Reverse (void) an authorization (POST /api.authorization/v3/reverse/ecommerce/{merchantId}). Same-day undo of an authorized transaction by transactionId or purchaseNumber.

Input parameters:

- `purchaseNumber` (string): Your purchase number (alternative reference)
- `transactionId` (string): Niubiz transaction id to reverse

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz#diagnostics

## Score history

- 2026-08-04: 69
- 2026-08-03: 68
- 2026-08-02: 64
- 2026-08-01: 57
- 2026-07-31: 52
- 2026-07-30: 6
- 2026-07-29: 78
- 2026-07-28: 26
- 2026-07-27: 46

## Links

- npm package: https://www.npmjs.com/package/@codespar/mcp-niubiz
- Socket report: https://socket.dev/npm/package/@codespar/mcp-niubiz
- Repository: https://github.com/codespar/mcp-dev-latam
- Changelog RSS feed: https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz/changelog.json
- HTML version of this page: https://verifymcp.io/servers/codespar-mcp-niubiz/codespar-mcp-niubiz
