A machine for making filled pasta, comprising a first modular unit (10), consisting of a kneading machine equipped with a container (11) within which the dough is formed, and a second modular unit (16), constituted by a ravioli machine, which is able to place filling doses inside the dough for continuously producing tortellini, ravioli, etc.; an extruder or die (12) is placed in correspondence of the bottom of said container (11) of the kneading machine, so as to give a desired shape to the dough at the extruder's output. The extruded pasta is thus conveyed downstream the extruder (12) and inside the ravioli machine.