A blender add-on that automatically re-aligns wrong axis objects.

There are three options available in the 3D Viewport > Sidebar > Item > Auto Align.
Rotate : Rotate the selected object to match the world axis.Rotate & Bake : Same as Rotate, but rotation is applied.Keep Position & Bake : Keep the object fixed and only change the local axis.
Also there is a symmetry option. This option can be used to align symmetrical objects, even though there are not many orthogonal faces to the axis. It's a bit slower, but effective when aligning organic objects, such as people.

symmetry option, the model doesn't need to be completely symmetrical because the algorithm considers the outlier.The proper orientation of the object is calculated as follows:
Criterion is to maximize the sum of the areas of the face.
Correction
Repeat until convergence.
XYZ adjustment
For each object, only up to 104 faces are considered in the process. This is due to performance reason. If there are more than 104 faces, larger faces would be considered first.
When the symmetry option is on, the symmetry plane must be derived before RANSAC.
$ claude mcp add Auto-Align \
-- python -m otcore.mcp_server <graph>