EXHIBIT NO. 99.(j) 7
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the references to our firm under the captions “Financial Highlights” in the Prospectus and “Independent Registered Public Accounting Firm(s) and Financial Statements” and “Appendix M – Recipients of Non-Public Portfolio Holdings on an Ongoing Basis” in the Statement of Additional Information, each dated November 27, 2026, and each included in this Post-Effective Amendment No. 188 to the Registration Statement (Form N-1A, File No. 33-1657) of MFS Series Trust X (the “Registration Statement”).
We also consent to the incorporation by reference of our report dated September 15, 2026, with respect to the financial statements and financial highlights of MFS Emerging Markets Debt Fund (a series of MFS Series Trust X) included in the Annual Report (Form N-CSR) for the year ended July 31, 2026, into this Registration Statement, filed with the Securities and Exchange Commission.
/s/ERNST & YOUNG LLP
Ernst & Young LLP
Boston, Massachusetts
November 24, 2026