generating master public key from address
It's not possible.
An address is created though a hash160 (RIPEMD160) which is a one-way function.

Creating a xpub key (bip32 extended public key) requires the according pubkey and the chaincode.
Alternatively you can calculate an xpub from an xpriv (extended private key).