Skip to main content
NF

NFe.io

v0.2.2API Key

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.

24 tools1 env vars🇧🇷 Brazilstable on npm

What your agent can do

NFe.io gives your agent 24 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_nfeCreate a NF-e (nota fiscal eletrônica)
  • get_nfeGet NF-e details by ID
  • cancel_nfeCancel a NF-e
Example call
// 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_nfe", { /* ... */ });

Install

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

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

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

After restart, your agent can call any of the 24 tools below — try create_nfe first.

Environment variables · 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

NFE_IO_API_KEY
requiredsecret

API key for NFe.io

Available tools · 24

Each tool is independent — your agent loads only what it needs to reduce context and response time.

WRITEcreate_nfe
Create a NF-e (nota fiscal eletrônica)
READget_nfe
Get NF-e details by ID
DELETEcancel_nfe
Cancel a NF-e
WRITEcreate_nfse
Create a NFS-e (nota fiscal de serviço eletrônica)
READget_nfse
Get NFS-e details by ID
DELETEcancel_nfse
Cancel a NFS-e
WRITEcreate_nfce
Create a NFC-e (nota fiscal de consumidor eletrônica)
READconsult_cnpj
Consult company data by CNPJ number

Compatible frameworks

MCP is a protocol — any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-nfe-io` and add the config block above to your MCP client — Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
NFe.io — MCP server · 24 tools | CodeSpar