A magnetic screw device of a bone screw and one or more magnets that are attached to the bone screw. The bone screw may have a stem, which comprises a connector and at least one thread, and a housing assembly. The connector of the stem may be configured to articulate with the housing assembly such that the stem can rotate and angulate relative to the housing assembly. The magnetic screw device may be used to treat or stabilize spines with abnormal curvature, prevent further curvature progression, and relieve pain associated with abnormal curvature.