# Radio Spectral Cube Moments AI Agent Connect

> Radio Spectral Cube Moments MCP gives your AI client the ability to process 3D spectral data. It handles the heavy lifting of calculating physical moments, verifying flux consistency, and managing frequency to velocity conversions so you can focus on interpreting gas kinematics and spatial maps.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_qFV0LXrgGRDW3kmZBw3Dy07pcqZvqWsNBdrWsEd7/ai-agent-connect
- **Tags:** radio-astronomy, spectral-cube, kinematics, physics, data-processing

## Description

You can now perform complex radio astronomy data processing directly through your AI client. This MCP provides the specific tools needed to pull physical properties out of 3D spectral cubes. Instead of running manual scripts for each calculation, you can ask your agent to generate zeroth, first, or second moment maps to describe integrated intensity, velocity, and velocity dispersion. It also handles the tedious math of frequency to velocity conversions and checks if your emission masks are actually covering the data you need. If you need to ensure your results are physically sound, the MCP can validate flux consistency against your metadata and calibration. It turns your conversational interface into a functional workstation for analyzing gas kinematics and spatial distributions.

## Tools

### calculate_moments
This tool computes the primary physical moments for each spatial pixel in your cube. It generates the maps you need for intensity, velocity, and dispersion.

### convert_spectral_units
Use this to get the conversion factor between frequency and velocity for a specific spectral line.

### get_mask_coverage
This tool quantifies how much of your data volume is actually being used by the emission mask.

### validate_flux_consistency
This tool checks if your integrated intensity matches the provided metadata and calibration to ensure physical consistency.

## Prompt Examples

**Prompt:** 
```
Calculate the moment maps for this spectral cube data.
```

**Response:** 
```
The zeroth moment map shows an integrated intensity of 1.25e-15 W/m^2/sr at the center, with a velocity dispersion of 15 km/s.
```

**Prompt:** 
```
What is the coverage fraction of my emission mask?
```

**Response:** 
```
The emission mask covers 42.5% of the total volume, with 12,450 masked voxels.
```

**Prompt:** 
```
Check if the calculated flux is consistent with an expected value of 5.0.
```

**Response:** 
```
The flux is consistent with the expected value, showing a deviation of only 0.02.
```

## Capabilities

### Moment Map Generation
Your agent calculates spatial maps for integrated intensity and velocity dispersion.

### Unit Conversion
Your agent converts frequency values to velocity based on specific spectral lines.

### Mask Analysis
Your agent determines the volume coverage of an emission mask.

### Flux Validation
The tool verifies that integrated intensity aligns with calibration metadata.

## Use Cases

### Kinematic Mapping
Generate velocity dispersion maps to study gas movement in a specific region.

### Data Quality Control
Check if your integrated intensity is physically consistent with your calibration settings.

### Mask Optimization
Determine if your emission mask is capturing enough of the data volume for a valid analysis.

### Spectral Line Analysis
Convert frequency units to velocity to prepare data for kinematic modeling.

## Benefits

- Automates the calculation of zeroth, first, and second moment maps.
- Reduces manual errors in frequency to velocity conversions.
- Provides instant verification of flux consistency against metadata.
- Speeds up the assessment of emission mask coverage.

## How It Works

Connect your client to Vinkius and start querying your spectral data immediately.

1. Connect your MCP-compatible client to the Vinkius hosted MCP.
2. Provide your spectral cube data to your agent.
3. Ask your agent to perform specific calculations like moment maps or unit conversions.
4. Receive processed physical properties and maps directly in your chat interface.

## Frequently Asked Questions

**What kind of data does this MCP process?**
This MCP is designed specifically for 3D radio spectral cubes used in astronomy.

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

**Does it handle velocity dispersion?**
Yes, the calculate_moments tool computes the second moment, which describes velocity dispersion.

**How does it check flux consistency?**
It compares the integrated intensity against your provided metadata and calibration to ensure the values are physically consistent.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect.

**What kind of data does this server process?**
It processes 3D radio spectral cubes, including intensity data, channel coordinates, emission masks, and per-channel noise levels.

**How do I ensure my flux calculations are correct?**
You can use the `validate_flux_consistency` tool to compare your calculated zeroth moment map against an expected flux value.

**Can I convert frequency units to velocity?**
Yes, the `convert_spectral_units` tool provides the necessary conversion factors based on the rest frequency and channel width.
