v3.26.3
Performance Management - MFS Emerging Markets Debt Fund
Jul. 31, 2026
Prospectus [Line Items]  
Bar Chart and Performance Table [Heading] Performance Information
Performance Narrative [Text Block]

The bar chart and performance table below are intended to provide some indication of the risks of investing in the fund by showing changes in the fund’s performance over time and how the fund’s performance over time compares with that of a broad measure of market performance.

The fund’s past performance (before and after taxes) does not necessarily indicate how the fund will perform in the future. Updated performance is available online at mfs.com or by calling 1-800-225-2606.

Performance Past Does Not Indicate Future [Text] The fund’s past performance (before and after taxes) does not necessarily indicate how the fund will perform in the future.
Performance Information Illustrates Variability of Returns [Text] The bar chart and performance table below are intended to provide some indication of the risks of investing in the fund by showing changes in the fund’s performance over time and how the fund’s performance over time compares with that of a broad measure of market performance.
Bar Chart Narrative [Text Block] The bar chart does not take into account any sales charges (loads) that you may be required to pay upon purchase or redemption of the fund’s shares. If these sales charges were included, they would reduce the returns shown.
Bar Chart Does Not Reflect Sales Loads [Text] The bar chart does not take into account any sales charges (loads) that you may be required to pay upon purchase or redemption of the fund’s shares. If these sales charges were included, they would reduce the returns shown.
Bar Chart [Heading] Class A Bar Chart.
Bar Chart Closing [Text Block]

The total return for the nine-month period ended September 30, 2026, was (0.83)%. During the period(s) shown in the bar chart, the highest quarterly return was 11.87% (for the calendar quarter ended June 30, 2020) and the lowest quarterly return was (11.81)% (for the calendar quarter ended March 31, 2020).

Performance Table Heading Performance Table.
Performance Table Not Relevant to Tax Deferred Your actual after-tax returns will depend on your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs).
Performance [Table]
Average Annual Total Returns - MFS Emerging Markets Debt Fund
12 Months Ended 60 Months Ended 120 Months Ended
Jul. 31, 2026
Dec. 31, 2025
Dec. 31, 2025
Dec. 31, 2025
JPMorgan Emerging Markets Bond Index Global Diversified | Average Annual Return, Label [Optional Text] JPMorgan Emerging Markets Bond Index Global Diversified      
JPMorgan Emerging Markets Bond Index Global Diversified | Average Annual Return, Percent   14.30% 1.78% 4.40%
Class A | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class A | Average Annual Return, Percent   7.48% 0.91% 3.79%
Class A | After Taxes on Distributions | Average Annual Return, Label [Optional Text] Returns After Taxes on Distributions      
Class A | After Taxes on Distributions | Average Annual Return, Percent   5.24% (1.35%) 1.70%
Class A | After Taxes on Distributions and Sales | Average Annual Return, Label [Optional Text] Returns After Taxes on Distributions and Sale of Fund Shares      
Class A | After Taxes on Distributions and Sales | Average Annual Return, Percent   4.35% (0.36%) 1.95%
Class B | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class B | Average Annual Return, Percent   7.39% 0.71% 3.63%
Class C | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class C | Average Annual Return, Percent   10.40% 1.02% 3.62%
Class I | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class I | Average Annual Return, Percent   12.46% 2.03% 4.50%
Class R1 | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class R1 | Average Annual Return, Percent   11.39% 1.04% 3.47%
Class R2 | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class R2 | Average Annual Return, Percent   11.94% 1.53% 3.99%
Class R3 | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class R3 | Average Annual Return, Percent   12.24% 1.79% 4.25%
Class R4 | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class R4 | Average Annual Return, Percent   12.52% 2.04% 4.51%
Class R6 | Average Annual Return, Label [Optional Text] Returns Before Taxes      
Class R6 | Average Annual Return, Percent   12.65% 2.15% 4.61%
Average Annual Return, Caption [Optional Text] Average Annual Total Returns (For the Periods Ended December 31, 2025)
Performance Table One Class of after Tax Shown [Text] The after-tax returns are shown for only one of the fund’s classes of shares, and after-tax returns for the fund’s other classes of shares will vary from the returns shown.
Index No Deduction for Fees, Expenses, or Taxes [Text] Reflects no deduction for fees, expenses, or taxes
Performance Table Closing [Text Block]

After-tax returns are calculated using the historical highest individual U.S. federal marginal income tax rates and do not reflect the impact of state and local taxes. Your actual after-tax returns will depend on your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs). The after-tax returns are shown for only one of the fund’s classes of shares, and after-tax returns for the fund’s other classes of shares will vary from the returns shown.

Performance Availability Website Address [Text] mfs.com
Performance Availability Phone [Text] 1-800-225-2606
Class A  
Prospectus [Line Items]  
Year to Date Return, Label [Optional Text] The total return for the nine-month period ended
Bar Chart, Year to Date Return (0.83%)
Bar Chart, Year to Date Return, Date Sep. 30, 2026
Highest Quarterly Return, Label [Optional Text] highest quarterly return
Highest Quarterly Return 11.87%
Highest Quarterly Return, Date Jun. 30, 2020
Lowest Quarterly Return, Label [Optional Text] lowest quarterly return
Lowest Quarterly Return (11.81%)
Lowest Quarterly Return, Date Mar. 31, 2020