For a given inhomogeneous exclusion processes on N sites between two reservoirs, the trajectories probabilities allow to identify the relevant local empirical observables and to obtain the corresponding rate function at level 2.5. In order to close the hierarchy of the empirical dynamics that appear in the stationarity constraints, we consider the simplest approximation, namely the mean-field approximation for the empirical density of two consecutive sites, in direct correspondence with the previously studied mean-field approximation for the steady state. For a given inhomogeneous totally asymmetric model, this mean-field approximation yields the large deviations for the joint distribution of the empirical density profile and of the empirical current around the mean-field steady state; the further explicit contraction over the current allows to obtain the large deviations of the empirical density profile alone. For a given inhomogeneous asymmetric model, the local empirical observables also involve the empirical activities of the links and of the reservoirs; the further explicit contraction over these activities yields the large deviations for the joint distribution of the empirical density profile and of the empirical current. The consequences for the large deviations properties of time-additive space-local observables are also discussed in both cases.