# Nota Fiscal [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/mcp-dir/notafiscal-mcp  
**GitHub Stars:** 2  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nota-fiscal

## Description
Issue and manage Brazilian service invoices (NFS-e) by chatting with your agent, platform-hosted, no

## Tools
Capabilities this server exposes over MCP:

- **notafiscal_empresas** — Lista as empresas (CNPJs) conectadas a este install e a situação de cada uma (company_id, razão social, município, validade do certificado, situacao_fiscal e pode_emitir). CHAME ANTES DE EMITIR: só empresa com pode_emitir=true (situacao_fiscal=Active) consegue emitir NFS-e; 'aviso' explica o bloqueio quando houver.
- **notafiscal_emitir_nfse** — Emite uma NFS-e (nota fiscal de serviço) para uma empresa conectada.
Cria um DOCUMENTO FISCAL REAL — confirme os dados antes de chamar.
- 'nfse': corpo da nota no schema da nfe.io (JSON string), com ao menos:
  cityServiceCode, description, servicesAmount, e borrower:{ federalTaxNumber, name, email?, address? }.
- 'external_id' (opcional): chave de idempotência — reuse a mesma para não duplicar a nota numa re-tentativa.
Retorna o id da nota e o status de processamento.
Se a resposta disser que a empresa NÃO está habilitada para emitir (município sem emissão homologada, cadastro em homologação), o problema não é o payload: não re-tente — confira notafiscal_empresas e oriente o usuário.

Bulk support: accepts external_ids for batched execution.
- **notafiscal_consultar_nfse** — Consulta o status/detalhe de uma NFS-e emitida, por invoice_id.

Bulk support: accepts invoice_ids for batched execution.
- **notafiscal_listar_nfse** — Lista as NFS-e emitidas por uma empresa (paginado).
- **notafiscal_baixar_nfse** — Retorna os links de PDF (DANFSe) e XML de uma NFS-e emitida.

Bulk support: accepts invoice_ids for batched execution.
- **notafiscal_cancelar_nfse** — Cancela uma NFS-e emitida (IRREVERSÍVEL, sujeito ao prazo de cancelamento do município). Confirme antes de chamar.

Bulk support: accepts invoice_ids for batched execution.
- **show_version** — Show the current MCP platform and adapter versions.
- **report_bug** — Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
- **connect** — Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
- **toolkit_info** — Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
- **marketplace** — The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.
- **authenticate** — MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "nota-fiscal": {
    "url": "https://api.mcp.ai/p_notafiscal"
  }
}
```

## Documentation

## What Nota Fiscal MCP server does

The Nota Fiscal MCP server exposes Brazilian service-invoice workflows (NFS-e) through MCP. It is a hosted service rather than a locally run invoice processor. A connected business is identified by its CNPJ and uses an A1 digital certificate. Agents can work with more than one connected company and inspect each company’s registration details, municipality, and certificate validity.

The service supports both read and write operations. An agent can create an NFS-e, check an existing invoice, browse invoices for a company, obtain document links, and request cancellation. Cancellation is irreversible and remains subject to the municipality’s cancellation deadline, so it should be treated as a consequential operation.

## How it works

Clients connect over MCP over HTTP using the hosted endpoint `https://api.mcp.ai/p_notafiscal`. Requests are made through the MCP tools and can be driven by natural-language prompts, such as asking the agent to issue an invoice for a customer CNPJ or retrieve documents for a known invoice ID.

The installation uses magic-link authentication, so a password is not required. The hosted service uses nfe.io as a subprocesser. Data returned by the tools is also sent to the LLM host selected by the user, such as Claude, ChatGPT, Cursor, or another agent environment. The project recommends choosing plans with training opt-out where this data-handling consideration matters.

## Setup and configuration

Add the hosted URL as an HTTP MCP server in a compatible client. The repository provides one-click installation links for Claude Web and Desktop, Cursor, and VS Code with Copilot Chat. Other clients can use the same endpoint if they support MCP over HTTP; client-specific instructions are provided in the project’s installation documentation.

After connecting, configure the business information required by the service: a CNPJ and an A1 certificate. No local environment variables are documented for this hosted setup, and an nfe.io account is not required. Usage is billed through a prepaid credit wallet on a pay-per-use basis.

## Tools and capabilities

The six available tools are:

- `notafiscal_empresas`: lists connected companies and their company ID, legal name, municipality, and certificate validity.
- `notafiscal_emitir_nfse`: issues an NFS-e for a connected company.
- `notafiscal_consultar_nfse`: retrieves the status and details of an invoice by `invoice_id`.
- `notafiscal_listar_nfse`: returns a paginated list of invoices issued by a company.
- `notafiscal_baixar_nfse`: returns PDF (DANFSe) and XML links for an invoice.
- `notafiscal_cancelar_nfse`: cancels an issued invoice, subject to municipal rules and deadlines.

## Limitations and notes

The Nota Fiscal MCP server is proprietary and hosted at the MCP endpoint; the public repository contains the wrapper, manifests, documentation, and skills under the MIT license. Invoice cancellation cannot be undone through the tool and may not be available after the municipality’s permitted period. The service’s privacy documentation identifies nfe.io and the selected LLM host as subprocessors, so review those data flows before sending business or customer information.

_Full upstream README: https://allmcps.com/mcp/nota-fiscal/readme_

