We present a Mathematica program package MagneticTB, which can generate the tight-binding model for arbitrary magnetic space group. The only input parameters in MagneticTB are (magnetic) group number and orbital information each Wyckoff positions. Some useful functions including getting matrix expression symmetry operators, manipulating energy band structure by interfacing with other software a...