Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in the Registration Statements on Form S-3 (No. 333-267196) and Form S-8 (Nos. 333-259665, 333-264024 and 333-270653) of Markforged Holding Corporation of our report dated March 15, 2024 relating to the financial statements, which appears in this Form 10-K.

/s/ PricewaterhouseCoopers LLP

Boston, Massachusetts

March 15, 2024