In this paper, we introduce the s(., .)-fractional Musielak–Sobolev spaces \(W^{s(x,y)}L_{\varPhi _{x,y}}(\Omega )\) . Then, we show that there exists \(\lambda _*>0\) such that any \(\lambda \in (0, \lambda _*)\) is an eigenvalue for the following problem, by means of Ekeland’s variational principle \(\begin{aligned} ({\mathcal {P}}_a) \left\{ \begin{array}{clclc} \left( -\Delta \right) ^{s(x,.)}_{a_{(x,.)}} u &{} = &{} \lambda |u|^{q(x)-2}u &{} \text { in }&{} \Omega , \\ \\ u &{} = &{} 0 \hspace{0.2cm} &{} \text { in } &{} {\mathbb {R}} ^N\setminus \Omega , \end{array} \right. \end{aligned}\) where \(\Omega \) is a bounded open subset of \({\mathbb {R}} ^N\) with \(C^{0,1}\) -regularity and bounded boundary.