This sounds like it may be Dune: the Butlerian Jihad, and/or the other novels in the Dune prequel series.
The books are set in our distant future, and the distant past of Dune. A group called the Titans converted themselves into "cymeks" - brains in canisters which could live indefinitely and be swapped between various powerful robot bodies - and conquered much of humanity, before themselves being usurped by entirely artificial beings.
Of the first brain can people, one is a huge jerk who makes people build big monuments, one is a talented tactician, one woman brain left the group…
Their number included a general (Agamemnon) and a female dissident (Hecate); the monument-builder might be the robot Erasmus.
There’s a planet of Amazon-like women who have mental powers and are able to liquidate the brains.
This would fit the Sorceresses of Rossak, precursors to the Bene Gesserit, who have psychic powers usable only by women, which can destroy cymeks.
One of the Amazon-like women is married to a successful merchant; their daughter is not mentally talented, but is wicked smart and goes to work with another guy to build weapons.
Norma Cenva is a daughter of a sorceress who apprentices to an inventor, marries a merchant, invents some of the setting's most fundamental technology, and is robbed of the credit for it.
Norma Cenva was considered a failure by her mother, Zufa Cenva, because she was born a malformed dwarf. This was partially due to the strange chemicals on Rossak, the same reason why Sorceresses like her mother were so powerful.
Norma was almost pitied by her mother while the former lived on Rossak. Meanwhile her adoptive father (and future husband) Aurelius Venport helped her continue her fascination and meddling with higher-order mathematics arranging for her to become an assistant to Tio Holtzman.
She cared little that Holtzman took credit for much of her work. Nevertheless, her innovations would prove indispensable to humanity in the war against the thinking machines known as the Butlerian Jihad.
From your comments:
Another thing I remember - the not so good looking daughter of the main mental Amazon woman goes to work for the scientist weapon maker and he steals all her ideas because he’s a Dick, and later in the books she discovers her mental powers and makes herself super hot
While on a spaceflight, the Titan Xerxes captured her and tortured her for hours while many neo-cymeks watched. The event triggered latent mental powers, and caused her soostone pendant to fuse with her. The ultimate result was that she gained amazing powers to control her molecular structure and utilize formidable new prescient abilities. With just a thought, she killed Xerxes and the neo-cymeks. With massive amounts of mental power at her fingertips, Norma found herself in connection with her maternal bloodline leading off into the far distant past. Using their forms as a template, she then transformed her body from an unappealing dwarf-like being into a woman of great elegance and beauty.