MCP Fiscal Brasil

An MCP server for Brazilian tax work: counterparty checks by CNPJ and parsing of NF-e invoices and SPED filings

  • 399 ★ on the repository
  • Last commit
  • MIT
MCP server

Extended access

Why this level

  • CNPJ lookups go to external Brazilian government sources
  • Working with an A1 certificate opens access to a company's tax services, so its password belongs in a secret manager
All reasons and checks

dehor-labs/mcp-fiscal-brasil

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/mcp-fiscal-brasil

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • CNPJ lookups go to external Brazilian government sources
  • Working with an A1 certificate opens access to a company's tax services, so its password belongs in a secret manager

This is third-party code. Review the repository files before installing.

What it does

The server gives an agent 44 tools for Brazilian tax data. They validate CNPJ and CPF, determine the Simples Nacional or MEI regime and work with the CNAE, NCM and CFOP reference tables. A separate group parses electronic documents: NF-e, NFS-e, CT-e, SPED and eSocial files. Reference tables ship inside the package and work offline, and XML is parsed locally with XSD validation. On top of the basic calls there are six agentic tools that build a finished report in one call. risk_score_supplier rates a counterparty from 0 to 100, and consultar_empresas_lote checks several CNPJs at once. analyze_cnpj_compliance merges CNPJ, tax regime and CNAE into one report. validate_nfe_full checks the invoice XML, its key and the issuer. summarize_sped gives a short summary of the period and inconsistencies found. compare_tax_regimes compares four tax regimes. The server accounts for the 2026 tax reform (IBS and CBS). The same code is available as the mcp-fiscal command-line tool, as the mcp-fiscal-api REST API with a demo interface and as a Node.js wrapper in preview.

Who it is for. For accountants, ERP and CRM developers and teams dealing with Brazilian counterparties and tax documents.

Good fit when

  • You need to check a supplier by CNPJ and get a risk score from 0 to 100
  • You want to check a list of companies at once: the tool takes a batch of CNPJs
  • You need to parse an NF-e invoice XML and find problems in the key and issuer data
  • You want to estimate which regime pays off for a given turnover and payroll: MEI, Simples or profit-based
  • An accountant needs a short summary of a SPED file: period, company, blocks and inconsistencies

Not a fit when

  • You work with another country's taxes: the tools cover Brazil only
  • You need a legally binding tax position: the server helps with checking and analysis and does not replace an accountant
  • You need to file documents with tax authorities: the server only parses, checks and calculates
  • You only need general Brazilian data such as CEP, banks and holidays: more general open-data servers cover that

Example request

Check CNPJ 12.345.678/0001-90 as a supplier: Simples status, CNAE and a counterparty risk score.

MCP

Transport
stdio, http, sse
Authentication
not required

Environment variables

FASTMCP_TRANSPORT
Server transport: stdio (default), sse, http or streamable-http.
NFE_CERTIFICADO_SENHA secret
Password of the A1 digital certificate, needed only for SEFAZ checks through the REST API.

Limitations

Python 3.10 or newer and uv are required. Some requests go to public Brazilian sources, and we have not checked their availability from Russia. The SEFAZ status check, plus distribution and manifestation of NF-e through the REST API, requires an A1 digital certificate, and without one the server returns error 503. The certificate password must not live in a plain .env. Data from public sources may lag, so verify important decisions against the original source. In HTTP or SSE mode the port comes from the PORT variable.

How to disable. Remove the fiscal-brasil entry from the client config, for example claude_desktop_config.json, and restart the client. The server creates no keys or background processes.

FAQ

Do I need keys or signup for MCP Fiscal Brasil?

No. In the default stdio mode the server works with no environment variables, keys or accounts. Variables are needed only when running over HTTP or SSE and when working with an A1 certificate.

How do I install the server in Claude Desktop?

Add an mcpServers block to claude_desktop_config.json with a fiscal-brasil entry where command is uvx and args contains mcp-fiscal-brasil, then restart Claude Desktop. To force an update use mcp-fiscal-brasil@latest or the --refresh flag.

What does risk_score_supplier do?

The tool rates a supplier by CNPJ and returns a score from 0 to 100, a list of factors and a contract recommendation.

How does MCP Fiscal Brasil differ from mcp-brasil?

mcp-brasil serves general Brazilian open data. MCP Fiscal Brasil focuses on the tax vertical: NF-e XML parsing, SPED and eSocial analysis, offline NCM, CFOP and CNAE tables and the 2026 reform.

How do I compare tax regimes for my company?

Call compare_tax_regimes: the tool weighs MEI, Simples, Lucro Presumido and Lucro Real by turnover, sector and payroll. In the terminal the same job runs with `mcp-fiscal regimes --faturamento 500000 --setor serviços --folha 180000`.

Discussion

No questions or reviews yet.

More than 120 MCP servers for Latin American commerce: Pix, NF-e invoices, banks, shipping and WhatsApp through one interface

MCP serverBroad access275Repository stars
Russian stack

Offline Russian tax calculator MCP server: VAT, simplified tax, sole proprietor contributions, income tax, patent and penalties with Tax Code references

MCP serverExtended access1Repository stars

Financial Datasets MCP

Financial Datasets MCP Server

Official

An MCP server for the Financial Datasets API: company financials, stock and crypto prices and news for the agent

MCP serverExtended access2.3KRepository stars
Official

A financial analysis MCP server: 500+ methods from company statements, ratios, indicators, risk metrics and macro data

MCP serverExtended access5.5KRepository stars

An MCP server for SEC EDGAR: US company filings, forms 10-K, 10-Q and 8-K, XBRL-parsed financials and insider trades

MCP serverBroad access380Repository stars
Official

The official MCP server for Japan's freee platform plus a recipe skill: accounting, payroll, invoices and e-signature contracts through an AI agent

MCP serverBroad access513Repository stars

README in short

The documentation opens with a comparison against other Brazilian MCP servers and working scenarios. A demo on Render lets you try it without installing, and the new data sources of version 0.2 get their own section.

README badge

Report a problem

Foxx AIMCP Fiscal Brasil
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.