Attached files

file filename
10-K - 10-K - Main Street Capital CORPa2230973z10-k.htm
EX-32.2 - EX-32.2 - Main Street Capital CORPa2230973zex-32_2.htm
EX-32.1 - EX-32.1 - Main Street Capital CORPa2230973zex-32_1.htm
EX-31.2 - EX-31.2 - Main Street Capital CORPa2230973zex-31_2.htm
EX-31.1 - EX-31.1 - Main Street Capital CORPa2230973zex-31_1.htm
EX-21.1 - EX-21.1 - Main Street Capital CORPa2230973zex-21_1.htm
EX-12.1 - EX-12.1 - Main Street Capital CORPa2230973zex-12_1.htm

QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

       We have issued our reports dated February 24, 2017, with respect to the consolidated financial statements, financial highlights, financial statement schedule and internal control over financial reporting included in the Annual Report of Main Street Capital Corporation on Form 10-K for the year ended December 31, 2016. We hereby consent to the incorporation by reference of said reports in the Registration Statements of Main Street Capital Corporation on Form S-8 (File Nos. 333-203893 and 333-208643).

/s/ GRANT THORNTON LLP

Dallas, Texas
February 24, 2017




QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM