Skip to main content
NF

NFe.io

v0.2.1API Key

Emisión de NF-e/NFS-e como servicio — sin instalación de certificado, sin armado de XML. Empresas, webhooks y CC-e (Carta de Correção) incluidos. Acceso a la URL completa del doc para DANFE, PDFs y XMLs.

22 herramientas2 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

NFe.io le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_nfseIssue an NFS-e (service invoice). Returns the invoice with flowStatus, rpsNumber, and PDF URL once processed.
  • get_nfseFetch a single NFS-e by id.
  • cancel_nfseCancel an NFS-e. Some municipalities only allow cancellation within a short window (commonly 30 days).
Ejemplo de llamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_nfse", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-nfe-io

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "nfe-io": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-nfe-io"
      ],
      "env": {
        "NFEIO_API_KEY": "<your_nfeio_api_key>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá create_nfse primero.

Variables de entorno · 2

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

NFEIO_API_KEY
obligatoriosecret

API key for NFe.io (issuance + query)

NFEIO_COMPANY_ID
opcional

Default company ID (CNPJ or NFe.io company UUID) to use when not provided per-call

Herramientas disponibles · 22

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEcreate_nfse
Issue an NFS-e (service invoice). Returns the invoice with flowStatus, rpsNumber, and PDF URL once processed.
READget_nfse
Fetch a single NFS-e by id.
DELETEcancel_nfse
Cancel an NFS-e. Some municipalities only allow cancellation within a short window (commonly 30 days).
READlist_nfse
List NFS-e with pagination + optional flowStatus filter.
READemail_nfse
Email the PDF of an already-issued NFS-e to a recipient.
WRITEcreate_nfe
Issue an NF-e (product invoice). Returns the invoice with status, access key (chave), and DANFE URL once authorized.
READget_nfe
Fetch a single NF-e by id.
DELETEcancel_nfe
Cancel an NF-e. Must include a justification of at least 15 characters.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-nfe-io` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
NFe.io — MCP server · 22 tools | CodeSpar