# Two-Body Orbit Propagator AI Agent Connect

> Two-Body Orbit Propagator MCP provides high-precision orbital mechanics tools based on the two-body point-mass model. It uses universal variables and Stumpff functions to handle circular, elliptical, parabolic, and hyperbolic orbits without losing accuracy. You can propagate state vectors, work with classical orbital elements, and verify physical conservation laws directly through your AI client.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_nZzlFcdvIPvzdHzk9NRl6WLwgMVg6t6ujiLxbqdF/ai-agent-connect
- **Tags:** orbit, physics, astrodynamics, space, mechanics

## Description

You can now perform complex astrodynamics calculations directly within your AI client. This MCP uses the two-body point-mass model to handle orbital propagation across any eccentricity type. Because it relies on universal variables and Stumpff functions, the math stays stable whether you are working with a circular orbit or a hyperbolic escape trajectory. 

You can feed your agent specific position and velocity vectors to see where a satellite will be in the future, or provide classical orbital elements to define a path. If you need to check the fundamental physics of a specific state, the MCP calculates energy and angular momentum for you. It also includes a validation step to ensure your results respect physical invariants, so you can trust the numerical stability of the propagation. This makes it a reliable tool for orbital modeling and trajectory analysis without needing to write the underlying math from scratch.

## Tools

### get_orbital_constants
Calculates fundamental orbital constants like energy and angular momentum from a state vector.

### propagate_from_elements
Moves an orbit forward or backward in time using classical orbital elements.

### propagate_from_state
Propagates an orbit based on a known position and velocity vector.

### validate_conservation
Checks physical invariants to confirm the numerical stability of a propagation.

## Prompt Examples

**Prompt:** 
```
Propagate an orbit from this position [7000, 0, 0] and velocity [0, 7.5, 0] with mu = 398600 for 3600 seconds.
```

**Response:** 
```
[6982.4, 2695.1, 0.0]
```

**Prompt:** 
```
Calculate the orbital constants for a position [7000, 0, 0] and velocity [0, 7.5, 0] with mu = 398600.
```

**Response:** 
```
Energy: -28.47, Angular Momentum: [0, 0, 52500], Eccentricity Vector: [0, 0, 0]
```

**Prompt:** 
```
What are the orbital elements for a state with position [7000, 0, 0] and velocity [0, 7.5, 0] where mu is 398600?
```

**Response:** 
```
Semi-major axis: 7250, Eccentricity: 0.034, Inclination: 0, LAN: 0, Arg of Periapsis: 0, True Anomaly: 0
```

## Capabilities

### Universal Variable Propagation
Your agent uses Stumpff functions to maintain accuracy across all orbit types.

### State Vector Conversion
Your AI client can derive orbital constants from position and velocity data.

### Classical Element Modeling
The tool handles trajectory prediction using standard orbital elements.

### Physical Invariant Checking
Your agent verifies that propagation results remain physically consistent.

## Use Cases

### Trajectory Prediction
Predict where a satellite will be after a specific time interval using state vectors.

### Orbit Characterization
Convert raw position and velocity data into classical orbital elements.

### Physics Validation
Confirm that a numerical propagation hasn't drifted by checking physical invariants.

### Orbital Constant Calculation
Quickly find the energy and angular momentum of a specific orbital state.

## Benefits

- Handles all eccentricity types including parabolic and hyperbolic orbits.
- Maintains numerical stability through universal variable math.
- Provides direct validation of physical conservation laws.
- Eliminates the need to manually implement Stumpff functions.

## How It Works

Connect your AI client to the Vinkius-hosted MCP to start running orbital math immediately.

1. Connect your client to the Two-Body Orbit Propagator MCP via Vinkius.
2. Provide your agent with position, velocity, or orbital elements.
3. Your agent calls the specific tool to perform the calculation.
4. The results are returned directly to your chat or code environment.

## Frequently Asked Questions

**What kind of orbits does this MCP support?**
It supports all eccentricity types, including circular, elliptical, parabolic, and hyperbolic orbits, thanks to the use of universal variables.

**How does it ensure calculation accuracy?**
The MCP uses Stumpff functions and universal variables to ensure continuous and accurate propagation across different orbit shapes.

**Can I verify if my orbital propagation is correct?**
Yes, you can use the validate_conservation tool to check if the propagation respects physical invariants.

**What inputs are required for propagation?**
You can propagate using either state vectors (position and velocity) or classical orbital elements.

**Which AI clients can use this MCP?**
Any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code can use this tool once connected through Vinkius.

**What mathematical model is used for propagation?**
The server uses the two-body point-mass model with universal variables and Stumpff functions to handle all conic sections.

**How can I check if my orbit propagation is accurate?**
You can use the `validate_conservation` tool to check if specific mechanical energy and angular momentum were preserved during the propagation.

**Can I propagate orbits backward in time?**
Yes, by providing a negative value for the target epoch offset in `propagate_from_state` or `propagate_from_elements`.
