Spacer device (1) for the two-phase treatment of infections of anatomic and reverse shoulder prostheses, comprising a humeral component (10) equipped with a stem (2), a head component (30) and means for connecting or articulating (20) the humeral component (10) with the head component (30).