The classical method of fundamental solutions (MFS) has only been used to approximate the solution of homogeneous PDE problems. Coupled with other numerical schemes such as domain integration, dual reciprocity method (with polynomial or radial basis functions interpolation), the MFS can be extended to solve the nonhomogeneous problems. This paper presents an extension of the MFS for the direct approximation of Poisson and nonhomogeneous Helmholtz problems. This can be done by using the fundamental solutions of the associated eigenvalue equations as a basis to approximate the nonhomogeneous term. The particular solution of the PDE can then be evaluated. An advantage of this mesh-free method is that the resolution of both homogeneous and nonhomogeneous equations can be combined in a unified way and it can be used for multiscale problems. Numerical simulations are presented and show the quality of the approximations for several test examples.