EX-23.1 18 a2233117zex-23_1.htm EX-23.1
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption "Experts" and to the use of our report dated May 23, 2017, in the Registration Statement (Form S-1) and related Prospectus of Rhythm Pharmaceuticals, Inc. for the registration of shares of its common stock.

/s/ Ernst & Young LLP

Boston, Massachusetts
September 5, 2017

QuickLinks

Exhibit 23.1