abstract: Joint work with Bruno Levy (INRIA) and Roya Mohayahee (Institut d'Astrophysique de Paris and Oxford University). We study Monge-Ampere gravity (MAG) as an effective theory of cosmological structure formation through OT theory. We recall that, according to Ambrosio-Baradat-Brenier 2023, MAG emerges from the motion of a cloud of independent and indistinguishable Brownian particles, through the large deviation principle. Based on the Merigot-Levy semi-discrete OT algorithm, we present the very first N-body simulations of Monge-Amp`ere gravity with over 100 millions clusters of galaxies, which show that on large scales, Monge-Ampere gravity is similar to the Newtonian gravity but favours the formation of anisotropic structures such as filaments. We also report on high-resolution simulations of a large class of modified theories of gravity, such as Galileons, in which the equations of motion are also second-order and of Monge-Ampere type.