Acute myocardial infarction (AMI) is a significant health problem owing to its high mortality rate. Heart-type fatty acid-binding protein (h-FABP) is an important biomarker in the diagnosis of AMI. In this work, an electrochemical h-FABP immunosensor was developed based on Cd 0.5 Zn 0.5 S/d-Ti 3 C 2 T x MXene (MXene: Transition metal carbide or nitride) composite as signal amplificator and core-shell high-crystalline graphitic carbon nitride@carbon dots (hc-g-C 3 N 4 @CDs) as electrochemical sensor platform. Firstly, a facile calcination technique was applied to the preparation of hc-g-C 3 N 4 @CDs and immobilization of primary antibody was performed on hc-g-C 3 N 4 @CDs surface. Then, the conjugation of the second antibody to Cd 0.5 Zn 0.5 S/d-Ti 3 C 2 T x MXene was carried out by strong π-π and electrostatic interactions. The prepared electrochemical h-FABP immunosensor was characterized by transmission electron microscopy (TEM), scanning electron microscopy (SEM), x-ray diffraction (XRD) method, Fourier-transform infrared spectroscopy (FTIR), x-ray photoelectron spectroscopy (XPS), cyclic voltammetry (CV), and electrochemical impedance spectroscopy (EIS). The prepared electrochemical h-FABP immunosensor indicated a good sensitivity with detection limit (LOD) of 3.30 fg mL −1 in the potential range +0.1 to +0.5 V. Lastly, low-cost, satisfactory stable, and environmentally friendly immunosensor was presented for the diagnosis of acute myocardial infarction.