<?xml version="1.0" encoding="UTF-8"?>
<twe:edgarSubmission xmlns:com="http://www.sec.gov/edgar/common" xmlns:fee="http://www.sec.gov/edgar/feecommon" xmlns:sta="http://www.sec.gov/edgar/statecodes" xmlns:scc="http://www.sec.gov/edgar/sccommon" xmlns:twe="http://www.sec.gov/edgar/twentyfourf2filer">
  <twe:schemaVersion>X0101</twe:schemaVersion>
  <twe:headerData>
    <twe:submissionType>24F-2NT</twe:submissionType>
    <twe:filerInfo>
      <twe:liveTestFlag>LIVE</twe:liveTestFlag>
      <twe:filer>
        <twe:issuerCredentials>
          <twe:cik>1330967</twe:cik>
          <twe:ccc>XXXXXXXX</twe:ccc>
        </twe:issuerCredentials>
      </twe:filer>
      <twe:flags>
        <twe:confirmingCopyFlag>false</twe:confirmingCopyFlag>
      </twe:flags>
      <twe:investmentCompanyType>N-1A</twe:investmentCompanyType>
    </twe:filerInfo>
  </twe:headerData>
  <twe:formData>
    <twe:annualFilings>
      <twe:annualFilingInfo>
        <twe:item1>
          <twe:nameOfIssuer>MFS Series Trust XII</twe:nameOfIssuer>
          <twe:addressOfIssuer>
            <twe:street1>111 Huntington Avenue</twe:street1>
            <twe:city>Boston</twe:city>
            <twe:state>MA</twe:state>
            <twe:country>X1</twe:country>
            <twe:zipCode>02199</twe:zipCode>
          </twe:addressOfIssuer>
        </twe:item1>
        <twe:item2>
          <twe:reportSeriesClass>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME INCOME FUND</twe:seriesName>
              <twe:seriesId>S000002501</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000006793</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000006794</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000006795</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000006796</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000006797</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000006799</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000006800</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000006801</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173225</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2020 FUND</twe:seriesName>
              <twe:seriesId>S000002503</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000006811</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000006812</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000006813</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000006814</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000006815</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000006817</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000006818</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000006819</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173226</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2030 FUND</twe:seriesName>
              <twe:seriesId>S000002504</twe:seriesId>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000006827</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000006828</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173227</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000006820</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000006821</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000006822</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000006823</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000006824</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000006826</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2040 FUND</twe:seriesName>
              <twe:seriesId>S000002505</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000006829</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000006830</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000006831</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000006832</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000006833</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000006835</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000006836</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000006837</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173228</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2050 FUND</twe:seriesName>
              <twe:seriesId>S000030062</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000092196</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000092197</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000092198</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000092199</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000092200</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000092201</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000092202</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000092203</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173229</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2025 FUND</twe:seriesName>
              <twe:seriesId>S000038773</twe:seriesId>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000119423</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000119424</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000119425</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000119426</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000119427</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000119428</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000119429</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000119430</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173230</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2035 FUND</twe:seriesName>
              <twe:seriesId>S000038774</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000119431</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000119432</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000119433</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000119434</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000119435</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000119436</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000119437</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000119438</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173231</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2045 FUND</twe:seriesName>
              <twe:seriesId>S000038775</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000119439</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000119440</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000119441</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000119442</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000119443</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000119444</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000119445</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000119446</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173232</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2055 FUND</twe:seriesName>
              <twe:seriesId>S000038776</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000119447</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000119448</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000119449</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000119450</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000119451</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000119452</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000119453</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000119454</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173233</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2060 FUND</twe:seriesName>
              <twe:seriesId>S000055287</twe:seriesId>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000173915</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>B</twe:className>
                <twe:classId>C000173916</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000173917</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000173918</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000173919</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000173920</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000173921</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000173922</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000173923</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS LIFETIME 2065 FUND</twe:seriesName>
              <twe:seriesId>S000072833</twe:seriesId>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000229436</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000229437</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000229438</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000229439</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000229440</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000229441</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000229442</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000229443</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
            <twe:rptSeriesClassInfo>
              <twe:seriesName>MFS CORE BOND FUND</twe:seriesName>
              <twe:seriesId>S000076470</twe:seriesId>
              <twe:classInfo>
                <twe:className>R4</twe:className>
                <twe:classId>C000236386</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R6</twe:className>
                <twe:classId>C000236387</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R3</twe:className>
                <twe:classId>C000236388</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>A</twe:className>
                <twe:classId>C000236389</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R1</twe:className>
                <twe:classId>C000236390</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>I</twe:className>
                <twe:classId>C000236391</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>C</twe:className>
                <twe:classId>C000236392</twe:classId>
              </twe:classInfo>
              <twe:classInfo>
                <twe:className>R2</twe:className>
                <twe:classId>C000236393</twe:classId>
              </twe:classInfo>
            </twe:rptSeriesClassInfo>
          </twe:reportSeriesClass>
        </twe:item2>
        <twe:item3>
          <twe:investmentCompActFileNo>811-2178</twe:investmentCompActFileNo>
          <twe:securitiesActFileNumbers>
            <twe:securitiesActFileNo>
              <twe:fileNumber>333-126328</twe:fileNumber>
            </twe:securitiesActFileNo>
          </twe:securitiesActFileNumbers>
        </twe:item3>
        <twe:item4>
          <twe:lastDayOfFiscalYear>04/30/2023</twe:lastDayOfFiscalYear>
          <twe:isThisFormBeingFiledLate>false</twe:isThisFormBeingFiledLate>
          <twe:isThisTheLastTimeIssuerFilingThisForm>false</twe:isThisTheLastTimeIssuerFilingThisForm>
        </twe:item4>
        <twe:item5>
          <twe:aggregateSalePriceOfSecuritiesSold>1962620507.00</twe:aggregateSalePriceOfSecuritiesSold>
          <twe:aggregatePriceOfSecuritiesRedeemedOrRepurchasedInFiscalYear>1810657058.00</twe:aggregatePriceOfSecuritiesRedeemedOrRepurchasedInFiscalYear>
          <twe:aggregatePriceOfSecuritiesRedeemedOrRepurchasedAnyPrior>0.00</twe:aggregatePriceOfSecuritiesRedeemedOrRepurchasedAnyPrior>
          <twe:totalAvailableRedemptionCredits>1810657058.00</twe:totalAvailableRedemptionCredits>
          <twe:netSales>151963449.00</twe:netSales>
          <twe:redemptionCreditsAvailableForUseInFutureYears>0.00</twe:redemptionCreditsAvailableForUseInFutureYears>
          <twe:multiplierForDeterminingRegistrationFee>0.0001102</twe:multiplierForDeterminingRegistrationFee>
          <twe:registrationFeeDue>16746.37</twe:registrationFeeDue>
        </twe:item5>
        <twe:item6/>
        <twe:item7>
          <twe:interestDue>0</twe:interestDue>
        </twe:item7>
        <twe:item8>
          <twe:totalOfRegistrationFeePlusAnyInterestDue>16746.37</twe:totalOfRegistrationFeePlusAnyInterestDue>
        </twe:item8>
        <twe:item9/>
        <twe:signature>
          <twe:signature>David L. DiLorenzo</twe:signature>
          <twe:nameAndTitle>David L. DiLorenzo President</twe:nameAndTitle>
          <twe:signatureDate>07/18/2023</twe:signatureDate>
        </twe:signature>
      </twe:annualFilingInfo>
    </twe:annualFilings>
  </twe:formData>
</twe:edgarSubmission>
