Light scalar fields very naturally appear in modern cosmological models, affecting such parameters of Standard Model as electromagnetic fine structure constant α, dimensionless ratios of electron or quark mass to the QCD scale , m e,q /Λ QCD . Cosmological variations of these scalar fields should occur because of drastic changes of matter composition in Universe: the latest such event is rather recent (redshift z ∼ 0.5), from matter to dark energy domination. In a two-brane model (we use as a pedagogical example) these modifications are due to changing distance to "the second brane", a massive companion of "our brane". Back from extra dimensions, massive bodies (stars or galaxies) can also affect physical constants. They have large scalar charge Q d proportional to number of particles which produces a Coulomb-like scalar field φ = Q d /r. This leads to a variation of the fundamental constants proportional to the gravitational potential, e.g. δ α/α = k α δ (GM/rc 2 ). We compare different manifestations of this effect, which is usually called violation of local position invariance. The strongest limits k α + 0.17k e = (−3.5 ± 6) * 10 −7 are obtained from the measurements of dependence of atomic frequencies on the distance from Sun (the distance varies due to the ellipticity of the Earth's orbit).