# Modal Assurance Criterion Calculator AI Agent Connect

> Modal Assurance Criterion Calculator is a specialized engineering MCP that lets your AI client perform precise structural dynamics calculations. It handles mass-weighted MAC analysis, DOF mapping for mismatched sensor sets, and normalization error checks. You can use it to compare experimental and numerical mode shapes directly within your existing AI-driven workflow.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_QEpPdXG7CGuHpNcUo4LHEhlYnpaSeXN5FnOdMDNY/ai-agent-connect
- **Tags:** modal-analysis, structural-dynamics, mac-matrix, vibration, engineering-tools

## Description

You can use this MCP to automate the heavy lifting involved in structural dynamics validation. Instead of manually running correlation scripts, you can hand your mode-shape vectors to your AI agent and get immediate results. It works by calculating the Modal Assurance Criterion (MAC) to determine how well different sets of vectors, such as experimental data versus numerical models, actually align. 

It handles the messy parts of the math, like applying specific normalization conventions or managing degree-of-freedom (DOF) mapping when your sensor sets don't match up perfectly. You can check the integrity of your input data before running any heavy calculations, ensuring your results aren't skewed by bad vectors. Whether you are comparing analytical models to physical test data or looking for errors introduced by mass-weighting, this MCP provides the mathematical precision needed for reliable structural verification.

## Tools

### get_mode_pair_ranking
Use this to identify which specific mode pairs show the strongest or weakest correlations.

### get_normalization_residuals
This tool quantifies any information loss or errors caused by your chosen normalization and mass-weighting methods.

### validate_mode_shapes
This tool checks your input mode shape vectors to ensure they are mathematically valid and intact.

### calculate_mac_matrix
This tool generates a complete correlation matrix between two distinct sets of mode shapes.

## Prompt Examples

**Prompt:** 
```
Calculate the MAC matrix for these two sets of mode shapes: setA=[[1,0,1],[0,1,0]] and setB=[[1,0,1],[0,1,0]] using unit normalization.
```

**Response:** 
```
The MAC matrix shows a perfect correlation of 1.0 for both modes.
```

**Prompt:** 
```
Find the strongest mode pair correlations from this matrix: [[1, 0.8], [0.8, 1]].
```

**Response:** 
```
The strongest correlation is between mode 0 and mode 1 with a value of 0.8.
```

**Prompt:** 
```
Validate if these mode shapes are real-valued: [[1, 2, 3], [4, 5, 6]].
```

**Response:** 
```
The mode shapes are valid and contain only real values.
```

## Capabilities

### Correlation Matrix Generation
Your agent uses this to build full MAC matrices from mode-shape sets.

### Correlation Ranking
The AI identifies the most and least significant mode correlations in a dataset.

### Error Quantification
This allows the agent to measure residuals from normalization and mass-weighting.

### Input Validation
The agent verifies the mathematical integrity of mode-shape vectors before processing.

### DOF Mapping
Your agent handles mismatched sensor sets through degree-of-freedom mapping.

## Use Cases

### Model Validation
Compare experimental mode shapes from a physical test to a finite element model.

### Sensor Set Comparison
Use DOF mapping to correlate data when sensor locations differ between tests.

### Data Integrity Checks
Run validation on mode-shape vectors to ensure they meet mathematical requirements.

### Error Analysis
Quantify how much information is lost during the normalization process.

## Benefits

- Automates mass-weighted MAC calculations.
- Handles DOF mapping for mismatched sensor configurations.
- Identifies normalization errors through residual analysis.
- Validates input vectors to prevent calculation errors.

## How It Works

Connect your client to Vinkius and start running structural analysis commands immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your mode-shape vectors to your AI agent.
3. The agent uses the MCP tools to perform the math.
4. Receive the resulting MAC matrices or rankings in your chat interface.

## Frequently Asked Questions

**What is the main purpose of this MCP?**
It provides tools for calculating the Modal Assurance Criterion (MAC) to quantify correlations between mode-shape vectors.

**Can I use this with different sensor sets?**
Yes, the MCP includes capabilities for degree-of-freedom (DOF) mapping to handle mismatched sensor sets.

**Does it support mass-weighted analysis?**
Yes, the tools allow for mass-weighted comparisons and can quantify errors introduced by mass-weighting.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

**How does it handle normalization errors?**
The get_normalization_residuals tool specifically quantifies the error or information loss from your chosen normalization.

**What is the purpose of the MAC matrix?**
The MAC matrix quantifies the mathematical similarity between two sets of mode shapes, helping to identify how well different vibration modes correlate.

**How do I handle different numbers of sensors in my datasets?**
You can use the `calculate_mac_matrix` tool with the `mapping` parameter to align specific degrees of freedom between your datasets.

**Can I use mass-weighting for my calculations?**
Yes, by setting `useMassWeighting` to true in `calculate_mac_matrix`, you can account for physical mass distribution at the mapped locations.
