# Orbital Elements & State Vectors Converter AI Agent Connect

> Orbital Elements & State Vectors Converter MCP handles the heavy math for astrodynamics. Your AI client uses this tool to switch between Cartesian state vectors and classical Keplerian elements, calculate orbital distances like periapsis and apoapsis, and identify specific trajectory types.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_11RePtivfvjO4tOqXgNiw9eviFgl9ep3EFLkH6LO/ai-agent-connect
- **Tags:** orbital-mechanics, astrodynamics, keplerian, physics, space-navigation

## Description

You can now give your AI agent the ability to solve complex orbital mechanics problems without writing custom math scripts. This MCP handles the high-precision transformations between position and velocity vectors and classical Keplerian elements. If you have Cartesian state vectors, your agent can derive the semimajor axis, eccentricity, inclination, and other critical parameters. It also identifies the specific nature of a trajectory, such as whether an orbit is circular, parabolic, or retrograde. Instead of manually calculating distances, you can have your agent find periapsis and apoapsis values directly. It is a specialized math engine for anyone working in space navigation or astrodynamics who needs an AI client to process orbital data accurately.

## Tools

### calculate_orbital_distances
This tool computes the specific distances for an orbit. It finds the periapsis and apoapsis values based on provided orbital parameters.

### analyze_orbit_type
This tool identifies the specific classification of an orbit. It determines if a trajectory is circular, equatorial, parabolic, or retrograde.

### convert_elements_to_state
This tool transforms classical orbital elements into Cartesian state vectors. It converts Keplerian parameters into position and velocity data.

### convert_state_to_elements
This tool converts Cartesian state vectors into classical orbital elements. It turns position and velocity data into semimajor axis, eccentricity, and inclination.

## Prompt Examples

**Prompt:** 
```
Convert these state vectors to orbital elements: position [7000, 0, 0] and velocity [0, 7.5, 0] with a gravitational parameter of 398600.
```

**Response:** 
```
The orbital elements are: semimajor axis 7000.0, eccentricity 0.0, inclination 0.0, ascending node 0.0, argument of periapsis 0.0, and true anomaly 0.0.
```

**Prompt:** 
```
What are the periapsis and apoapsis distances for an orbit with a semimajor axis of 10000 and eccentricity of 0.1?
```

**Response:** 
```
The periapsis distance is 9000.0 and the apoapsis distance is 11000.0.
```

**Prompt:** 
```
Is an orbit with eccentricity 0.0 and inclination 0.0 considered circular or equatorial?
```

**Response:** 
```
The orbit is both circular and equatorial.
```

## Capabilities

### Vector Transformation
Your agent converts position and velocity data into Keplerian elements.

### Trajectory Classification
Your agent identifies if an orbit is circular, parabolic, or retrograde.

### Distance Calculation
Your agent finds the periapsis and apoapsis of a specific orbit.

### Parameter Derivation
The tool extracts semimajor axis and eccentricity from state vectors.

## Use Cases

### Trajectory Analysis
Your agent checks if a satellite is in a circular or retrograde orbit.

### Mission Planning
You calculate the closest and furthest points of an orbit using periapsis and apoapsis tools.

### Data Conversion
You turn Cartesian position and velocity data into Keplerian elements for easier reading.

### Orbital Verification
You use the tool to confirm orbital parameters from raw telemetry data.

## Benefits

- Eliminates manual math errors in orbital transformations.
- Provides instant classification of orbital trajectories.
- Converts between coordinate systems without custom code.
- Calculates critical orbital distances on demand.

## How It Works

Connect your client to Vinkius to start running orbital math immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your AI agent with state vectors or orbital elements.
3. Your agent invokes the specific conversion or calculation tool.
4. The MCP returns high-precision mathematical results to your agent.

## Frequently Asked Questions

**What can this MCP convert?**
It converts between Cartesian state vectors, which include position and velocity, and classical Keplerian orbital elements.

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

**Does it calculate orbital distances?**
Yes, it includes a tool to calculate both periapsis and apoapsis distances.

**How does it identify orbit types?**
The analyze_orbit_type tool checks if a trajectory is circular, equatorial, parabolic, or retrograde.

**Do I need to host the math engine myself?**
No, Vinkius hosts and manages the MCP so it is ready to use immediately upon connection.

**What can I calculate with this server?**
You can convert position and velocity vectors into orbital elements, reconstruct state vectors from elements, calculate orbital distances, and analyze orbit types.

**How do I handle parabolic orbits?**
The `convert_state_to_elements` tool explicitly handles parabolic trajectories by identifying when the specific orbital energy indicates a parabolic path.

**Does it support different gravitational parameters?**
Yes, all tools require a `gravitationalParameter` (mu) to be provided, allowing for calculations around any celestial body like Earth, Mars, or the Sun.
