# Astronomical Coordinate Converter AI Agent Connect

> Astronomical Coordinate Converter MCP handles complex celestial math for your AI client. It transforms positions between equatorial, ecliptic, galactic, and horizontal systems while accounting for observer location, UTC time, and specific epochs like J2000. Use it to manage rotation matrices, normalize angles, and calculate local sidereal time without manual calculation errors.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_xH0i0374rgB6QrTLkeu26zMpFxccex256Us6TnTN/ai-agent-connect
- **Tags:** astronomy, coordinates, celestial, math, physics

## Description

This MCP gives your AI agent the mathematical precision needed for celestial mechanics. Instead of forcing your agent to guess at spherical trigonometry, you can hand off the heavy lifting to these specialized tools. You can move positions between equatorial (RA/Dec), ecliptic, galactic, and horizontal (Az/Alt) systems with ease. Because the math depends on where you are and when you are looking, the tools incorporate observer location, UTC time, and specific epochs like J2000 to ensure accuracy. If you need to handle rotation matrices or ensure your angles stay within standard bounds, the math is already handled. It's a direct way to bring orbital and positional accuracy to your agent's reasoning process.

## Tools

### calculate_local_sidereal_time
Computes the Local Sidereal Time (LST) based on a specific location and time.

### convert_coordinates
Transforms astronomical coordinates between different systems, requiring observer location and UTC time for horizontal conversions.

### get_conversion_matrix
Retrieves the specific rotation matrix used to transition between two coordinate systems.

### normalize_angles
Adjusts angles to ensure they fall within standard celestial or geographic bounds.

## Prompt Examples

**Prompt:** 
```
Convert the equatorial coordinates RA 10h 0m 0s and Dec 20 degrees to horizontal coordinates for an observer at latitude 40.0 and longitude -75.0 at 2024-01-01T12:00:00Z.
```

**Response:** 
```
The horizontal coordinates are Azimuth 145.23° and Altitude 32.15°.
```

**Prompt:** 
```
What is the rotation matrix to convert from equatorial to galactic coordinates for the J2000 epoch?
```

**Response:** 
```
The 3x3 rotation matrix for the equatorial to galactic transition at J2000 is [[-0.0548, -0.8738, -0.4836], [0.4942, -0.4443, 0.7469], [-0.8676, 0.1980, 0.4559]].
```

**Prompt:** 
```
Normalize the angle RA 370 degrees for the equatorial system.
```

**Response:** 
```
The normalized Right Ascension is 10.0 degrees.
```

## Capabilities

### Coordinate Transformation
Your agent switches positions between equatorial, ecliptic, galactic, and horizontal systems.

### Rotation Matrix Retrieval
Your agent pulls specific matrices to handle transitions between coordinate frames.

### Angle Normalization
Your agent keeps celestial and geographic values within standard bounds.

### Sidereal Time Calculation
Your agent computes LST for any given location and time.

### Epoch-Specific Math
The agent accounts for specific epochs like J2000 during conversions.

## Use Cases

### Observational Planning
Convert equatorial coordinates to horizontal coordinates to find where an object is in the sky from a specific location.

### Data Normalization
Clean up raw celestial data by normalizing angles to standard bounds.

### Coordinate System Switching
Move data between galactic and equatorial frames using precise rotation matrices.

### Time-Sensitive Calculations
Calculate local sidereal time to align observations with specific UTC timestamps.

## Benefits

- Removes manual spherical trigonometry errors from your agent's workflow.
- Provides precise rotation matrices for system transitions.
- Handles observer-centric calculations like LST automatically.
- Standardizes angles across different celestial and geographic systems.

## How It Works

Connect the MCP to your client and let your agent handle the math.

1. Connect the MCP to Claude, Cursor, or Windsurf via Vinkius.
2. Provide your agent with the target coordinates and system type.
3. Your agent calls the necessary tool to perform the transformation or calculation.
4. Your agent receives the precise numerical result and presents it to you.

## Frequently Asked Questions

**How does this MCP handle observer location?**
For horizontal coordinate conversions, you provide the observer's latitude and longitude, which the tools use to calculate Azimuth and Altitude.

**Can I use this for J2000 epoch calculations?**
Yes, the tools account for specific epochs like J2000 when performing coordinate transformations.

**What coordinate systems are supported?**
The MCP supports equatorial, ecliptic, galactic, and horizontal coordinate systems.

**Do I need to provide UTC time?**
Yes, providing UTC time is required for horizontal conversions to ensure accuracy based on the specific moment of observation.

**How do I get rotation matrices?**
You can use the get_conversion_matrix tool to retrieve the specific matrix needed for a transition between two systems.

**Do I need to provide my location for horizontal conversions?**
Yes, when using `convert_coordinates` to target the horizontal system, you must provide `observerLocation` and `utcTime` to calculate the correct local sidereal time.

**How are the results formatted?**
The tool returns both decimal degrees and sexagesimal (Degrees, Minutes, Seconds) values, along with the transformation matrix used.
