# Solar & Battery Cooptimization Calculator AI Agent Connect

> Solar & Battery Cooptimization Calculator MCP is a deterministic engine designed to manage energy dispatch. It coordinates solar generation, battery energy storage systems (BESS), and grid interaction by analyzing solar irradiance, load demand, and time-of-use tariffs. Your AI client uses this MCP to build precise schedules that respect battery state-of-charge limits and grid export constraints.

## Overview
- **Category:** optimization
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_JkCtNM8N6g5gG8i2tQkp3itTUlnOJStyGQNAeNsM/ai-agent-connect
- **Tags:** solar, battery, optimization, energy-management, bess, grid

## Description

You can use this MCP to solve the complex math behind energy management. Instead of guessing how much power to pull from a battery or when to export to the grid, you provide your AI client with irradiance data, load requirements, and tariff structures. The engine then calculates a coordinated dispatch plan that balances solar output with battery storage and grid limits. 

It handles the physical constraints for you. You don't have to manually check if a battery can handle a specific discharge rate or if you're exceeding grid export caps. The engine respects battery state-of-charge (SoC) bounds and ensures your proposed power profiles are physically possible. Whether you are testing how different weather patterns affect your setup or looking for a high-level financial breakdown of a specific schedule, this MCP provides the deterministic logic needed to make informed energy decisions.

## Tools

### calculate_optimal_schedule
This tool generates a complete, coordinated dispatch schedule for your solar, battery, and grid assets.

### get_economic_summary
This tool provides a high-level financial breakdown of any generated energy schedule.

### simulate_solar_scenarios
This tool evaluates how varying levels of solar generation impact your battery and grid interactions.

### validate_battery_feasibility
This tool checks if a specific battery configuration can physically support a proposed power profile.

## Prompt Examples

**Prompt:** 
```
Generate an optimal energy schedule for my solar and battery setup given this data.
```

**Response:** 
```
The optimal schedule has been generated. It suggests charging the battery during peak solar hours and discharging during high-tariff periods, resulting in a total cost of $12.50.
```

**Prompt:** 
```
Is this battery profile physically possible for a 10kWh battery?
```

**Response:** 
```
No, the profile is not physically possible because it violates the maximum discharge power limit of the battery.
```

**Prompt:** 
```
What is the economic summary for my last generated schedule?
```

**Response:** 
```
The schedule resulted in a net cost of -$5.00 (a profit), with a solar self-consumption ratio of 85%.
```

## Capabilities

### Coordinated Dispatch
Your agent uses this to create a single plan for solar, battery, and grid assets.

### Physical Constraint Checking
Your agent checks battery configurations against proposed power profiles to ensure feasibility.

### Weather Scenario Testing
Your agent simulates different solar generation levels to see how they change battery and grid behavior.

### Financial Analysis
The engine produces economic summaries to evaluate the cost or profit of a schedule.

### Constraint Enforcement
The tool automatically respects battery SoC bounds and grid export limits.

## Use Cases

### BESS Sizing and Validation
Check if a specific battery can handle the power demands of a proposed solar profile.

### Tariff Optimization
Generate schedules that prioritize battery discharge during high-tariff periods.

### Weather Impact Analysis
Run simulations to see how cloudy or sunny days change your grid and battery interaction.

### Project Financial Modeling
Get a quick economic summary of a proposed energy management strategy.

## Benefits

- Calculates coordinated schedules using deterministic logic.
- Validates battery feasibility against physical power limits.
- Simulates solar generation variability to test system resilience.
- Respects battery SoC bounds and grid export limits automatically.

## How It Works

Connect your AI client to Vinkius to start running energy optimizations immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide solar, load, and tariff data to your AI agent.
3. Your agent calls the MCP to calculate or simulate energy scenarios.
4. The engine returns validated schedules or economic summaries to your agent.

## Frequently Asked Questions

**What does this MCP actually calculate?**
It generates coordinated dispatch schedules for solar, battery, and grid assets based on irradiance, load, and tariffs.

**Can I check if my battery can handle a specific load?**
Yes, you can use the validate_battery_feasibility tool to check if a battery configuration can handle a proposed power profile.

**Does it account for battery limits?**
Yes, the engine ensures all battery state-of-charge (SoC) bounds are respected in every calculation.

**How do I see the financial impact of a schedule?**
You can use the get_economic_summary tool to get a high-level financial summary of any generated schedule.

**Can I test different weather conditions?**
Yes, the simulate_solar_scenarios tool allows you to evaluate how different solar generation levels affect your system.

**What does the optimization engine actually do?**
It calculates a coordinated schedule for solar production, battery charging/discharging, and grid interaction to minimize costs or maximize self-consumption while respecting all physical constraints.

**How can I verify if my battery can handle a specific power profile?**
You can use the `validate_battery_feasibility` tool to check if a proposed sequence of charge and discharge requests stays within the battery's power and state-of-charge limits.

**Can I simulate different weather conditions?**
Yes, the `simulate_solar_scenarios` tool allows you to apply a multiplier to your base solar generation data to see how different solar levels impact your grid exchange and costs.
