As already noted in the comments, you can't perform a Wilcoxon-Mann-Whitney U test on such summary data as don't know what the ranks are like. I can show you two data sets with the same summary statistics as you require, but which have very different results under a U test. This should demonstrate beyond doubt the impossibility of your requirement.
Firstly, {2.132241, 2.581832, 2.691334, 2.594593} and {2.572249, 3.221167, 3.310597, 3.288375, 3.147697, 2.580609, 3.305366, 3.373940}. These have the required means, standard deviations and sample sizes. The U test would have a p-value of 0.1091.
Secondly, {2.133137, 2.610204, 2.690900, 2.565759} and {2.911540, 3.533921, 2.897434, 3.453944, 2.744262, 3.441276, 2.741388, 3.076235}. The U test would have a p-value of 0.00404.
In other words, the provided summary statistics (which concern the moments of the data) are consistent with data sets which have got very different rank structures. So while you could perform a t-test from the given information, you can't perform a U test.
Appendix
If you are curious as to where I procured my "data", they were constructed from normal random deviates and rescaled to have the mean and standard deviation that you specified.
set.seed(33504)
x1 <- rnorm(n=4)
x1 <- 0.25*(x1-mean(x1))/sd(x1) + 2.5
x2 <- rnorm(n=8)
x2 <- 0.33*(x2-mean(x2))/sd(x2) + 3.1
These data give:
> x1
[1] 2.132241 2.581832 2.691334 2.594593
> mean(x1)
[1] 2.5
> sd(x1)
[1] 0.25
> x2
[1] 2.572249 3.221167 3.310597 3.288375 3.147697 2.580609 3.305366 3.373940
> mean(x2)
[1] 3.1
> sd(x2)
[1] 0.33
> wilcox.test(x1, x2)
Wilcoxon rank sum test
data: x1 and x2
W = 6, p-value = 0.1091
alternative hypothesis: true location shift is not equal to 0
But with a different seed:
set.seed(14)
x1 <- rnorm(n=4)
x1 <- 0.25*(x1-mean(x1))/sd(x1) + 2.5
x2 <- rnorm(n=8)
x2 <- 0.33*(x2-mean(x2))/sd(x2) + 3.1
Different data, same means and standard deviations, and a different result!
> x1
[1] 2.133137 2.610204 2.690900 2.565759
> mean(x1)
[1] 2.5
> sd(x1)
[1] 0.25
> x2
[1] 2.911540 3.533921 2.897434 3.453944 2.744262 3.441276 2.741388 3.076235
> mean(x2)
[1] 3.1
> sd(x2)
[1] 0.33
>
> wilcox.test(x1, x2)
Wilcoxon rank sum test
data: x1 and x2
W = 0, p-value = 0.00404
alternative hypothesis: true location shift is not equal to 0
However, if you do a t.test(x1, x2)
you will see the results match, since the given summary statistics, which the "data" have been designed to match, are sufficient to calculate the t statistic.