# Rural Credit Simulator MCP

> Rural Credit Simulator handles complex agricultural financing modeling. It helps producers and analysts calculate total costs for loans under programs like Pronaf or Pronamp. You can simulate repayments using different methods, compare various credit options, and pull a list of all supported farming financial programs.

## Overview
- **Category:** finance
- **Price:** Free
- **Tags:** agribusiness, credit, loans, financial-modeling, farming

## Description

This MCP lets you evaluate the true cost of farm financing without needing specialized software. Whether you're planning an expansion or managing crop cycle debt, you model complex scenarios involving investment capital, production costs, or marketing funds. You can run simulations for different loan structures and compare how various government programs affect your bottom line. The system accounts for interest rates, grace periods, and repayment methods like SAC, Price, or Bullet to give you a precise Effective Total Cost (CET). It's a critical resource that helps financial analysts make informed decisions about agricultural debt.

## Tools

### compare_credit_options
Compares multiple agricultural credit programs against a single loan request to find the cheapest option.

### get_available_programs
Retrieves a full list of all supported government and private agricultural financing programs.

### simulate_repayment_plan
Generates detailed, customized loan repayment schedules using specific amortization methods like SAC or Price.

## Prompt Examples

**Prompt:** 
```
What are the available agricultural credit programs?
```

**Response:** 
```
The available programs are: Pronaf (low interest for small farmers), Pronamp (for medium producers), and Plano Safra.
```

**Prompt:** 
```
Simulate a $50,000 loan for 24 months with a 6-month grace period using the Price method under Pronaf.
```

**Response:** 
```
For a $50,000 loan under Pronaf for 24 months with a 6-month grace period using the Price method, the total cost will be approximately $58,450.20 with an effective annual cost of 12.5%.
```

**Prompt:** 
```
Compare options for a $100,000 investment loan for 60 months.
```

**Response:** 
```
Comparing the programs: Pronaf offers a total cost of $145,000, while Pronamp results in a total cost of $162,000 for this 60-month investment scenario.
```

## Capabilities

### Check supported loan programs
Retrieve a complete list of all available agricultural credit programs for comparison.

### Compare multiple financing options
Run side-by-side comparisons between different government or private credit programs for one specific loan amount.

### Model repayment schedules
Generate a precise, customized simulation of how a loan will be paid back over time using various amortization methods.

## Use Cases

### Comparing subsidies for expansion
A farmer needs $1M for new machinery. Instead of calling three banks, they ask their agent to `compare_credit_options` across Pronaf and other state programs. The result shows which combination gives the lowest total cost over 60 months.

### Planning a seasonal cash flow gap
A producer needs to budget for planting costs now, but sales are in six months. They use `simulate_repayment_plan` to model a short-term loan with a grace period and calculate the required monthly payment using the Price method.

### Checking program eligibility
A financial analyst needs to know what funding options exist for different crop cycles. They run `get_available_programs` first, getting a clean list of all supported credit types before building their model.

### Optimizing investment capital
An agribusiness owner is weighing two major investments. They use the simulator to compare loan options for both scenarios side-by-side, determining which financing structure makes the project financially viable.

## Benefits

- Stop guessing on total cost. By running a simulation, you get the Effective Total Cost (CET), which tells you the true expense beyond just the principal and interest.
- Compare options side-by-side using `compare_credit_options`. Instead of reading multiple rulebooks, your agent shows you exactly how different programs stack up for one loan request.
- Model complex debt structures. The simulator handles various modalities—Production Cost, Investment, Marketing/Sales—so you can accurately map capital needs to financing options.
- Know the full scope of available funds. Use `get_available_programs` to pull a comprehensive list of all supported agricultural credit programs before you even start modeling.
- Test every repayment method. Need to see how amortization changes? Run a detailed simulation using `simulate_repayment_plan` with SAC, Price, or Bullet methods.

## How It Works

The bottom line is that it replaces manual spreadsheet calculations with immediate, accurate financial modeling.

1. First, tell your agent the specific financing problem you need to solve. This might involve setting the loan amount, duration, and repayment structure.
2. Next, select the programs or options you want to test—maybe comparing Pronaf against a standard bank rate—and run the simulation.
3. The system outputs detailed cost breakdowns, showing the total cost of credit and the Effective Total Cost (CET) for each scenario.

## Frequently Asked Questions

**How does Rural Credit Simulator compare_credit_options?**
It compares different credit programs by taking one loan request (amount/term) and calculating the total cost for each program side-by-side. This is ideal when you're deciding between two or three government-backed options.

**Can I find all available programs using get_available_programs?**
Yes, running `get_available_programs` pulls a comprehensive list of every supported agricultural credit program in the system. This is the best place to start when you don't know which funding source applies.

**What does simulate_repayment_plan calculate?**
It generates detailed repayment schedules, showing how payments are structured over time using specific methods like SAC (Straight-line), Price, or Bullet. This helps you understand the cash flow impact.

**Is Rural Credit Simulator only for small farms?**
No. The simulator handles various modalities—Production Cost, Investment, and Marketing/Sales—so it's designed to model large, complex commercial farming operations as well as smaller ones.

**Does the MCP handle grace periods in its simulations?**
Yes. The simulation process accounts for various interest rate programs and specified grace periods, ensuring your total cost calculation is accurate from day one.