The slope conjecture [S. Garoufalidis, The degree of a q-holonomic sequence is a quadratic quasi-polynomial, Electron. J. Combin.18 (2011) 4–27] gives a precise relation between the degree of the colored Jones polynomial of a knot and the boundary slopes of essential surfaces in the knot complement. In this paper, we propose a generalization of the slope conjecture to links. We prove the conjecture for all alternating or more generally adequate links. We also verify the conjecture for torus links.