Anaplasma phagocytophilum (formerly known as the human granulocytic ehrlichia, Ehrlichia equi and Ehrlichia phagocytophila) is an obligate intracellular organism causing clinical disease in humans and various species of domestic animals. The objectives of this investigation were to sequence and clone the major surface protein 5 (MSP5) of A phagocytophilum and to evaluate the suitability of this antigen in the serologic diagnosis of anaplasmosis in humans and dogs. The msp5 gene of A phagocytophilum was sequenced, cloned, and expressed in Escherichia coli. The predicted amino acid sequence homology of the various MSP5/major antigenic protein 2 orthologs was compared among various Anaplasma and Ehrlichia species. Recombinant MSP5 of A phagocytophilum was used in an ELISA to detect antibodies in serum samples from humans and dogs infected with the organism. Serum samples from 104 individuals previously diagnosed with A phagocytophilum infection, as well as samples from clinically healthy humans, were tested. In addition, multiple samples from 4 dogs experimentally infected with 2 different geographic isolates of A phagocytophilum and 5 dogs naturally infected with a Swiss isolate were tested using ELISA. Using this group of immunofluorescent antibody test-positive and immunofluorescent antibody test-negative samples, we found the overall agreement between assays to be >90%. These results indicate that recombinant MSP5 has potential for use as a diagnostic test antigen to detect infection with A phagocytophilum in both dogs and humans. However, sequence similarities among orthologs of MSP5 in related species of anaplasma and ehrlichia suggest that cross-reactivity among these pathogens is likely if the entire peptide is used as a test antigen.