# Keplerian RV Model for exoplanet science. AI Agent Connect

> Keplerian RV Model gives your AI client the mathematical tools needed to model radial velocity (RV) for star systems. You can predict total RV and individual component contributions, check model accuracy against observed data, calculate parameter sensitivity, and verify that your orbital configurations are physically stable.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_WCIKrrIHuIow1I6QXUG1Voqf2CUK7jl7WGsDdzKN/ai-agent-connect
- **Tags:** exoplanet, radial-velocity, keplerian, astrophysics, orbital-mechanics

## Description

You can use this MCP to handle the heavy lifting of radial velocity modeling within your existing AI workflows. Instead of manually calculating orbital parameters, you can ask your agent to predict total radial velocities or break down the contributions of individual components in a multi-companion system. It handles the math for predicting velocities at specific observation times, making it easier to compare theoretical models against real-world data. 

Beyond simple prediction, the MCP helps you vet your models. You can check how well a model fits your observed velocity points or determine how sensitive the radial velocity is to specific changes in orbital parameters. It also includes a safety check for physical consistency, allowing you to catch issues like orbit crossings that would make a system unstable. This turns your AI client into a specialized tool for astrophysics research and orbital mechanics validation.

## Tools

### analyze_model_residuals
This tool evaluates how well your model fits specific observed velocity data points.

### calculate_rv_model
This tool predicts the total radial velocity and the individual contributions of each component for a set of observation times.

### compute_parameter_derivatives
This tool calculates how sensitive the radial velocity is to changes in orbital parameters.

### validate_orbital_stability
This tool checks your model for physical inconsistencies, such as orbit crossings.

## Prompt Examples

**Prompt:** 
```
Predict the radial velocity for a system with a companion having a period of 10 days and semi-amplitude of 5 m/s.
```

**Response:** 
```
The predicted radial velocity at the requested epoch is 4.85 m/s.
```

**Prompt:** 
```
Check if these two orbital parameters result in a stable configuration.
```

**Response:** 
```
The configuration is stable; no orbit crossings were detected.
```

**Prompt:** 
```
Calculate the residuals for my observed data points.
```

**Response:** 
```
The residuals for the provided epochs are [0.12, -0.05, 0.22, -0.11].
```

## Capabilities

### RV Prediction
Your agent calculates total and component-specific radial velocities for any given time.

### Model Fitting
Your agent checks the accuracy of your model by analyzing residuals against observed data.

### Sensitivity Analysis
Your client computes derivatives to see how orbital parameter shifts affect velocity.

### Stability Verification
The MCP identifies physical errors like orbit crossings in your proposed models.

## Use Cases

### Multi-body System Modeling
Predict the combined radial velocity of a star with multiple orbiting companions.

### Model Validation
Check if a proposed orbital model matches your actual velocity observations.

### Stability Testing
Verify that a set of orbital parameters won't result in impossible orbit crossings.

### Parameter Sensitivity
Determine how much a small change in an orbit affects the observed radial velocity.

## Benefits

- Automates radial velocity predictions for multi-companion systems.
- Identifies physical inconsistencies like orbit crossings automatically.
- Provides direct sensitivity analysis for orbital parameters.
- Enables quick comparison between models and observed data points.

## How It Works

Connect the MCP to your AI client to start running orbital mechanics calculations.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your orbital parameters or observed data to your AI agent.
3. Your agent calls the specific Keplerian tool needed for the task.
4. The MCP executes the math and returns the results to your agent.
5. Your agent presents the predictions, residuals, or stability checks to you.

## Frequently Asked Questions

**What can this MCP do for exoplanet research?**
It models radial velocities for star systems, checks model fit against data, and validates that orbits are physically stable.

**How do I use this with Claude or Cursor?**
You connect once through Vinkius, and the tools become available as functions your AI client can call directly.

**Can it detect unstable orbits?**
Yes, the validate_orbital_stability tool checks for physical inconsistencies like orbit crossings.

**Does it support multi-companion systems?**
Yes, the calculate_rv_model tool can predict both total radial velocity and individual component contributions.

**What kind of data does it need for residuals?**
You provide your observed velocity data points, and the analyze_model_residuals tool calculates the fit.

**What can I calculate with this model?**
You can predict radial velocities, analyze model residuals, compute parameter derivatives, and validate orbital stability using tools like `calculate_rv_model` and `validate_orbital_stability`.

**How does the model handle multiple planets?**
The model supports multi-companion systems by summing the individual Keplerian contributions of each companion to the total radial velocity.

**Can I check if my orbital configuration is physically valid?**
Yes, you can use `validate_orbital_stability` to check for physical inconsistencies such as orbit crossings.
