# Battery SoC Coulomb Counter AI Agent Connect

> Battery SoC Coulomb Counter MCP gives your AI client the mathematical tools needed to track battery health and capacity. It uses Coulomb counting to integrate current samples over time, allowing your agent to map State of Charge trajectories, check for data integrity, and normalize capacity units between Ampere-seconds and Ampere-hours.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_annBOKHVq0smjDl2MfFHqm5df8waHyqdXxBmANci/ai-agent-connect
- **Tags:** battery, soc, coulomb-counting, energy, physics

## Description

You can now give your AI agent the ability to perform high-precision battery management calculations. Instead of guessing battery levels, you use this MCP to integrate current samples over time using the Coulomb Counting method. This allows your agent to track the State of Charge (SoC) trajectory with mathematical rigor. You can analyze how charge flows through a system, identify efficiency losses, or spot clipping events when the SoC hits physical limits. It handles the heavy lifting of time-series analysis and unit normalization, so your agent can focus on interpreting the battery's behavior. Whether you are analyzing a single discharge cycle or a long-term series of measurements, this MCP ensures the math stays consistent and the units stay accurate.

## Tools

### get_soc_summary
Use this to get a high-level snapshot of the battery state after processing a series of measurements.

### validate_capacity_units
This tool ensures your capacity values match the physical scale of your specific operation.

### verify_sample_integrity
This tool checks that your current samples are mathematically sound for integration tasks.

### calculate_soc_trajectory
This tool calculates the full progression of a battery's State of Charge based on a set of current samples.

## Prompt Examples

**Prompt:** 
```
Calculate the SoC trajectory for a 1000As battery with these samples: [{'timestamp': 0, 'current': 2}, {'timestamp': 10, 'current': 2}] using positive_is_charging.
```

**Response:** 
```
The battery SoC at timestamp 10 is 0.2%.
```

**Prompt:** 
```
Give me a summary for a battery with 50% SoC, 5000As nominal capacity, and 2500As remaining capacity.
```

**Response:** 
```
The current State of Charge is 50.0%, with 0.694 Ah and 2500.0 As of capacity remaining.
```

**Prompt:** 
```
Check if these current samples are consistent: [{'timestamp': 0, 'current': 1}, {'timestamp': 5, 'current': 1}, {'timestamp': 10, 'current': 1}].
```

**Response:** 
```
The current samples are consistent with a total duration of 10 seconds and 3 samples.
```

## Capabilities

### SoC Trajectory Mapping
Your agent uses this to plot how battery charge changes over a specific time period.

### Data Integrity Checks
Your agent runs this to ensure current samples are valid before performing integration.

### Capacity Normalization
Your agent uses this to switch between Ampere-seconds and Ampere-hours without errors.

### State Snapshots
Your agent uses this to pull a quick summary of battery status from a large dataset.

## Use Cases

### Discharge Cycle Analysis
Your agent calculates the SoC trajectory to see how quickly a battery depletes under load.

### Capacity Validation
You use your agent to check if the measured capacity matches the expected physical scale.

### Error Detection
Your agent identifies clipping events when the SoC reaches its physical limits.

### Data Cleaning
You use your agent to verify that timestamped current samples are mathematically sound.

## Benefits

- Reduces manual math errors by automating Coulomb counting integration.
- Ensures data consistency through automated sample integrity verification.
- Simplifies unit conversions between different electrical scales.
- Provides clear snapshots of battery state from raw measurement series.

## How It Works

Connect your client to Vinkius to start running battery math through your agent.

1. Connect your MCP-compatible client to the Vinkius hosted environment.
2. Provide your current samples and battery capacity data to your agent.
3. Your agent invokes the necessary tools to perform integration or validation.
4. Receive precise SoC trajectories or capacity summaries directly in your chat interface.

## Frequently Asked Questions

**What is the primary method used for SoC calculation?**
This MCP uses the Coulomb Counting method, which integrates current samples over time.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Can this MCP handle different capacity units?**
Yes, it includes a tool to normalize data between Ampere-seconds and Ampere-hours.

**Does the MCP host the data?**
Vinkius hosts the MCP and manages the execution, so you only need to connect your client once.

**How does it handle data errors?**
The MCP includes a tool to verify sample integrity, ensuring current samples are mathematically sound for integration.

**How does the SoC calculation handle efficiency?**
The `calculate_soc_trajectory` tool applies specific charge and discharge efficiency coefficients to the integrated current, accounting for energy losses during the chemical process.

**What happens if the SoC reaches 0% or 100%?**
If the `boundsPolicy` is set to 'clip', the SoC will be constrained between 0 and 100. Any excess charge or discharge is recorded as a clipping event.

**Can I use Ampere-hours (Ah) instead of Ampere-seconds (As)?**
Yes, you can use `validate_capacity_units` to convert Ampere-hours to the Ampere-seconds required for the integration calculations.
