"This is a great opportunity for James," said Cobblers boss Stuart Gray.
"James was on the transfer list when I took over in January and in joining Scunthorpe he has got the chance to play a part in their promotion push."