If the mag lock does not have a built in contact(also called a DSM), you will need to install 1 door contact on each door. You can run a short piece of wire between the two door contacts and wire in series.
Also check with you AHJ, your access panel may need to be tied into the fire alarm panel since you are using mag locks. This means if the fire alarm trips the power for the mag locks will need to drop out. You may need to setup an inspection with the fire department. Don't overlook this step as you can get into deep water if it is not done. Also make sure you used a fail safe lock.