Motivated by an optimal visiting problem, we study a switching mean-field game on a network, where both a decisional and a switching time-variable is at disposal of the agents for what concerns, respectively, the instant to decide and the instant to perform the switch. Every switch between the nodes of the network represents a switch from 0 to 1 of one component of the string p = (p 1 , . . . , pn) which, in the optimal visiting interpretation, gives information on the visited targets, being the targets labeled by i = 1, . . . , n. The goal is to reach the final string (1, . . . , 1) in the final time T , minimizing a switching cost also depending on the congestion on the nodes. We prove the existence of a suitable definition of an approximated ε-mean-field equilibrium and then address the passage to the limit when ε goes to 0.