The invention relates to a modular interim joint prosthesis that can be inserted into a long bone, for replacing an explanted joint endoprosthesis, wherein the interim joint prosthesis has a main body having a main-body coupling segment and has a shaft having a shaft coupling segment and the shaft coupling segment can be detachably coupled to the main-body coupling segment.