Skip to main content
N

NFe.io

@codespar/mcp-nfe-io Β· v0.2.2

πŸ‡§πŸ‡· BrazilFiscalAuth Β· API Keylive22 tools2 env vars

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.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • Hosted calls with a test key are not available: the provider has no test environment.
Package
@codespar/mcp-nfe-io
Version
0.2.2
npm dist-tag
latest
Category
Fiscal
Auth
API Key
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables2 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 22 tools. Try create_nfse first.
terminal
# Claude Code claude mcp add nfe-io -e NFEIO_API_KEY=… -e NFEIO_COMPANY_ID=… -- npx -y @codespar/mcp-nfe-io@0.2.2 # then: /mcp to confirm the server is connected
Environment variables2 variables
NFEIO_API_KEYAPI key for NFe.io (issuance + query)requiredsecret
NFEIO_COMPANY_IDDefault company ID (CNPJ or NFe.io company UUID) to use when not provided per-calloptional

Names read from the package code (@codespar/mcp-nfe-io@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_nfse

"Issue an NFS-e"

tools/callcreate_nfseresult returned

Tools

What your agent can call.

22 tools, as the package's tools/list returns them.

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).

list_nfse

List NFS-e with pagination + optional flowStatus filter.

email_nfse

Email the PDF of an already-issued NFS-e to a recipient.

create_nfe

Issue an NF-e (product invoice). Returns the invoice with status, access key (chave), and DANFE URL once authorized.

get_nfe

Fetch a single NF-e by id.

cancel_nfe

Cancel an NF-e. Must include a justification of at least 15 characters.

list_nfe

List NF-e with pagination + optional status filter.

get_nfe_pdf

Return the DANFE PDF URL for an issued NF-e. PDFs are generated asynchronously; call again if not ready.

consult_cnpj

Look up Brazilian company data (razΓ£o social, status, address) by CNPJ.

consult_cep

Resolve a Brazilian postal code (CEP) to a full address.

Names and descriptions come from the package's tools/list (@codespar/mcp-nfe-io@0.2.2). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

codespar_discover lists this server's tools, but a project with a test key cannot call them: the provider has no test environment, so the runtime refuses test-mode calls.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the NFe.io MCP server?

Run npx -y @codespar/mcp-nfe-io@0.2.2 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with NFe.io?

NFe.io exposes 22 tools for fiscal. Your agent calls them directly; the full list is above.

How does NFe.io authenticate, and how are credentials stored?

NFe.io uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does NFe.io handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.2, the version whose tools are listed here; your agent keeps running it until you change the version.

Is NFe.io open source? How do I report a bug?

Yes. NFe.io is MIT-licensed and published on npm as @codespar/mcp-nfe-io, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
NFe.io β€” MCP server Β· 22 tools | CodeSpar