The decoding of motor imagery (MI) in electroencephalogram (EEG) relies on the in-depth exploration of its spatiotemporal features. However, existing methods have struggled to capture the spatiotemporal dynamics of brain networks, lacking mechanisms for noise-robust extraction of key spatial features from multiple perspectives and failing to adequately model spatiotemporal interaction relationships. To address these challenges, this study proposes MBDSTGAT, a multibranch dynamic spatiotemporal graph attention network (GAT) with topology perturbation. The proposed network integrates three core components: a multimode topology perturbation (MTP) mechanism, a multibranch dynamic strong-connection attention (MBDSCA) fusion structure, and a segmented spatiotemporal graph (SSTG) modeling strategy. The MTP mechanism enhances model robustness through three perturbation modes, namely edge, edge weight, and hybrid, which simulate the variability of brain connectivity. The MBDSCA module employs multiple branches with distinct parameter matrices to extract multiperspective spatial features, where each branch uses an annealing-based Top-K neighbor selection strategy embedded in the message-passing process of the GAT to dynamically emphasize salient and strongly connected neural interactions. Finally, the SSTG strategy integrates spatial features and temporal segments into a unified graph, in which a spatiotemporal GAT models cross-scale dependencies to refine discriminative representations. In large-scale cross-session and cross-subject experiments, the proposed network achieved average accuracies of 97.76% and 82.34%, 86.57% and 67.50%, and 98.75% and 87.55% on the High Gamma dataset (HGD), BCIC-IV-2a, and self-collected VR-MI datasets, respectively, outperforming existing methods and reaching state-of-the-art levels. In conclusion, MBDSTGAT effectively models the spatiotemporal dynamics of EEG signals and demonstrates superior MI decoding performance. The code and self-collected dataset for this study are openly available at https://github.com/shanmaojimu/MBDSTGAT