James Lewin McGregor (May 31, 1921, Crawford Bay, British Columbia – January 3, 1988, Mountain View, California) was a mathematician who introduced Karlin–McGregor polynomials.
A native of Canada he served in the Canadian military during World War II. He received his undergrad degree from the University of British Columbia. He received his PhD from Cal Tech and then became a professor of mathematics at Stanford University.