In Electrum can export the master key easy, but you have to disable the password first (for security reasons).
Go to wallet > Password, then type your "old" password and leave "new password" fields empty.
Then go to the View menu, open the console, in the console you write this one >
wallet.keystore.xprv
then your master key will show.
Now you can go back and set a password again.