Is mahavir god
No. In Jainism, Mahavir Swami is the 24th Tirthankara (a liberated, enlightened teacher who shows the path to liberation). He is not considered a creator god. Jainism holds that there are many Tirthankaras who have achieved kevala jnana (omniscience) and spiritual liberation, but there is no belief in a personal creator God. Both Digambar and Shwetambar traditions affirm Mahavir as a revered Tirthankara, not as a god.