In this study, for the first time, the Schrodinger equation with more general exponential cosine screened Coulomb (MGECSC) potential is solved numerically in the presence and in the absence of an external magnetic field within two-dimensional formalism using the asymptotic iteration method. The MGECSC potential includes four different potential forms when considering different sets of the parameters in the potential. The plasma screening effects in the weak and strong magnetic field regimes as well as the confinement effects of magnetic field on the two-dimensional hydrogen atom in Debye and quantum plasmas are investigated by solving the corresponding equations. It is found that applying a uniform magnetic field on the hydrogen atom embedded in a plasma leads to change in the profile of the total interaction potential. Thus, confinement effects of magnetic field on hydrogen atom embedded in Debye and quantum plasmas modeled by a MGECSC potential lead to shift bound state energies. This effect would be important to isolate the plasma from the external environment in the experimental applications of plasma physics. (C) 2015 AIP Publishing LLC.