The answer of @Tom Cornebize is mathematically correct, but leads to numerical problem. The numerical problem originates from the fact that we are calculating the difference of two larger number to get a small number, which is limited by the numerical precision. An extreme example is we want to calculate $A - B$ where $A$ and $B$ are two floats with 5 digits and their exact value is $A = 5 \times 10^{100}$ and $B = 5 \times 10^{100} - 1$. The representation of float value will totally ignore the 1 at the end and gives a zero.
To be more precise, each item in the expression given by @Tom Cornebize has order of magnitude $\sim N^2$, while their sum/difference is supposed to $\sim N$ for $N \times MSE$, and the large difference in their order of magnitudes will give incorrect result.
Instead, we want to calculate $N \times MSE$ by the following way: we already have an analytical expression for $N \times MSE$, and we would like to calculate the analytical expression where those large terms cancel each other, so we are only left with those terms up to order of magnitude $\sim N$ or even smaller.
We already have the online algorithm for variance $var_n(x)$ and $var_n(y)$ and covariance $cov_n(x, y)$ from Wikipedia , and each of them has order of magnitude $O(1)$, so we can calculate the MSE by the expression
$$MSE_n = var_n(y) - \frac{cov_n(x, y)^2}{var_n(x)}$$
where $n$ is the index of sample the algorithm is up to.
An even better way is to cancel out the $O(1)$ items from the above expression, and calculate the incremental value as
$$MSE_n = MSE_{n-1} + \Delta MSE$$
We make use of the result from online algorithm of variance and covariance in the following:
$$n MSE_n = (n-1) MSE_{n-1} + \Delta$$
$$n var_n(y) = (n-1) var_{n-1} + \Delta_y$$
$$n var_n(x) = (n-1) var_{n-1} + \Delta_x$$
$$n cov_n(x, y) = (n-1) cov_{n-1}(x, y) + \Delta_{x,y}$$
where $\Delta_y$, $\Delta_x$ and $\Delta_{x, y}$ is defined by the algorithm in the link above, then we get the ugly expression for $\Delta$
$$\Delta = \Delta_y + \frac{cov^2_{n-1}(x,y)}{var_n(x)var_{n-1}(x)}\Delta_x - \frac{cov_{n-1}(x,y) + cov_{n}(x,y)}{var_n(x)}\Delta_{x,y}$$
Since the term $n MSE_n$ and $(n-1) MSE_{n-1}$ are both $O(n)$ and $\Delta$ is $O(1)$, this should give better numerical accuracy.