The server shouldn't care as spanning-tree is used between switches. Edge devices are plugged in to spanning-tree enabled ports all the time without any issues.
However, this will do it per-interface in interface-configuration mode:
spanning-tree bpdufilter enable
Beware that if a switch port so configured becomes connected to another switch in a loop, it will bring the whole network crashing down in short order.
I agree not what i would call best pratice however the nec manual clearly states that it needs to be off.