Nuvem Fiscal

Finance and commerce

MCP server for Nuvem Fiscal, NF-e, NFS-e, NFC-e, CNPJ, CEP.

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

About Nuvem Fiscal

Nuvem Fiscal is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Nuvem Fiscal, NF-e, NFS-e, NFC-e, CNPJ, CEP.

Nuvem Fiscal runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-nuvem-fiscal@0.3.1 and talks to it over standard input and output. It needs NUVEM_FISCAL_CLIENT_SECRET set before Nuvem Fiscal starts.

Nuvem Fiscal is listed in the official MCP registry as io.github.codespar/mcp-nuvem-fiscal, version 0.3.1.

At a glance

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

How to set up Nuvem Fiscal

  1. Install Node.js on the machine that runs your AI app, because Nuvem Fiscal starts with npx and downloads its package on first run.
  2. Create NUVEM_FISCAL_CLIENT_SECRET for Nuvem Fiscal in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Nuvem Fiscal 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 Nuvem Fiscal tools to confirm the connection.
  5. Run one read-only task with Nuvem Fiscal first, and keep your app asking before each tool call until the results look right.

Nuvem Fiscal compared with similar servers

  • Omie by codespar has fewer GitHub stars than Nuvem Fiscal (278 against 278); both are community servers, and both run locally.
  • Nupay by codespar has fewer GitHub stars than Nuvem Fiscal (278 against 278); both are community servers, and both run locally.
  • Onfido by codespar has fewer GitHub stars than Nuvem Fiscal (278 against 278); both are community servers, and both run locally.

Before you connect Nuvem Fiscal

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

Marketing use cases for Nuvem Fiscal

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

Small business

  • A small business can ask Nuvem Fiscal which products and customers drive margin, then plan promotions around them.
  • Owners can use Nuvem Fiscal to check refunds, failed payments and churn reasons without opening three dashboards.
  • Nuvem Fiscal 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 Nuvem Fiscal to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Nuvem Fiscal to check spend against budget each week and move money to what's working.
  • Start Nuvem Fiscal on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Nuvem Fiscal read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Nuvem Fiscal to answer revenue questions by channel and region with figures finance signs off on.
  • Nuvem Fiscal is a community server, so have security review the code and pin a version before Nuvem Fiscal 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

Nuvem Fiscal 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-nuvem-fiscal

MCP server for Nuvem Fiscal, NFe, NFSe, NFCe fiscal document emission and CNPJ/CEP lookup

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "nuvem-fiscal": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nuvem-fiscal"],
      "env": {
        "NUVEM_FISCAL_CLIENT_ID": "your-client-id",
        "NUVEM_FISCAL_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}
Claude Code
claude mcp add nuvem-fiscal -- npx @codespar/mcp-nuvem-fiscal
Cursor / VS Code

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

{
  "servers": {
    "nuvem-fiscal": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nuvem-fiscal"],
      "env": {
        "NUVEM_FISCAL_CLIENT_ID": "your-client-id",
        "NUVEM_FISCAL_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Tools (24)

Tool Purpose
create_nfe Create a NF-e (nota fiscal eletrônica)
get_nfe Get NF-e details by ID
cancel_nfe Cancel a NF-e
create_nfse Create a NFS-e (nota fiscal de serviço eletrônica)
get_nfse Get NFS-e details by ID
cancel_nfse Cancel a NFS-e
create_nfce Create a NFC-e (nota fiscal de consumidor eletrônica)
consult_cnpj Consult company data by CNPJ number
consult_cep Consult address by CEP (postal code)
register_company Register a company in Nuvem Fiscal
create_cte Create a CT-e (conhecimento de transporte eletrônico)
get_cte Get CT-e details by ID
cancel_cte Cancel a CT-e
create_mdfe Create a MDF-e (manifesto de documentos fiscais eletrônico)
get_nfe_events Get events for a NF-e (cancellations, corrections, etc.)
cancel_nfce Cancel a NFC-e (nota fiscal de consumidor eletrônica)
send_correction_letter_nfe Send a carta de correção eletrônica (CCe) for a NF-e.
send_correction_letter_cte Send a carta de correção for a CT-e.
get_nfe_batch Get NF-e batch (lote) status by batch ID.
get_mdfe Get MDF-e details by ID
cancel_mdfe Cancel a MDF-e (manifesto)
close_mdfe Close (encerrar) a MDF-e at route end.
list_empresas List all companies (empresas) registered in the account.
upload_certificate Upload or update an A1 digital certificate (.pfx, base64) for an empresa.

Authentication

Nuvem Fiscal uses OAuth2 client credentials. The server automatically manages token refresh.

Sandbox / Testing

Nuvem Fiscal supports a homologation environment (ambiente=2) for testing fiscal document emission without affecting real tax systems.

Demo Mode

Set MCP_DEMO=true (or pass --demo) to run the server without contacting the Nuvem Fiscal API. In MCP_DEMO=true mode, create_nfse issues distinct fixture IDs per call within one process and echoes input servico.codigo, valor, and servico.descricao into the response. pdf_url is templated from the fixture id. Other demo tools return static fixtures and are useful for offline walkthroughs and integration smoke tests.

Get your credentials
  1. Go to Nuvem Fiscal Developer Portal
  2. Create an account
  3. Register an application to get OAuth2 credentials
  4. Set the environment variables

Environment Variables

Variable Required Description
NUVEM_FISCAL_CLIENT_ID Yes OAuth2 client ID
NUVEM_FISCAL_CLIENT_SECRET Yes OAuth2 client secret

Roadmap

v0.2 (planned)
  • create_cte, Create a CT-e (electronic transport document)
  • get_cte, Get CT-e details by ID
  • cancel_cte, Cancel an issued CT-e
  • create_mdfe, Create an MDF-e (electronic freight manifest)
  • get_nfe_events, Get events for an NF-e (cancellation, correction, etc.)
v0.3 (planned)
  • batch_nfe, Create multiple NF-e in a single request
  • get_nfe_danfe, Get DANFE PDF for an NF-e
  • manifest_recipient, Manifest recipient awareness of an NF-e

Want to contribute? Open a PR or request a tool.

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.

License

MIT

Questions about Nuvem Fiscal

What is the Nuvem Fiscal MCP server?

MCP server for Nuvem Fiscal, NF-e, NFS-e, NFC-e, CNPJ, CEP. Nuvem Fiscal 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 Nuvem Fiscal MCP server?

Add Nuvem Fiscal to your AI app's MCP config with the command npx -y @codespar/mcp-nuvem-fiscal@0.3.1. In Claude Code, run claude mcp add --transport stdio codespar-nuvem-fiscal -- npx -y @codespar/mcp-nuvem-fiscal@0.3.1. To run Nuvem Fiscal this way you need Node.js installed.

Does Nuvem Fiscal need an API key?

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

Is Nuvem Fiscal an official MCP server?

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

What license is Nuvem Fiscal under?

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