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

MCP server for Focus NFe — NFe, NFSe, NFCe emission and management

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

## Components

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

## Channel facts

- Registry: `npm`
- Package: `@codespar/mcp-focus-nfe`
- Version: `0.2.2`
- 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 42 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).
  - Tool/resource definitions use about 1403 tokens (~73/item across 19 items; 19 tools + 0 resources), lean.
  - 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-focus-nfe -- npx -y @codespar/mcp-focus-nfe
```

### Codex

```bash
codex mcp add codespar-mcp-focus-nfe -- npx -y @codespar/mcp-focus-nfe
```

### opencode

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

### OpenClaw

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

### Hermes

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

### Other

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

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

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

### 2026-08-02 (score 67, +47)

- [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] Stability: unverified → 0.23
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] License: unverified → pass
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-08-01 (score 20, +15)

- [security improvement] Malware scan: unverified → pass

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

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

### 2026-07-30 (score 15, −53)

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

### 2026-07-29 (score 68, +43)

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

### 2026-07-28 (score 25, −21)

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

## MCP tools (19)

### `create_nfe` (~150 tokens)

Create and emit an NFe (nota fiscal eletronica)

Input parameters:

- `cnpj_destinatario` (string): Recipient CNPJ
- `cnpj_emitente` (string, required): Emitter CNPJ
- `cpf_destinatario` (string): Recipient CPF
- `forma_pagamento` (string): Payment form code
- `items` (array, required): NFe items
- `natureza_operacao` (string, required): Operation nature (e.g. 'Venda de mercadoria')
- `nome_destinatario` (string): Recipient name
- `ref` (string, required): Unique reference ID for this NFe
- `tipo_documento` (number, required): Document type (0=entrada, 1=saida)

### `get_nfe` (~47 tokens)

Get NFe details and status by reference

Input parameters:

- `completa` (number): Set to 1 for full detail (default 0)
- `ref` (string, required): NFe reference ID

### `cancel_nfe` (~48 tokens)

Cancel an authorized NFe (within 24h of emission)

Input parameters:

- `justificativa` (string, required): Cancellation reason (15-255 chars)
- `ref` (string, required): NFe reference ID

### `get_nfe_pdf` (~33 tokens)

Get NFe PDF (DANFE) download URL

Input parameters:

- `ref` (string, required): NFe reference ID

### `send_correction_letter` (~70 tokens)

Send a correction letter (Carta de Correcao / CCe) for an authorized NFe

Input parameters:

- `correcao` (string, required): Correction text (15-1000 chars, cannot change tax values, parties, dates, or quantities)
- `ref` (string, required): NFe reference ID

### `create_nfse` (~97 tokens)

Create and emit an NFSe (nota fiscal de servico)

Input parameters:

- `cnpj` (string, required): CNPJ of emitter
- `inscricao_municipal` (string): Municipal registration
- `razao_social` (string): Company name
- `ref` (string, required): Unique reference ID for this NFSe
- `servico` (object, required): Service details
- `tomador` (object): Service taker (client) info

### `get_nfse` (~29 tokens)

Get NFSe details and status by reference

Input parameters:

- `ref` (string, required): NFSe reference ID

### `cancel_nfse` (~36 tokens)

Cancel an authorized NFSe

Input parameters:

- `justificativa` (string, required): Cancellation reason
- `ref` (string, required): NFSe reference ID

### `create_nfce` (~91 tokens)

Create and emit an NFCe (nota fiscal do consumidor eletronica)

Input parameters:

- `cnpj_emitente` (string, required): Emitter CNPJ
- `forma_pagamento` (array): Payment methods
- `items` (array, required): NFCe items (same structure as NFe items)
- `natureza_operacao` (string, required): Operation nature
- `ref` (string, required): Unique reference ID for this NFCe

### `get_nfce` (~29 tokens)

Get NFCe details and status by reference

Input parameters:

- `ref` (string, required): NFCe reference ID

### `cancel_nfce` (~41 tokens)

Cancel an authorized NFCe

Input parameters:

- `justificativa` (string, required): Cancellation reason (15-255 chars)
- `ref` (string, required): NFCe reference ID

### `create_cte` (~232 tokens)

Create and emit a CTe (conhecimento de transporte eletronico) for cargo transport

Input parameters:

- `cnpj_emitente` (string, required): Transport carrier CNPJ
- `destinatario` (object): Recipient info (cnpj/cpf, razao_social, endereco)
- `modal` (string, required): Transport modal (01=Rodoviario, 02=Aereo, 03=Aquaviario, 04=Ferroviario, 05=Dutoviario, 06=Multimodal)
- `natureza_operacao` (string): Operation nature (e.g. 'Prestacao de servico de transporte')
- `ref` (string, required): Unique reference ID for this CTe
- `remetente` (object): Sender info (cnpj/cpf, razao_social, endereco)
- `tipo_servico` (number): Service type (0=Normal, 1=Subcontratacao, 2=Redespacho, 3=Redespacho Intermediario, 4=Servico Vinculado Multimodal)
- `valor_total` (number): Total transport service value

### `get_cte` (~29 tokens)

Get CTe details and status by reference

Input parameters:

- `ref` (string, required): CTe reference ID

### `cancel_cte` (~41 tokens)

Cancel an authorized CTe

Input parameters:

- `justificativa` (string, required): Cancellation reason (15-255 chars)
- `ref` (string, required): CTe reference ID

### `create_mdfe` (~177 tokens)

Create and emit an MDFe (manifesto eletronico de documentos fiscais) for cargo transport manifest

Input parameters:

- `cnpj_emitente` (string, required): Emitter CNPJ
- `documentos_fiscais_vinculados` (array): Linked fiscal documents (NFe/CTe chaves) grouped per municipio de descarga
- `modal` (string, required): Transport modal (1=Rodoviario, 2=Aereo, 3=Aquaviario, 4=Ferroviario)
- `ref` (string, required): Unique reference ID for this MDFe
- `rodoviario` (object): Road transport info: placa, renavam, ciot, condutores
- `uf_fim` (string, required): State of unloading end (2 letters)
- `uf_inicio` (string, required): State of loading start (2 letters)

### `close_mdfe` (~71 tokens)

Close/finalize an MDFe (encerramento) after trip completion

Input parameters:

- `codigo_municipio_encerramento` (string): IBGE municipality code for closing
- `ref` (string, required): MDFe reference ID
- `uf_encerramento` (string): State of closing (2 letters)

### `register_webhook` (~66 tokens)

Register a webhook trigger (gatilho) that notifies your URL when fiscal document events occur

Input parameters:

- `cnpj` (string): CNPJ to filter events (optional, omit for all CNPJs on the token)
- `url` (string, required): HTTPS URL to receive event notifications

### `list_webhooks` (~19 tokens)

List all registered webhooks (gatilhos)

### `delete_webhook` (~30 tokens)

Delete a registered webhook by ID

Input parameters:

- `id` (string, required): Webhook (gatilho) ID

## Diagnostics

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

## Score history

- 2026-08-04: 69
- 2026-08-03: 68
- 2026-08-02: 67
- 2026-08-01: 20
- 2026-07-31: 5
- 2026-07-30: 15
- 2026-07-29: 68
- 2026-07-28: 25
- 2026-07-27: 46

## Links

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