EX-99.4 7 d518638dex994.htm EX-99.4

Exhibit 99.4

CONSENT OF KEEFE, BRUYETTE & WOODS, INC.

We hereby consent to the inclusion of our opinion letter to the Board of Directors of Mid Penn Bancorp, Inc. (“Mid Penn”), as Annex C to the Joint Proxy Statement and Prospectus which forms a part of the Registration Statement on Form S-4 filed on the date hereof (the “Registration Statement”) relating to the proposed merger of William Penn Bancorporation with and into Mid Penn and to the references to such opinion and the quotation or summarization of such opinion contained therein.

In giving such consent, we do not admit that we come within the category of persons whose consent is required under Section 7 of the Securities Act of 1933, as amended (the “Securities Act”), or the rules and regulations of the Securities and Exchange Commission thereunder, nor do we hereby admit that we are experts with respect to any part of the Registration Statement within the meaning of the term “experts” as used in the Securities Act or the rules and regulations of the Securities and Exchange Commission thereunder.

/s/ Keefe, Bruyette & Woods, Inc.

KEEFE, BRUYETTE & WOODS, INC.

Dated: January 17, 2025