Brazil's tax reform introduces new rules around CBS, IBS and the Selective Tax. The Receita Federal has published open-source RTC calculators, and I've been building independent tools around them to make their APIs and data easier to use in different workflows.
These projects are open source under the MIT license. They are independent projects, not affiliated with the Receita Federal, and they are not tax advice. Please check the applicable legislation and consult an accountant for tax decisions.
Here are the five projects:
- Reforma Tributária MCP — a Python MCP server that exposes calculator and tax-data operations to AI agents, including lookups and validations for items such as NCM and NBS.
- Copiloto Fiscal + MCP — an AI tax copilot and MCP server designed to work with the RTC calculators and help explain calculation errors.
- API Gateway, SDKs and CLI — a FastAPI gateway, Python and TypeScript SDKs, and a command-line interface for working with the calculator APIs.
- Web Simulator — a web interface for comparing General Regime and Simples Nacional scenarios, with XML tools and DANFSe PDF support.
- Batch Auditor — a tool for analyzing batches of NF-e, NFC-e and NFS-e XML files, as well as CSV and Excel data, with a 2026–2033 transition simulator.
The goal is to make these open calculators easier to explore and integrate, whether through an AI agent, an API, a web interface or a batch workflow. Each repository includes its own setup instructions and details about what it supports.
If you work with Brazil's tax reform or build tools around public APIs, I'd like to hear what would be useful to add next. Feedback, issues and contributions are welcome.
