The vehicle and TMD were modeled as a combination of several rigid bodies, which were connected together by a series of springs and dampers, the bridge was modeled by beam elements, and thus the spatial vibration equation of the system of TMD, vehicle and bridge was established, which was solved by direct integral method. A highway and railway bi-purpose cable-stayed bridge was taken as an example, the spatial vibration responses were calculated when the train and car run through the bridge, and the influence of TMD on the vibration response was discussed. The results show that the bridge has the sufficient lateral and vertical stiffness, the train and car affect each other when they cross the bridge at the same time, and TMD can play a good role in controlling the vibration response of long span cable-stayed bridge-train-car coupling system.