# Phase-Folded Lightcurve Analysis AI Agent Connect

> Phase-Folded Lightcurve Analysis MCP gives your AI agent the ability to process periodic photometric observations. It handles the heavy lifting of transforming time-series data into phase-space, identifying brightness features, and detecting period drift. You can use it within any MCP-compatible client to clean noisy data and analyze timing deviations in astronomical datasets.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_4ejDvaday9wMHPlOslpEIf4F0f60mqc22YIdz5hB/ai-agent-connect
- **Tags:** photometry, lightcurve, astronomy, periodicity, time-series

## Description

You can now give your AI agent the specialized math required for periodic photometric analysis. Instead of manually processing time-series data, you can hand raw observations to your AI client and have it perform phase folding or binning immediately. This MCP is built for researchers who need to move from raw flux measurements to structured phase-space representations without jumping between different software environments. You can use it to find primary and secondary events in a lightcurve or to check if a period is drifting over time. It handles the transformation of raw data into clean, binned representations, making it easier to visualize and interpret periodic signals in your astronomical datasets.

## Tools

### analyze_period_drift
This tool detects timing deviations in periodic signals. It helps your agent find if a period is changing over time.

### calculate_binned_lightcurve
This tool creates smoothed representations of your data. It groups noisy points into clean bins for better visualization.

### fold_photometry_data
This tool transforms raw time-series data into phase-space. It uses a specific period and epoch to fold the observations.

### identify_periodic_features
This tool locates primary and secondary brightness events. It finds the specific phases where significant flux changes occur.

## Prompt Examples

**Prompt:** 
```
Fold this photometry data with a period of 0.5 days and a reference epoch of 2459000.5.
```

**Response:** 
```
The data has been folded. The primary event is located at phase 0.42 and the secondary event at phase 0.91.
```

**Prompt:** 
```
Identify the main features in these folded points: [{'phase': 0.1, 'flux': 1.0}, {'phase': 0.5, 'flux': 0.2}, {'phase': 0.9, 'flux': 1.0}].
```

**Response:** 
```
The primary phase is 0.5 with an amplitude of 0.8.
```

**Prompt:** 
```
Calculate a binned lightcurve for these points using 5 bins.
```

**Response:** 
```
The binned lightcurve has been generated with 5 bins, showing a mean flux of 0.85 across the cycle.
```

## Capabilities

### Phase Folding
Your agent converts time-series photometry into phase-space representations.

### Feature Identification
Your agent locates primary and secondary brightness events within a cycle.

### Drift Detection
Your agent measures timing deviations to find period drift.

### Data Smoothing
Your agent generates binned lightcurves to reduce noise in observations.

## Use Cases

### Exoplanet Transit Analysis
Use phase folding to align transit events and identify the depth of the dip.

### Variable Star Research
Identify periodic brightness changes and measure the stability of the period.

### Signal Cleaning
Apply binning to noisy photometric data to reveal the underlying lightcurve shape.

### Timing Precision Checks
Run drift analysis to see if the period of a celestial object is shifting.

## Benefits

- Converts raw time-series into phase-space without manual coding.
- Reduces noise by binning flux measurements into clean representations.
- Detects timing deviations through automated period drift analysis.
- Identifies specific phase locations for primary and secondary events.

## How It Works

Connect your client to Vinkius and start sending photometry data to your agent.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your raw photometry data to your AI agent.
3. Instruct your agent to fold the data using a specific period and epoch.
4. Ask your agent to identify features or calculate binned representations.
5. Review the resulting phase-space data and timing analysis.

## Frequently Asked Questions

**What kind of data does this MCP handle?**
It is designed for periodic photometric time-series data used in astronomy.

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

**How does it handle noisy data?**
The calculate_binned_lightcurve tool allows your agent to group noisy points into bins to create a smoother representation.

**Does it detect changes in orbital periods?**
Yes, the analyze_period_drift tool is specifically designed to detect timing deviations.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start working.

**What is phase folding?**
Phase folding is the process of mapping time-series data onto a periodic interval from 0 to 1, allowing periodic signals to be clearly identified.

**How can I find the primary dip in a lightcurve?**
You can use the `identify_periodic_features` tool to locate the primary phase, which corresponds to the absolute minimum flux in the data.

**Can this tool handle period changes over time?**
Yes, by using the `fold_photometry_data` tool with the `periodDerivative` parameter, you can account for the rate of change in the period.
