Morgenstern has cited Susanna Clarke’s Jonathan Strange & Mr. Norrell and Christopher Priest’s The Prestige as influences on the novel.
Consider also Shakespeare’s The Tempest and Romeo and Juliet, both of which are heavily alluded to in The Night Circus and feature similar themes.
Consider also Nights at the Circus by Angela Carter, which details another mysterious (possibly magical) circus.