Major histocompatibility complex (MHC) proteins are membrane proteins that play a crucial role in the immune system by presenting peptide fragments from proteins to T cells. These proteins are essential for the recognition of self and non-self molecules, helping the immune system distinguish between the body's own cells and foreign invaders, such as pathogens or transplanted tissues.