# PIS/COFINS Tax Calculator MCP MCP

> PIS/COFINS Tax Calculator calculates Brazilian social contributions using specialized financial logic. You can run simple calculations with fixed rates or model complex scenarios that factor in input credits for net liability determination. It also compares different tax regimes to show you the most financially sound path forward.

## Overview
- **Category:** finance
- **Price:** Free
- **Tags:** brazil, tax, pis, cofins, calculator, accounting-tools

## Description

This MCP handles PIS and COFINS, two required social charges levied on Brazilian companies. Instead of guessing which calculation method applies, your agent runs specific logic based on your business model. For instance, if you operate under a simple structure, one tool runs the fixed-rate liability check. If your costs include significant materials or energy inputs, another tool calculates the net balance by giving credit for those purchases. The best part is that it doesn't just give numbers; it compares regimes. It determines which method—simple versus complex input credits—actually results in the lowest tax burden for a given revenue and cost structure. Vinkius enforces a financial circuit breaker with human-in-the-loop approval on every call that touches money. Your AI sets the intent, but no transaction fires without your explicit sign-off.

## Tools

### calculate_cumulative_tax
Calculates PIS and COFINS liability when using a simple fixed-rate taxation regime.

### calculate_non_cumulative_tax
Determines the net PIS and COFINS liability by accounting for eligible input credits, used in a more complex tax structure.

### evaluate_regime_comparison
Compares the total tax burden across different cumulative and non-cumulative taxation regimes based on your provided costs and revenue.

## Prompt Examples

**Prompt:** 
```
Calculate my PIS/COFINS for 100,000 BRL revenue in the cumulative regime.
```

**Response:** 
```
The `calculate_cumulative_tax` tool would return a PIS amount of 650.00 and COFINS of 3,000.00, totaling 3,650.00.
```

**Prompt:** 
```
Compare regimes for 500,000 BRL revenue with 50,000 BRL in raw material costs.
```

**Response:** 
```
Using `evaluate_regime_comparison`, the tool will analyze both regimes and suggest the one with the lowest net liability based on your input credits.
```

**Prompt:** 
```
What is my tax liability if I have 200,000 BRL revenue and 20,000 BRL in energy costs?
```

**Response:** 
```
By calling `calculate_non_cumulative_tax` with the provided input credits, you can see your net PIS and COFINS balance.
```

## Capabilities

### Determine fixed tax liability
The MCP calculates PIS and COFINS based solely on defined rates applied to total gross revenue.

### Model input credits
It computes net PIS/COFINS by subtracting eligible purchase costs (like raw materials or energy) from the gross liability.

### Compare tax regimes
The system runs multiple calculations and outputs a comparison, pointing out which tax regime minimizes your total payable amount.

## Use Cases

### Switching Operational Structures
A CFO needs to know if changing their operational structure from simple fixed-rate sales to a high-input credit model is worth it. They run `evaluate_regime_comparison` with both revenue and material costs, immediately seeing the tax savings difference.

### Verifying Initial Tax Estimates
A new accounting team is unsure if their initial gross calculation was correct. They first run `calculate_cumulative_tax` to get a quick baseline number, then use that result as a starting point for the more accurate `calculate_non_cumulative_tax` tool.

### High-Cost Material Analysis
A manufacturer needs to calculate tax liability after purchasing large quantities of raw materials. They feed the revenue and material costs into `calculate_non_cumulative_tax` to correctly factor in every available input credit.

### Year-End Compliance Check
A tax professional must confirm compliance across all possible scenarios. They use `evaluate_regime_comparison`, feeding it the year's total revenue and cost data, ensuring no tax loophole or misapplied regime is missed.

## Benefits

- Stop guessing which tax law applies. By using `evaluate_regime_comparison`, you force the system to compare multiple regimes, pinpointing the mathematically lowest liability for your specific costs.
- Accurately model complex inputs. The `calculate_non_cumulative_tax` tool handles input credits (like energy or raw materials), giving you a true net balance instead of just a gross estimate.
- Run fast checks on simple models. Need a quick baseline? Use the `calculate_cumulative_tax` function to get immediate fixed-rate estimates without running full cost analyses.
- Minimize audit risk by comparing everything. Running all three tools together ensures you've checked both the simplest and most complex tax paths, giving you robust data for compliance.
- Consolidate your work. Instead of jumping between different accounting software to check tax rules, this MCP pulls the specialized calculation logic into one place.

## How It Works

The bottom line is that you feed it your numbers and get back a clear recommendation on where to minimize your tax exposure.

1. You input the required financial parameters: gross revenue, specific cost categories (e.g., raw materials, energy), and the operational period.
2. The MCP executes specialized tax logic—whether it's a fixed-rate calculation or a complex net credit model—and generates multiple liability scenarios.
3. The system consolidates these results into a final comparison report, showing the calculated difference between competing tax structures.

## Frequently Asked Questions

**How do I use `calculate_non_cumulative_tax`?**
You pass it your gross revenue along with specific input cost data (like energy or raw materials). It then calculates the net PIS and COFINS balance by giving credit for those purchases.

**What does `calculate_cumulative_tax` do?**
This tool computes tax liability using a simple, fixed-rate method. Use it when you need a quick baseline number that ignores complex input credits.

**Which tool should I use for the final answer? `evaluate_regime_comparison`?**
If your goal is finding the absolute lowest tax liability, always start with `evaluate_regime_comparison`. It's designed to weigh all options and tell you which method works best.

**Can this MCP calculate my PIS/COFINS?**
Yes. This MCP specializes in calculating Brazilian social contributions (PIS and COFINS) using specialized tools for various tax regimes, from simple fixed rates to complex input credit models.

**When running `evaluate_regime_comparison`, what specific data points do I need to provide about my operational costs?**
You must supply total gross revenue, the input credits used for purchases, and all associated operational expenses. The tool uses these three figures to determine your net tax liability across both regimes.

**If the data provided causes an issue with `calculate_non_cumulative_tax`, how can I troubleshoot it?**
The MCP will return a specific error code and message detailing the failure. Check if your input credits are accounted for correctly, or if you have negative values in your expense inputs.

**Can I use `calculate_cumulative_tax` to model tax periods outside the current fiscal year?**
Yes, this MCP is designed for historical analysis. Simply specify the exact start and end dates of the period you want to calculate PIS/COFINS for.

**If I run multiple tax scenarios using `evaluate_regime_comparison`, are there rate limits I should know about?**
Vinkius manages high-volume usage across all its MCPs. You only hit a limit if your specific AI client subscription or API key is restricted.