Calculating MOSFET gate current at certain PWM frequency
You should first put a gate stopper resistor, \$R_G\$, to limit the current drawn from the MCU's pin when turning the MOSFET on (remember that there is a large capacitor, \$C_{iss}\$, at MOSFET's gate, and it may draw a large current even for a short time when driven from a low-resistance source).
This resistor and the input capacitance of the MOSFET also form a 1st order LPF having a cutoff frequency of \$f_C = (2\pi \ R_G \ C_{iss})^{-1}\$. Since a PWM is the case, \$R_G\$ should be selected such that \$f_C\$ can be at least 5 times the PWM frequency, to prevent the PWM signal will not be chopped off at the gate of the MOSFET:
$$
\mathrm{
f_c = 5\cdot490Hz \approx2.5kHz &lt; (2\pi \ R_G \ C_{iss})^{-1} \\
2500 &lt; (2\pi \ R_G \ 10nF)^{-1} \rightarrow R_G\leq6.3 k \Omega
}
$$
This resistor will limit the instantenous current drawn from the MCU's pin to less than 1mA.
As BeB00 suggested, it would be better if you use another NMOS with lower gate charge and input capacitance.

If you really worry about the MCU's pins and cannot trust the gate stopper resistor then you can put a totem-pole before the MOSFET:



simulate this circuit &ndash; Schematic created using CircuitLab
This configuration significantly reduces the current drawn from MCU's pin.