A coffee machine strainer (3) and a coffee machine. The coffee machine strainer (3) comprises: a first strainer body (31) configured to be a vertically extending cylinder; and a second strainer body (32) configured to be ring-shaped, the edge of an inner ring being sealedly connected to the lower part of the first strainer body (31). During a coffee stirring process, coffee particles can be prevented from passing through the strainer (3), so as to improve the quality of coffee drinks.