The invention relates to a modular interim joint prosthesis (1) that can be inserted into a long bone, for replacing an explanted joint endoprosthesis, wherein the interim joint prosthesis has a main body (20; 40) having a main-body coupling segment (24; 44) and has a shaft (60) having a shaft coupling segment (64) and the shaft coupling segment (64) can be detachably coupled to the main-body coupling segment (24; 44).