The St. Louis Cardinals selected Mayers in the third round of the 2013 Major League Baseball draft.[6] He signed and made his professional debut with the GCL Cardinals before being promoted to the Peoria Chiefs, where he finished the season. In 36+1⁄3 innings pitched between the two teams, he posted a 1–3 record and 2.97 ERA. He spent 2014 with the Palm Beach Cardinals, Springfield Cardinals, and Memphis Redbirds, compiling a combined 8–12 record, 3.39 ERA, and 1.37 WHIP in 26 starts between the two teams. In 2015, Mayers was 2–4 with an ERA of 5.87 for the GCL Cardinals and Springfield, and underwent surgery for thoracic outlet syndrome (TOS).[7][8] Recovered from TOS, Mayers progressed through the two highest minor league levels in 2016. First, he pitched for Springfield,[8] where he was a mid-season All-Star.[9] Over nine starts for Springfield, Mayers was 5–2 with a 2.30 ERA. He was then promoted back to Memphis in May.[10]
The Cardinals selected Mayers' contract from Memphis on July 23, 2016, and announced that he would make his Major League Baseball (MLB) debut the following day against the Los Angeles Dodgers on national television on ESPN's Sunday Night Baseball.[8] He had a 3–3 record and 2.94 ERA over nine starts for Memphis prior to his promotion. In his debut, each of the first four batters he faced in the first inning reached base, and all scored on a grand slam by the fourth, first basemanAdrián González.[11] In all, 10 of 14 batters reached base as Mayers surrendered nine earned runs, eight hits, and two walks, while recording four outs for an in-game ERA of 60.75. Per the Elias Sports Bureau, he became the first major leaguer to surrender at least nine runs while advancing through fewer than two innings in his debut.[12] Said opposing starter Scott Kazmir of Mayers, "I felt for him, yeah. It's your debut, it's hot and it's on ESPN. It was a tough draw for him."[13] The Cardinals optioned him back to Memphis the day after his first major league start.[12] He got his first win, in relief on September 6, in Pittsburgh, pitching a perfect eighth inning.[14]
During spring training 2018, Mayers pitched 12 scoreless innings, striking out 13, earning him a spot on the Opening Day roster.[15] He was optioned to Memphis and recalled back to St. Louis six times before being recalled for a seventh, and final time, on June 8.[16] He was placed on the disabled list for the first time in his major league career on August 26 with right shoulder inflammation,[17] and activated on September 11. Mayers finished his 2018 campaign with a 2–1 record and a 4.70 ERA in fifty relief appearances.[18]
Mayers began the 2019 season with St. Louis, but was placed on the injured list on April 17.[19] He was activated on July 23.[20] On August 4, Mayers was designated for assignment,[21] and on August 6, he was outrighted to Memphis. On September 1, he was added to the expanded roster for September callups. Over 19 relief innings pitched with St. Louis, Mayers went 0–1 with a 6.63 ERA, striking out 16 batters.[22]
Los Angeles Angels
On November 1, 2019, Mayers was claimed off waivers by the Los Angeles Angels.[23] In his first season with the Angels, Mayers was their most effective reliever throughout the season, recording an ERA of 2.10 with 43 strikeouts in 30 innings. In 2021, Mayers recorded a 3.84 ERA with 90 strikeouts in 75 innings.
On May 26, 2022, Mayers was designated for assignment by Los Angeles. In 15 games, Mayers posted a 5.40 ERA with 14 strikeouts.[24] He cleared waivers and was sent outright to the Triple-A Salt Lake Bees on June 2.[25]
On August 6, Mayers was selected back to the major league roster.[26] On September 27, Mayers was once again designated for assignment. He cleared waivers and was again sent outright to Salt Lake on October 2.[27] Working as both a starter and reliever in 2022, he made 24 total appearances and registered a 5.68 ERA with 45 strikeouts in 50.2 innings pitched. He elected free agency on October 6.[28]
Kansas City Royals
On December 22, 2022, Mayers signed a minor league contract with the Kansas City Royals.[29] He was assigned to the Triple-A Omaha Storm Chasers to begin the 2023 season, where he made 8 starts and posted a 6.88 ERA with 29 strikeouts in 34.0 innings pitched. On May 17, 2023, Mayers' contract was selected to the active roster.[30] In 6 games (2 starts) for Kansas City, he logged a 1–2 record and 6.15 ERA with 17 strikeouts in 26+1⁄3 innings of work. On June 18, Mayers was designated for assignment following the promotion of Brooks Kriske.[31] He cleared waivers and accepted an outright assignment to Triple–A Omaha on June 21.[32]
Chicago White Sox
On July 12, 2023, Mayers was traded to the Chicago White Sox in exchange for cash considerations.[33] In 16 games for the Triple–A Charlotte Knights, he posted a 5.29 ERA with 28 strikeouts in 34.0 innings of work. On October 2, Mayers elected free agency.[34]
Toronto Blue Jays
On March 19, 2024, Mayers signed a minor league contract with the Toronto Blue Jays.[35] In 31 outings for the Triple–A Buffalo Bisons, he struggled to a 2–5 record and 6.10 ERA with 46 strikeouts over 41+1⁄3 innings pitched. Mayers was released by the Blue Jays organization on August 2.[36]