# Shift Work Sleep Optimizer AI Agent Connect

> Optimize sleep, light exposure, and caffeine timing for shift workers.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_FVdz0XEz26Uk6wAIl8pmhSenYkMmxcYTj19BmHnl/ai-agent-connect
- **Tags:** sleep, circadian, shift-work, health-optimization, wellness

## Description

This MCP server provides specialized tools to manage circadian rhythms for shift workers. It uses biological principles to calculate optimal sleep windows via `calculate_sleep_schedule`, manage alertness through `optimize_light_exposure`, determine safe caffeine windows with `generate_caffeine_protocol`, and manage sleep debt using `plan_napping_strategy`.

## Tools

### calculate_sleep_schedule
Provides the primary window of time when the user should attempt to sleep to maximize rest and minimize circadian misalignment

### generate_caffeine_protocol
Determines the safe window for caffeine consumption to ensure it does not interfere with the planned sleep windows

### optimize_light_exposure
Tells the user exactly when to seek bright light to stay alert and when to avoid light to prepare for sleep

### plan_napping_strategy
Recommends specific nap timings to manage sleep pressure during or around shifts

## Prompt Examples

**Prompt:** 
```
I work a night shift from 10 PM to 6 AM and have a 30 minute commute. I prefer split sleep. When should I sleep?
```

**Response:** 
```
Your optimal sleep windows are from 7:30 AM to 11:30 AM and a secondary nap from 4:00 PM to 4:30 PM.
```

**Prompt:** 
```
When should I stop drinking coffee if my shift ends at 6 AM and I want to sleep by 7:30 AM?
```

**Response:** 
```
You should stop all caffeine consumption by 12:00 AM to ensure it is cleared from your system before your 7:30 AM sleep time.
```

**Prompt:** 
```
I'm on a rotating shift starting at 8 PM. When should I use bright light?
```

**Response:** 
```
You should seek bright light between 7:00 PM and 10:00 PM to boost alertness for your shift.
```

## Frequently Asked Questions

**How does this help with rotating shifts?**
The `calculate_sleep_schedule` tool provides more conservative windows for rotating shifts to account for higher circadian misalignment.

**Can I use this to manage my caffeine intake?**
Yes, `generate_caffeine_protocol` calculates a safe cutoff time to ensure caffeine does not interfere with your planned sleep.

**Does it recommend when to use light?**
Yes, `optimize_light_exposure` tells you exactly when to seek bright light for alertness and when to avoid it to protect melatonin.
