MCP Fiscal Brasil
Lets your AI agent look up Brazilian company data and check NF-e, SPED, eSocial, Simples Nacional and tax reform rules.
418 stars on GitHubby DeHor LabsLicense MITUpdated 23 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add fiscal-brasil -- uvx mcp-fiscal-brasil
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Look up CNPJ 00.000.000/0001-91 and list the partners.
Is NF-e key 35240300623904000197550010000012341234567890 valid?
What it is
This server connects your agent to Brazilian tax tools such as CNPJ lookups, NF-e parsing and validation, SPED and eSocial analysis, and the 2026 tax reform. Most tools work with no account or key, and many run offline. Some tools return links and steps for government portals instead of data.
What it can do
consultar_cnpj: full company data including partners and CNAEvalidar_chave_nfe: check an NF-e key and extract its data offlineparse_nfe_xml: read an NF-e XML into structured datagerar_danfe: make a DANFE PDF from an NF-e XMLanalisar_sped: analyze an EFD, ECD or ECF file offlinerisk_score_supplier: score a supplier from 0 to 100compare_tax_regimes: compare MEI, Simples, Lucro Presumido and Lucro Realvalidate_nfe_full: validate a complete NF-e from its XML
When to use
- βΊWhen you need to check a supplier by CNPJ before hiring them
- βΊWhen you have NF-e XML or SPED files and want them validated or summarized
- βΊWhen you want to compare tax regimes for a company's revenue and payroll
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
usfiscaldataLets your agent access U.S. government financial data. It's useful for analyzing the national budget, debt, and other fiscal statistics.ma-playbookHelps founders buying or selling a company with a playbook for strategy, due diligence checks, valuation, deal terms and integration.cli-anything-intelwatchLets your agent build a company profile from a web domain, including tech stack, financial data, and an optional AI due diligence summary.Frequently asked questions
Do I need an API key?
The README says it works without keys or an account. A few features are opt-in and need an A1 certificate or a premium provider.
Is it open source?
The README shows a license badge and a public repository, but the license text is not given in the excerpt.
Does it work offline?
Many tools are offline, such as NF-e key validation, XML parsing, DANFE, SPED analysis and the NCM, CFOP and CNAE tables.
Is my certificate sent to a server?
The README says the certificate and password are never sent to an external server, and mTLS and signing happen locally.
How do I install it?
Run uvx mcp-fiscal-brasil, or add it to Claude Desktop with uvx as the command.
Does it do more than MCP?
Yes. It also offers a CLI, a REST API with a demo web page and a Node.js wrapper in preview.
If it does not work
- βΊUse uvx mcp-fiscal-brasil@latest or uvx --refresh to get the newest version, because uvx caches the installed one.
- βΊRestart Claude Desktop after editing claude_desktop_config.json.
- βΊFor SEFAZ status, set NFE_CERTIFICADO_PATH and NFE_CERTIFICADO_SENHA, or the tool will raise a configuration error.
5 new skills a week. 1 minute to read.