A method for the automated generation of realistic, synthetically accessible transition metal and organometallic complexes is described. Computational tools were designed to generate molecular fragments, preferably harvested from libraries of existing, stable compounds, to be used as building blocks for the construction of new molecules. These fragments are enriched with information about the number and type of possible connections to other fragments and are stored in library files. When connecting fragments in the subsequent building process, compatibility matrices, which define the connection rules between fragments, are used to delineate organometallic fragment spaces from which molecules can be generated in an automated fashion. The approach is flexible and allows ample structural variation at the same time as the combination of known fragments is easily restrained to avoid generation of exotic and unrealistic substructures and molecules. The method was tested in the generation of ruthenium complexes, with a given coordination environment, which can serve as candidates in catalyst development. The results demonstrate that molecules generated with the described method do not contain exotic arrangements of atoms and are by far more realistic than those obtained by the application of valence rules alone.