# WCS Coordinate Transformer AI Agent Connect

> WCS Coordinate Transformer MCP handles the math for converting between 2D image pixels and celestial Right Ascension and Declination. It uses the FITS World Coordinate System (WCS) standard and TAN projection to ensure your astronomical data maps accurately to the sky. Your AI client can now perform precise coordinate transformations and validate WCS parameters without manual calculation.

## Overview
- **Category:** astronomy
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_FKwdA2dPS7VXP4mfiyegwirDRtwWNoDdHjcCjTpX/ai-agent-connect
- **Tags:** wcs, fits, astronomy, coordinates, pixel-transform

## Description

If you work with astronomical imagery, you know the headache of mapping pixel locations to actual sky positions. This MCP handles that math for you using the FITS World Coordinate System standard. Instead of writing custom scripts to handle TAN projections, you can ask your AI client to perform the conversion. It maps two-dimensional pixel grids to celestial coordinates like Right Ascension and Declination with high precision. You can use it to find exactly where a star is located on a pixel grid or find which pixel corresponds to a specific RA/Dec coordinate. It also lets you pull scale and orientation data directly from WCS properties or check if your WCS parameters meet FITS standards. It's a direct way to bring spatial awareness to your astronomical data analysis workflows.

## Tools

### get_wcs_properties
This tool extracts the intrinsic scale and orientation of the WCS. Use it to pull specific WCS metadata for your analysis.

### transform_pixel_to_sky
This tool converts specific image pixel coordinates into celestial RA/Dec positions. It handles the projection math for you.

### transform_sky_to_pixel
This tool turns celestial RA/Dec coordinates into specific image pixel locations. It's useful for finding targets within a frame.

### validate_wcs_parameters
This tool checks if your WCS parameters are complete and valid according to FITS standards. It prevents errors in your coordinate math.

## Prompt Examples

**Prompt:** 
```
Convert pixel (100, 200) to sky coordinates with CRPIX={x:50, y:50}, CRVAL={ra:150.0, dec:2.0}, matrix={cd:[[0.0002, 0], [0, 0.0002]]}, projection='TAN', axisOrder='RA_DEC'.
```

**Response:** 
```
The celestial coordinates for pixel (100, 200) are RA 150.0012 and Dec 2.0003.
```

**Prompt:** 
```
What is the pixel scale for a WCS with a CD matrix of [[0.0001, 0], [0, 0.0001]]?
```

**Response:** 
```
The pixel scale is 0.0001 degrees.
```

**Prompt:** 
```
Find the pixel coordinates for RA 150.0 and Dec 2.0 using CRPIX={x:50, y:50}, CRVAL={ra:150.0, dec:2.0}, matrix={cd:[[0.0002, 0], [0, 0.0002]]}, projection='TAN', axisOrder='RA_DEC'.
```

**Response:** 
```
The pixel coordinates for RA 150.0 and Dec 2.0 are x: 50, y: 50.
```

## Capabilities

### Pixel to Sky Mapping
Your agent converts image coordinates to RA and Dec.

### Sky to Pixel Mapping
Your agent finds specific pixel locations from celestial coordinates.

### WCS Metadata Extraction
Your agent retrieves scale and orientation properties.

### Parameter Validation
Your agent verifies WCS data against FITS standards.

## Use Cases

### Target Identification
Find the exact pixel location of a known celestial object within a new image frame.

### Data Validation
Check if your WCS parameters are mathematically valid before running large-scale processing.

### Image Analysis
Convert pixel-based measurements into physical sky units like degrees.

### Coordinate Mapping
Map a 2D pixel grid to a celestial coordinate system using TAN projection.

## Benefits

- Eliminates manual coordinate math errors.
- Uses standard FITS WCS logic for accuracy.
- Reduces the need for custom projection scripts.
- Provides instant validation for WCS parameters.

## How It Works

Connecting this MCP to your client gives your agent immediate access to WCS math tools.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide the WCS parameters or pixel coordinates to your agent.
3. Your agent calls the necessary transformation tool.
4. The MCP performs the calculation using FITS standards.
5. Your agent returns the precise coordinates or properties to you.

## Frequently Asked Questions

**What projection does this MCP use?**
This MCP uses TAN projection for coordinate transformations.

**Does this MCP follow astronomical standards?**
Yes, it follows the FITS World Coordinate System (WCS) standard.

**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 do I validate my WCS data?**
You can use the validate_wcs_parameters tool to check if your data is complete and valid according to FITS standards.

**What kind of coordinates can it handle?**
It handles Right Ascension (RA), Declination (Dec), and 2D pixel coordinates.

**What projections are supported?**
The server currently supports the TAN (Tangent) projection for both forward and inverse transformations.

**How can I verify my WCS parameters are correct?**
You can use the `validate_wcs_parameters` tool to check if your CRPIX, CRVAL, and transformation matrix meet FITS standards.

**Can I get the pixel scale and orientation?**
Yes, the `get_wcs_properties` tool provides the representative angular pixel scale and the rotation angle of the coordinate system.
