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

MCP server for Matera — Brazilian core-banking BaaS over Pix, DICT, and Pix Automático

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

## Components

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

## Channel facts

- Registry: `npm`
- Package: `@codespar/mcp-matera`
- Version: `0.2.0-alpha.3`
- 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**: 83/100
  - No malware found by supply-chain analysis.
  - CVE check failed: a known medium-severity CVE affects hono 4.12.33, reached via @modelcontextprotocol/sdk > hono. A fixed version is available.
  - 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 42 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 78/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 2591 tokens (~117/item across 22 items; 22 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**: 99/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 98% 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-matera -- npx -y @codespar/mcp-matera
```

### Codex

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

### opencode

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

### OpenClaw

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

### Hermes

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

### Other

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

## 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, +4)

- [security regression] CVE-2026-69207 affects this package: medium
- [security regression] Known CVEs: partial → fail
- [functional improvement] Stability: unverified → 0.30

### 2026-08-02 (score 65, +25)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [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] Capabilities: pass → unverified
- [functional improvement] Schema quality: unverified → excellent
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional] Licence: MIT

### 2026-08-01 (score 40, +35)

- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] Tool coverage: unverified → 100
- [functional improvement] MCP protocol: unverified → pass

### 2026-07-31 (score 5, −19)

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

### 2026-07-30 (score 24, −21)

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

### 2026-07-27 (score 45)

First indexed and scored.

## MCP tools (22)

### `create_pix_charge_static` (~172 tokens)

Create a static Pix charge (reusable QR code tied to a merchant Pix key). Returns EMV copy-paste payload and QR code image. Use for points-of-sale or donations where the same QR is shown to many payers.

Input parameters:

- `amount` (number): Amount in BRL (decimal, e.g. 10.50). Omit for open-amount QR.
- `description` (string, required): Free-text description shown to payer
- `merchant_city` (string): Merchant city
- `merchant_name` (string): Merchant name as it will appear on the QR payload
- `pix_key` (string, required): Merchant Pix key (CPF, CNPJ, email, phone, or random UUID)
- `txid` (string): Optional merchant-side transaction identifier (26-35 alphanumerics)

### `create_pix_charge_dynamic` (~143 tokens)

Create a dynamic Pix charge (single-use QR with expiration). Returns txid, EMV copy-paste, and QR image. Preferred for e-commerce checkouts and invoices.

Input parameters:

- `amount` (number, required): Amount in BRL (decimal)
- `debtor` (object): Optional payer identification (BCB requires CPF/CNPJ to be pre-known for some flows)
- `description` (string, required): Description shown to payer
- `expiration` (number, required): QR lifetime in seconds (e.g. 3600 = 1 hour)
- `pix_key` (string, required): Merchant Pix key the charge settles to
- `txid` (string): Optional merchant-side transaction identifier

### `get_pix_charge` (~40 tokens)

Retrieve a Pix charge (static or dynamic) by txid.

Input parameters:

- `txid` (string, required): Matera txid returned by create_pix_charge_*

### `list_pix_charges` (~189 tokens)

List immediate Pix charges (BCB /cob) with date and status filters. Use for reconciling QR-driven receipts in a time window.

Input parameters:

- `cnpj` (string): Filter charges where the payer CNPJ equals this value
- `cpf` (string): Filter charges where the payer CPF equals this value
- `end` (string, required): ISO-8601 end timestamp (exclusive). BCB calls this `fim`.
- `limit` (number): Page size (BCB max 1000)
- `page` (number): Page number (starts at 0 per BCB convention)
- `start` (string, required): ISO-8601 start timestamp (inclusive). BCB calls this `inicio`.
- `status` (string): Filter by status (ATIVA, CONCLUIDA, REMOVIDA_PELO_USUARIO_RECEBEDOR, REMOVIDA_PELO_PSP)

### `update_pix_charge` (~132 tokens)

Update an immediate Pix charge (BCB PATCH /cob/{txid}). Use to revise amount/expiration before payment, or to mark a charge REMOVIDA_PELO_USUARIO_RECEBEDOR.

Input parameters:

- `amount` (number): New amount in BRL (only if charge still ATIVA)
- `description` (string): New description shown to payer
- `expiration` (number): New expiration in seconds from creation
- `status` (string): Set to REMOVIDA_PELO_USUARIO_RECEBEDOR to cancel an unpaid charge
- `txid` (string, required): txid of the existing charge

### `create_pix_charge_due` (~337 tokens)

Create a due-dated Pix charge (BCB /cobv — Pix com Vencimento). Boleto-style charge with due date, late fee (multa), interest (juros), and discount fields. Returns txid + QR payload.

Input parameters:

- `amount` (number, required): Original amount in BRL (valor.original)
- `debtor` (object, required): Payer (devedor). BCB requires CPF or CNPJ + name for cobv.
- `description` (string, required): Description shown to payer (solicitacaoPagador)
- `discount` (number): Discount value if paid before due date
- `discount_mode` (number): BCB desconto.modalidade (1..6)
- `due_date` (string, required): ISO-8601 date when the charge becomes due (data.dataDeVencimento)
- `fine` (number): Late fee, BRL or % depending on `fine_mode` (multa.valor or multa.modalidade)
- `fine_mode` (number): 1=fixed amount, 2=percent (BCB modalidade)
- `interest` (number): Interest after due date
- `interest_mode` (number): BCB juros.modalidade (1..7). 2=percent per day, 5=percent per month, etc.
- `pix_key` (string, required): Merchant Pix key the charge settles to
- `txid` (string): Optional merchant-side txid (26-35 alphanumerics)
- `validity_days_after_due` (number): How many calendar days after due date the QR remains payable (validadeAposVencimento). Default 30.

### `get_pix_charge_due` (~45 tokens)

Retrieve a due-dated Pix charge (BCB GET /cobv/{txid}).

Input parameters:

- `txid` (string, required): txid of the cobv charge

### `create_pix_payment` (~141 tokens)

Initiate an outbound Pix transfer (ordem de pagamento). Moves money from a debtor account held on Matera to any Pix key in BR. Returns endToEndId once the BCB SPI confirms.

Input parameters:

- `amount` (number, required): Amount in BRL (decimal)
- `creditor_pix_key` (string, required): Destination Pix key (CPF/CNPJ/email/phone/random)
- `debtor_account` (object, required): Source account held on Matera (ispb, branch, account, account type)
- `description` (string): Message shown to the recipient (optional)
- `idempotency_key` (string): Merchant-side unique id to prevent double-send on retry

### `get_pix_payment` (~51 tokens)

Retrieve an outbound Pix payment by endToEndId.

Input parameters:

- `end_to_end_id` (string, required): 32-char BCB endToEndId (E<ispb><yyyyMMddHHmm><random>)

### `refund_pix_payment` (~88 tokens)

Refund (devolução) a Pix payment. Supports full or partial amount. Use reason codes per BCB MED catalog.

Input parameters:

- `amount` (number, required): Refund amount in BRL. Must be <= original.
- `end_to_end_id` (string, required): endToEndId of the payment to refund
- `reason` (string, required): Reason for refund (BCB MED code or free text)

### `list_pix_payments` (~101 tokens)

List outbound Pix payments with optional filters. Useful for reconciliation and agent-driven audit.

Input parameters:

- `end` (string): ISO-8601 end timestamp (exclusive)
- `limit` (number): Page size
- `page` (number): Page number (starts at 1)
- `start` (string): ISO-8601 start timestamp (inclusive)
- `status` (string): Filter by status (e.g. ACSC, RJCT, PDNG)

### `list_pix_received` (~143 tokens)

List inbound Pix (Pix recebidos) credited to merchant accounts in a date range. Mirrors BCB GET /pix. Filter by txid to find the receipt that closed a specific cob.

Input parameters:

- `cnpj` (string): Filter by payer CNPJ
- `cpf` (string): Filter by payer CPF
- `end` (string, required): ISO-8601 end timestamp (exclusive)
- `limit` (number): Page size
- `page` (number): Page number (BCB starts at 0)
- `start` (string, required): ISO-8601 start timestamp (inclusive)
- `txid` (string): Only return Pix receipts that closed this txid

### `resolve_pix_key` (~78 tokens)

Resolve a Pix DICT key to the account holder's identity and ISPB/branch/account. Use before sending large transfers to verify the counterparty. Note: DICT queries are rate-limited and logged by BCB.

Input parameters:

- `key` (string, required): Pix key to resolve (CPF, CNPJ, email, phone, or random UUID)

### `list_dict_keys` (~40 tokens)

List DICT keys registered to the merchant's accounts on Matera.

Input parameters:

- `account` (string): Optional filter: return only keys for this account number

### `register_dict_key` (~121 tokens)

Register (claim) a DICT key for a merchant account on Matera. For email/phone keys this triggers BCB's confirmation flow; for CPF/CNPJ/random it claims immediately. Subject to BCB DICT rate limits and ownership rules (max 5 keys per CPF, 20 per CNPJ).

Input parameters:

- `account` (object, required): Matera-managed account that will own the key
- `key_type` (string, required): Type of key to register
- `key_value` (string): Value (omit for RANDOM — Matera will generate the UUID)

### `delete_dict_key` (~74 tokens)

Delete a DICT key the merchant owns. After delete, the key is held in BCB's quarentena window before another holder can claim it.

Input parameters:

- `key` (string, required): Pix key value to delete
- `reason` (string): Optional reason (BCB MotivoExclusao). Default: USER_REQUESTED.

### `create_pix_automatico` (~162 tokens)

Register a Pix Automático recurrence (BCB 2025 recurring Pix product, /rec). The payer authorizes the merchant to pull recurring amounts on a schedule. Matera is one of the few providers live with this.

Input parameters:

- `amount` (number, required): Amount per charge in BRL (fixed schedule)
- `description` (string, required): Description shown to the payer on the authorization screen
- `end_date` (string): Optional ISO-8601 date to stop the recurrence
- `first_charge_date` (string, required): ISO-8601 date of the first charge
- `frequency` (string, required): Recurrence frequency
- `merchant_pix_key` (string, required): Merchant Pix key receiving the recurring payments
- `payer` (object, required): Payer identity + bank

### `get_pix_automatico` (~70 tokens)

Retrieve a Pix Automático recurrence by idRec. Returns current status (CRIADA, APROVADA, REJEITADA, CANCELADA), schedule, and last charge attempt.

Input parameters:

- `id_rec` (string, required): Recurrence id (idRec) returned by create_pix_automatico

### `cancel_pix_automatico` (~64 tokens)

Cancel an active Pix Automático recurrence. Future charges stop after BCB confirms the cancellation. Past charges are unaffected.

Input parameters:

- `id_rec` (string, required): Recurrence id (idRec) to cancel
- `reason` (string): Optional reason recorded on the cancellation

### `get_account_balance` (~71 tokens)

Get the current balance of a Matera-managed account. Returns available, blocked, and total balance in BRL.

Input parameters:

- `account` (string, required): Account number
- `account_type` (string): ISO 20022 account type. Defaults to CACC.
- `branch` (string, required): Branch (agência)

### `get_account_statement` (~137 tokens)

Get the statement (extrato) of a Matera-managed account in a date range. Returns one entry per credit/debit with counterparty, endToEndId (when applicable), and running balance.

Input parameters:

- `account` (string, required): Account number
- `account_type` (string): ISO 20022 account type. Defaults to CACC.
- `branch` (string, required): Branch (agência)
- `end` (string, required): ISO-8601 end date (exclusive)
- `limit` (number): Page size
- `page` (number): Page number
- `start` (string, required): ISO-8601 start date (inclusive)

### `internal_transfer` (~125 tokens)

Book a transfer between two accounts both held on Matera (TED-interno / transferência interna). Settles instantly without touching SPI/Pix rails — no endToEndId, no DICT lookup. Use for moving funds across a fintech's own customer accounts.

Input parameters:

- `amount` (number, required): Amount in BRL (decimal)
- `creditor_account` (object, required)
- `debtor_account` (object, required)
- `description` (string): Free-text description recorded on both ledger entries
- `idempotency_key` (string): Merchant-side unique id to prevent double-debit on retry

## Diagnostics

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

## Score history

- 2026-08-04: 69
- 2026-08-03: 65
- 2026-08-02: 65
- 2026-08-01: 40
- 2026-07-31: 5
- 2026-07-30: 24
- 2026-07-28: 45
- 2026-07-27: 45

## Links

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