A magnetic robot comprising: a moving part which is movable under a control of an external magnetic field; and an inspection part coupled to a front end of the moving part , wherein the inspection part includes: a body provided at a front end thereof with a tissue sampling needle and having a first accommodation part formed at a position adjacent to the tissue sampling needle and a second accommodation part formed at a position adjacent to the first accommodation part and having a predetermined length in the longitudinal direction; a cover for covering the body ; and a cover-moving part for moving the cover between a first position and a second position having a fixed magnet inserted into the first accommodation part such that rotation of the fixed magnet is restricted and a rotating magnet located in the second accommodation part and freely rotatable about a coupling shaft of the cover under the control of the external magnetic field, and the tissue sampling needle is accommodated in the cover when the cover is located in the first position as the rotating magnet moves toward the tissue sampling needle by the attractive force between the fixed magnet and the rotating magnet , and the tissue sampling needle is exposed to an outside of the cover when the cover is located in the second position as the rotating magnet moves away from the tissue sampling needle by an repulsive force between the fixed magnet and the rotating magnet . a moving part which is movable under a control of an external magnetic field; and an inspection part coupled to a front end of the moving part , wherein the inspection part includes: a body provided at a front end thereof with a tissue sampling needle and having a first accommodation part formed at a position adjacent to the tissue sampling needle and a second accommodation part formed at a position adjacent to the first accommodation part and having a predetermined length in the longitudinal direction; a cover for covering the body ; and a cover-moving part for moving the cover between a first position and a second position having a fixed magnet inserted into the first accommodation part such that rotation of the fixed magnet is restricted and a rotating magnet located in the second accommodation part and freely rotatable about a coupling shaft of the cover under the control of the external magnetic field, and a body provided at a front end thereof with a tissue sampling needle and having a first accommodation part formed at a position adjacent to the tissue sampling needle and a second accommodation part formed at a position adjacent to the first accommodation part and having a predetermined length in the longitudinal direction; a cover for covering the body ; and a cover-moving part for moving the cover between a first position and a second position having a fixed magnet inserted into the first accommodation part such that rotation of the fixed magnet is restricted and a rotating magnet located in the second accommodation part and freely rotatable about a coupling shaft of the cover under the control of the external magnetic field, and the tissue sampling needle is accommodated in the cover when the cover is located in the first position as the rotating magnet moves toward the tissue sampling needle by the attractive force between the fixed magnet and the rotating magnet , and the tissue sampling needle is exposed to an outside of the cover when the cover is located in the second position as the rotating magnet moves away from the tissue sampling needle by an repulsive force between the fixed magnet and the rotating magnet . <EOS>