We consider a generalization of the Bernoulli numbers and polynomials to several variables, namely, we define the Bernoulli numbers associated with a rational cone and the corresponding Bernoulli polynomials. Also, we prove some properties of the Bernoulli polynomials.