Offside Line Calculator

Offside Line Calculator MCP Connector for Claude

A+

Determines football offside status and margins using defender and ball coordinates.

4 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides precise tools for calculating offside positions in football. By analyzing the X and Y coordinates of the attacking player, the ball, and the defenders, it applies the second-last opponent rule to determine the offside line. It can identify if a player is onside or offside and calculate the exact margin in meters. Use get_offside_status to find the status and margin, validate_pitch_coordinates to ensure data integrity, get_defender_proximity to check defensive gaps, and get_reference_line_type to see if the goal line or a defender defines the line.

footballsocceroffsidegeometrysports-analytics

4 tools expose this connector's capabilities to your AI agent.

get_defender_proximity

Calculates proximity to defenders

get_offside_status

get_reference_line_type

Identifies reference line type

validate_pitch_coordinates

Validates pitch boundaries

See how to talk to your AI agent using Offside Line Calculator.

Is the attacker at (85, 34) offside? The ball is at (80, 34), the goal line is at 105, and defenders are at (90, 30) and (95, 35).

No, the attacker is onside because they are behind the ball.

Calculate the offside status for an attacker at (92, 34) when the ball is at (80, 34) and defenders are at (95, 30) and (98, 35). The goal line is at 105.

The attacker is offside with a margin of 3 meters from the reference line.

Check if the coordinates (110, 40) are valid for a standard pitch of 105x68.

The coordinates are invalid because the X-coordinate exceeds the pitch length.

The offside line is defined by the second-to-last opponent. If there are fewer than two opponents between the attacker and the goal, the goal line itself becomes the reference line.

Related Connectors