Graphene quantum dots (GQDs) have attracted significant attention in biomedicine, while extensive investigations have revealed a reverse regarding the potential biotoxicity of GQDs. In order to supplementing the understanding of the toxicity profile of GQDs, this study employs a molecular dynamics (MD) simulation approach to systematically investigate the potential toxicity of both GQDs and Graphene Oxide Quantum Dots (GOQDs) on the Anterior Gradient Homolog 2 (AGR2) protein, a key protein capable of protecting the intestine. We construct two typical simulation systems, in which an AGR2 protein is encircled by either GQDs or GOQDs. The MD results demonstrate that both GQDs and GOQDs can directly make contact with and even cover the active site (specifically, the Cys81 amino acid) of the AGR2 protein. This suggests that GQDs and GOQDs have the capability to inhibit or interfere with the normal biological interaction of the AGR2 active site with its target protein. Thus, GQDs and GOQDs exhibit potential detrimental effects on the AGR2 protein. Detailed analyses reveal that GQDs adhere to the Cys81 residue due to van der Waals (vdW) interaction forces, whereas GOQDs attach to the Cys81 residue through a combination of vdW (primary) and Coulomb (secondary) interactions. Furthermore, GQDs aggregation typically adsorb onto the AGR2 active site, while GOQDs adsorb to the active site of AGR2 one by one. Consequently, these findings shed new light on the potential adverse impact of GQDs and GOQDs on the AGR2 protein via directly covering the active site of AGR2, providing valuable molecular insights for the toxicity profile of GQD nanomaterials.