Nfe Io

Finance and commerce

MCP server for NFe.io, NF-e, NFS-e, CNPJ, CEP.

Your AI app calls the Nfe Io MCP server, which does the finance and commerce work and sends the result back to the chat.

About Nfe Io

Nfe Io is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for NFe.io, NF-e, NFS-e, CNPJ, CEP.

Nfe Io runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-nfe-io@0.2.2 and talks to it over standard input and output. It needs NFEIO_API_KEY set before Nfe Io starts.

Nfe Io is listed in the official MCP registry as io.github.codespar/mcp-nfe-io, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-nfe-io
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-nfe-io

How to set up Nfe Io

  1. Install Node.js on the machine that runs your AI app, because Nfe Io starts with npx and downloads its package on first run.
  2. Create NFEIO_API_KEY for Nfe Io in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Nfe Io to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Nfe Io tools to confirm the connection.
  5. Run one read-only task with Nfe Io first, and keep your app asking before each tool call until the results look right.

Nfe Io compared with similar servers

  • Niubiz by codespar has fewer GitHub stars than Nfe Io (278 against 278); both are community servers, and both run locally.
  • Nequi by codespar has fewer GitHub stars than Nfe Io (278 against 278); both are community servers, and both run locally.
  • Nubank by codespar has fewer GitHub stars than Nfe Io (278 against 278); both are community servers, and both run locally.

Before you connect Nfe Io

  • Give Nfe Io its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Nfe Io tool call until you trust what it does with them.
  • Treat text that Nfe Io fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Nfe Io on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Nfe Io

How marketing and sales teams put Nfe Io to work, by company size. Pick the size closest to yours and start Nfe Io on one use case.

Small business

  • A small business can ask Nfe Io which products and customers drive margin, then plan promotions around them.
  • Owners can use Nfe Io to check refunds, failed payments and churn reasons without opening three dashboards.
  • Nfe Io runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Nfe Io to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Nfe Io to check spend against budget each week and move money to what's working.
  • Start Nfe Io on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Nfe Io read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Nfe Io to answer revenue questions by channel and region with figures finance signs off on.
  • Nfe Io is a community server, so have security review the code and pin a version before Nfe Io touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Nfe Io README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-nfe-io

MCP server for NFe.io, NF-e / NFS-e fiscal document emission plus CNPJ and CEP lookups for Brazil.

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "nfe-io": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nfe-io"],
      "env": {
        "NFEIO_API_KEY": "your-api-key",
        "NFEIO_COMPANY_ID": "your-company-id-or-cnpj"
      }
    }
  }
}
Claude Code
claude mcp add nfe-io -- npx @codespar/mcp-nfe-io
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "nfe-io": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nfe-io"],
      "env": {
        "NFEIO_API_KEY": "your-api-key",
        "NFEIO_COMPANY_ID": "your-company-id-or-cnpj"
      }
    }
  }
}

Tools (22)

Tool Purpose
create_nfse Issue an NFS-e (service invoice).
get_nfse Fetch a single NFS-e by id.
cancel_nfse Cancel an NFS-e.
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).
get_nfe Fetch a single NF-e by id.
cancel_nfe Cancel an NF-e.
list_nfe List NF-e with pagination + optional status filter.
get_nfe_pdf Return the DANFE PDF URL for an issued NF-e.
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.
correct_nfe Issue a Carta de Correção (CC-e) for an authorized NF-e.
get_nfe_xml Return the authorized XML URL for an NF-e.
get_nfse_pdf Return the PDF URL for an issued NFS-e.
get_nfse_xml Return the XML URL for an issued NFS-e.
list_companies List companies registered on the NFe.io account.
get_company Fetch a single company by id or CNPJ.
create_company Provision a new company on NFe.io.
list_webhooks List webhook endpoints registered for a company (invoice event callbacks).
create_webhook Register a webhook endpoint.
delete_webhook Remove a webhook endpoint by id.

Environment

Variable Required Notes
NFEIO_API_KEY yes Issuance + query scopes. NFe.io supports splitting this into two keys; either is fine.
NFEIO_COMPANY_ID no Default company id (or CNPJ). Per-call company_id arguments override it.

Hosts

NFe.io segments its API across three hostnames. This server maps tools to the correct one automatically:

  • api.nfse.io, product invoices
  • api.nfe.io, service invoices + company management
  • nfe.api.nfe.io, lookups (CNPJ, CEP)

Demo mode

Pass --demo or set MCP_DEMO=true to return canned responses without hitting the network. Useful for documentation, screencasts, and CI.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Authentication

Set these environment variables before launching the server:

  • NFEIO_API_KEY (required, secret), API key for NFe.io (issuance + query)
  • NFEIO_COMPANY_ID, Default company ID (CNPJ or NFe.io company UUID) to use when not provided per-call

Issue credentials at the provider's developer portal: https://nfe.io/docs.

License

MIT

Questions about Nfe Io

What is the Nfe Io MCP server?

MCP server for NFe.io, NF-e, NFS-e, CNPJ, CEP. Nfe Io is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Nfe Io MCP server?

Add Nfe Io to your AI app's MCP config with the command npx -y @codespar/mcp-nfe-io@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-nfe-io -- npx -y @codespar/mcp-nfe-io@0.2.2. To run Nfe Io this way you need Node.js installed.

Does Nfe Io need an API key?

Yes. Nfe Io expects NFEIO_API_KEY to be set. Create the key for Nfe Io in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Nfe Io an official MCP server?

No. Nfe Io is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Nfe Io access to company data.

What license is Nfe Io under?

Nfe Io is released under the MIT license, according to its GitHub repository. The license covers the code of Nfe Io; the service it connects to has its own terms.