# Lunar Phase Geometry AI Agent Connect

> Lunar Phase Geometry MCP provides a computational engine for analyzing lunar orientation and illumination. Your AI client can use it to calculate phase angles, determine terminator geometry, and verify the mathematical validity of celestial positions using vector-based data.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_g7SYNoWGGDrPjrfRUekqaugge43EWoQ3PPrQIsmC/ai-agent-connect
- **Tags:** lunar, geometry, astronomy, orbital-mechanics, celestial

## Description

You can use this MCP to bring high-precision lunar mathematics directly into your agent workspace. Instead of guessing how much of the Moon is visible or where the shadow line falls, you give your agent the celestial vectors and let it handle the heavy lifting. It handles the geometry of the lunar terminator, calculates the illuminated fraction, and checks if your orbital positions actually make sense mathematically. Whether you are modeling light conditions for astronomical observations or verifying orbital mechanics, this MCP turns your AI client into a specialized celestial calculator. It moves beyond simple descriptions and provides the raw geometric data needed for serious astronomical modeling.

## Tools

### get_lunar_cycle_status
Identifies exactly where the Moon sits in its monthly cycle. It determines the current stage of the lunar cycle based on provided data.

### get_phase_metrics
Calculates the visual characteristics of the Moon's phase. This tool provides the phase angle, illuminated fraction, and elongation.

### get_terminator_data
Provides the geometric orientation and properties of the lunar terminator. Use this to find the tilt and position of the shadow line.

### validate_orbital_geometry
Checks the mathematical validity of celestial positions. It ensures the provided vectors represent a physically possible orbital state.

## Prompt Examples

**Prompt:** 
```
What are the current phase metrics for these vectors: {"sun":{"x":10, "y":0, "z":0}, "earth":{"x":0, "y":0, "z":0}, "moon":{"x":-1, "y":0, "z":0}}?
```

**Response:** 
```
The phase angle is 180 degrees, the illuminated fraction is 0%, and the Moon is in the New Moon phase.
```

**Prompt:** 
```
Is the lunar terminator tilted significantly for these positions?
```

**Response:** 
```
The terminator tilt is 15.4 degrees with an orientation of 90 degrees relative to the ecliptic.
```

**Prompt:** 
```
What stage of the lunar cycle is it if the elongation is 45 degrees and it is waxing?
```

**Response:** 
```
The Moon is currently in the Waxing Crescent stage.
```

## Capabilities

### Phase Calculation
Your agent calculates the specific illuminated fraction and phase angle from celestial vectors.

### Terminator Mapping
Your agent determines the geometric orientation and tilt of the lunar shadow line.

### Orbital Validation
Your client verifies that celestial positions are mathematically consistent.

### Cycle Tracking
Your agent identifies the current stage of the lunar cycle.

## Use Cases

### Light Modeling
Calculate the illuminated fraction to predict lighting conditions for lunar surface simulations.

### Orbital Verification
Check if a set of sun, earth, and moon vectors are mathematically valid.

### Observational Planning
Determine the current lunar stage and terminator tilt to plan telescope observations.

### Data Analysis
Process batches of celestial vectors to extract phase angles and elongation metrics.

## Benefits

- Replaces manual geometric calculations with direct vector-to-metric tool calls.
- Provides instant validation for orbital position math.
- Converts raw celestial vectors into human-readable lunar stages.

## How It Works

Connect your client to Vinkius and start sending vectors to the MCP.

1. Connect your MCP-compatible client to the Vinkius platform.
2. Provide the AI agent with celestial vectors for the sun, earth, and moon.
3. Your agent calls the specific tool needed for the calculation.
4. The MCP returns precise geometric metrics or validation results.
5. Your agent uses the data to answer your questions or update your models.

## Frequently Asked Questions

**What kind of data does this MCP need?**
The MCP requires celestial vectors, typically representing the x, y, and z positions of the sun, earth, and moon.

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

**Does it validate orbital positions?**
Yes, the validate_orbital_geometry tool checks the mathematical validity of the celestial positions you provide.

**What is the terminator data?**
The terminator data provides the geometric orientation and properties of the line separating the illuminated and dark sides of the Moon.

**How does it determine the lunar phase?**
It uses the get_phase_metrics tool to calculate the phase angle and illuminated fraction from the provided vectors.

**What kind of data is required for calculations?**
The tools require Sun, Earth, and Moon position vectors or specific angular measurements like elongation to perform geometric calculations.

**Can I verify if my celestial vectors are mathematically sound?**
Yes, you can use the `validate_orbital_geometry` tool to check if the provided vectors satisfy the triangle inequality and are physically plausible.

**How do I find out if the Moon is currently waxing or waning?**
The `get_phase_metrics` tool provides the phase classification, which indicates whether the illuminated fraction is increasing or decreasing.
