Skip to main content
MCP server CX Codex

mcp-nuvem-fiscal — Claude Code MCP server: Brazilian fiscal documents

An MCP server that connects your agent to Nuvem Fiscal for issuing NF-e, NFS-e, NFC-e, CT-e and MDF-e, plus CNPJ and CEP lookups.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-nuvem-fiscal -e NUVEM_FISCAL_CLIENT_SECRET=<NUVEM_FISCAL_CLIENT_SECRET> -- npx -y @codespar/mcp-nuvem-fiscal
Open on GitHub

What mcp-nuvem-fiscal does

The server talks to Nuvem Fiscal over OAuth2 client credentials and refreshes the token on its own. Your agent gets 24 tools, among them create_nfe, get_nfe, cancel_nfe, create_nfse, get_nfse, cancel_nfse, create_nfce, cancel_nfce, create_cte, get_cte, cancel_cte, create_mdfe, get_mdfe, cancel_mdfe, close_mdfe, consult_cnpj, consult_cep, register_company, list_empresas, upload_certificate, get_nfe_events, get_nfe_batch, send_correction_letter_nfe and send_correction_letter_cte. That covers issuing a document, cancelling it, filing a correction letter, or uploading an A1 certificate as base64 .pfx.

Both NUVEM_FISCAL_CLIENT_ID and NUVEM_FISCAL_CLIENT_SECRET are required. No credentials, no auth — you get them from the Nuvem Fiscal Developer Portal after registering an application. There is also MCP_DEMO=true (or the --demo flag): the server skips the API entirely and serves fixtures, which works for offline walkthroughs and integration smoke tests.

Nuvem Fiscal offers a homologation environment (ambiente=2), so you can emit documents for testing without touching the real tax system. The package ships under the MIT license.

What it helps with

  • issue an NF-e from order data
  • cancel an NFS-e that was already issued
  • resolve a street address from a CEP
  • look up a company by its CNPJ
  • upload an A1 certificate for a company on the account

Example prompts for the agent

  • Issue an NF-e for this order and return the document ID
  • Look up the address for CEP 01310-100
  • Cancel the NFS-e with this ID and show me the status

How to install mcp-nuvem-fiscal

Platform CLI

claude mcp add mcp-nuvem-fiscal -e NUVEM_FISCAL_CLIENT_SECRET=<NUVEM_FISCAL_CLIENT_SECRET> -- npx -y @codespar/mcp-nuvem-fiscal

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-nuvem-fiscal

How do I install mcp-nuvem-fiscal in Claude Code?

Run claude mcp add mcp-nuvem-fiscal -e NUVEM_FISCAL_CLIENT_SECRET=<NUVEM_FISCAL_CLIENT_SECRET> -- npx -y @codespar/mcp-nuvem-fiscal. Alternatively use claude mcp add --env NUVEM_FISCAL_CLIENT_SECRET=<NUVEM_FISCAL_CLIENT_SECRET> --transport stdio nuvem-fiscal -- npx -y @codespar/mcp-nuvem-fiscal.

What does mcp-nuvem-fiscal do?

It exposes Nuvem Fiscal tools to your agent: issuing and cancelling NF-e, NFS-e, NFC-e, CT-e and MDF-e documents, plus CNPJ and CEP lookups.

Can I test the server without hitting the API?

Yes. With MCP_DEMO=true or the --demo flag the server runs on fixtures. In that mode create_nfse returns a distinct fixture ID per call and echoes back the servico.codigo, valor and servico.descricao you sent.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set40

mcp-pix-bcb An MCP server that lets the agent run Pix BCB operations: charges, refunds, DICT keys and webhooks against your bank's API. CX Codex +1 ★ 274repo stars mcp-payway Gives an AI agent access to the Payway gateway: tokenize a card, charge it, capture or refund. Built for teams wiring payments into an Argentine merchant setup. CX Codex +1 ★ 274repo stars mcp-pagbrasil Wires three PagBrasil tools into your agent: create an order, check its status, issue a refund. Useful when your store sells into Brazil and takes Pix or boleto. CX Codex +1 ★ 274repo stars mcp-open-finance Connects a coding agent to Open Finance Brasil: accounts, transactions, consents, cards, loans and investments. Useful when your code talks to Brazilian banking APIs. CX Codex +1 ★ 274repo stars mcp-niubiz An MCP server for Peru's Niubiz acquirer. It opens a checkout session, authorizes the payment and reverses it the same day. CX Codex +1 ★ 274repo stars mcp-moonpay Hands the agent MoonPay tools: quote and place buy or sell orders, check KYC status, and sign payment widget links. CX Codex +1 ★ 274repo stars mcp-mercado-libre Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat. CX Codex +1 ★ 274repo stars mcp-matera An MCP server for Matera, Brazil's core-banking infrastructure: issue Pix charges, resolve DICT keys, move money. The package is deprecated because api.matera.com no longer resolves. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor