# Canine HRV Analyzer AI Agent Connect

> Canine HRV Analyzer MCP gives your AI client the ability to process timestamped beat intervals for dogs. It calculates critical metrics like SDNN and RMSSD, validates signal quality, and compares current data against historical baselines to track health trends. You can use it to monitor resting or active states through contextual baseline comparisons.

## Overview
- **Category:** health
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7NG6Bx8DE3b4aEFlF05JkrdLhtWISd4SpnqnJx3m/ai-agent-connect
- **Tags:** canine, hrv, heart-rate, veterinary-health, biometrics

## Description

You can now give your AI agent the ability to interpret canine physiological data. This MCP handles the heavy lifting of calculating Heart Rate Variability (HRV) from raw beat intervals. Instead of manually calculating metrics, you provide the timestamped data and let your agent derive SDNN and RMSSD values instantly. 

It is built for precision. Your agent can use the tools to check if a signal is actually clean enough to trust before running calculations. It also understands that a dog's heart rate looks different when it is sleeping versus when it is running, providing contextual baselines to keep your analysis grounded. If you are tracking a dog's recovery or stress levels over time, the MCP can compare current segments against previous ones to highlight specific trends. It turns a stream of numbers into a clear picture of a dog's autonomic nervous system activity.

## Tools

### analyze_hrv_segment
This tool calculates core HRV metrics from a sequence of heartbeat timing data. It produces the specific physiological values your agent needs for analysis.

### compare_segments
Use this to check current HRV metrics against historical data. It helps your agent identify significant shifts in a dog's physiological state.

### get_contextual_baseline
This tool provides the expected metric ranges based on whether the dog is resting or active. It ensures your agent compares data against the right standards.

### validate_signal_quality
This tool evaluates raw input to see if the data is reliable. It prevents your agent from performing calculations on noisy or insufficient signals.

## Prompt Examples

**Prompt:** 
```
Calculate the HRV metrics for these beat intervals: [800, 810, 790, 805, 800, 815, 795, 800, 810, 805] while the dog is resting.
```

**Response:** 
```
The calculated metrics for the resting state are: Mean Interval: 802.5 ms, SDNN: 7.8 ms, and RMSSD: 8.2 ms.
```

**Prompt:** 
```
Is this signal reliable? Beat intervals: [800, 805, 802, 1200, 798, 801, 803, 800, 802, 801]
```

**Response:** 
```
The signal is not fully reliable due to a high noise level detected from the outlier interval.
```

**Prompt:** 
```
Compare these metrics: current {sdnn: 50, rmssd: 40} and historical {sdnn: 45, rmssd: 38}.
```

**Response:** 
```
The trend is increasing, with an SDNN change of 11.1% and an RMSSD change of 5.3%.
```

## Capabilities

### Metric Calculation
Your agent derives SDNN and RMSSD from raw beat timing.

### Signal Validation
Your agent checks if the input data is clean enough for accurate results.

### Trend Identification
Your agent compares current segments to historical data to spot changes.

### Activity Contextualization
Your agent uses activity states to determine if metrics fall within expected ranges.

## Use Cases

### Post-Operative Monitoring
An agent monitors a dog's HRV to check for signs of stress during recovery.

### Exercise Stress Testing
Compare resting baselines to active metrics to see how a dog handles physical exertion.

### Long-term Health Tracking
Identify gradual changes in autonomic health by comparing weekly HRV segments.

### Data Quality Control
Automatically verify if wearable sensor data is high enough quality to be used for medical decisions.

## Benefits

- Automates the math for SDNN and RMSSD calculations.
- Filters out noisy data before it ruins your analysis.
- Provides context based on dog activity levels.
- Identifies physiological shifts through historical comparisons.

## How It Works

Connect your AI client to Vinkius and start sending biometric data immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Feed raw beat interval data into your AI agent.
3. Your agent uses the MCP to validate the signal and calculate metrics.
4. Your agent compares results against baselines or historical data to provide a final report.

## Frequently Asked Questions

**What metrics does this MCP calculate?**
It calculates SDNN and RMSSD from provided beat intervals.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**How does it handle noisy data?**
The validate_signal_quality tool checks the raw input to ensure it is sufficient for accurate calculation.

**Does it account for a dog's activity level?**
Yes, the get_contextual_baseline tool provides expected metric ranges based on whether the dog is resting or active.

**Can it compare current data to old data?**
Yes, the compare_segments tool allows your agent to identify trends between current and historical segments.

**What metrics does this server calculate?**
The server calculates mean interval, SDNN, and RMSSD using the `analyze_hrv_segment` tool.

**How can I check if my heart rate data is good enough?**
You can use the `validate_signal_quality` tool to evaluate if the provided beat intervals are reliable and have low noise levels.

**Does it account for the dog's activity level?**
Yes, the `get_contextual_baseline` tool provides expected metric ranges based on whether the dog is resting, active, or sleeping.
