Heat shock proteins (HSPs) are a class of highly conserved proteins that play an important role in biological responses to various environmental stresses. The mariculture of Thamnaconus septentrionalis, a burgeoning aquaculture species in China, frequently encounters stressors such as extreme temperatures, salinity variations, and elevated ammonia levels. However, systematic identification and analysis of the HSP70 and HSP90 gene families in T. septentrionalis remain unexplored. This study conducted the first genome-wide identification of 12 HSP70 and 4 HSP90 genes in T. septentrionalis, followed by a comprehensive analysis including phylogenetics, gene structure, conserved domains, chromosomal localization, and expression profiling. Expression analysis from RNA-seq data across various tissues and developmental stages revealed predominant expression in muscle, spleen, and liver, with the highest expression found during the tailbud stage, followed by the gastrula, neurula, and juvenile stages. Under abiotic stress, most HSP70 and HSP90 genes were upregulated in response to high temperature, high salinity, and low salinity, notably hspa5 during thermal stress, hspa14 in high salinity, and hsp90ab1 under low salinity conditions. Ammonia stress led to a predominance of downregulated HSP genes in the liver, particularly hspa2, while upregulation was observed in the gills, especially for hsp90b1. Quantitative real-time PCR analysis corroborated the expression levels under environmental stresses, validating their involvement in stress responses. This investigation provides insights into the molecular mechanisms of HSP70 and HSP90 in T. septentrionalis under stress, offering valuable information for future functional studies of HSPs in teleost evolution, optimizing aquaculture techniques, and developing stress-resistant strains.