M. Joseph Rocks (born June 6, 1947) is an American politician from Pennsylvania who served as a Democratic member of the Pennsylvania Senate for the 4th district from 1983 to 1988 and as a Republican member of the same Senate district from 1988 to 1990. He also served as a Republican member of the Pennsylvania House of Representatives, District 199 from 1979 to 1982.