NF-e/NFS-e emission as a service — no cert installation, no XML assembly. Companies, webhooks, and CC-e (Carta de Correção) included. Full doc URL access for DANFE, PDFs, and XMLs.
NFe.io gives your agent 22 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.
create_nfse — Issue an NFS-e (service invoice). Returns the invoice with flowStatus, rpsNumber, and PDF URL once processed.get_nfse — Fetch a single NFS-e by id.cancel_nfse — Cancel an NFS-e. Some municipalities only allow cancellation within a short window (commonly 30 days).// 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", { /* ... */ });$ npm install @codespar/mcp-nfe-ioAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"nfe-io": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-nfe-io"
],
"env": {
"NFEIO_API_KEY": "<your_nfeio_api_key>"
}
}
}
}After restart, your agent can call any of the 22 tools below — try create_nfse first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
NFEIO_API_KEYAPI key for NFe.io (issuance + query)
NFEIO_COMPANY_IDDefault company ID (CNPJ or NFe.io company UUID) to use when not provided per-call
Each tool is independent — your agent loads only what it needs to reduce context and response time.
create_nfseget_nfsecancel_nfselist_nfseemail_nfsecreate_nfeget_nfecancel_nfeMCP is a protocol — any framework that speaks it can mount this server.