Metal-embedded complexes (MECs), including transition metal complexes (TMCs) and metal-organic frameworks (MOFs), are important in catalysis, materials science, and molecular devices due to their unique metal atom centrality and complex coordination environments. However, modeling and predicting their properties accurately is challenging. A new metal attention (MA) framework for graph neural networks (GNNs) was proposed to address the limitations of traditional methods, which fail to differentiate core coordination structures from ordinary covalent bonds. This MA framework converts heterogeneous graphs of complexes into homogeneous ones with distinct metal features by highlighting key metal-feature coordination through hierarchical pooling and a metal cross-attention. To assess its performance, 11 widely used GNN algorithms, three of which are heterogeneous, were compared. Experimental results indicate significant improvements in accuracy: an average of 32.07% for predicting TMC properties and up to 23.01% for MOF CO