<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>22</ContextCount>
  <ElementCount>26</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>5</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="d408065ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d408065ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="DEF 14A" original="d408065ddef14a.htm">d408065ddef14a.htm</File>
    <File>mpb-20221231.xsd</File>
    <File>mpb-20221231_def.xml</File>
    <File>mpb-20221231_lab.xml</File>
    <File>mpb-20221231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g408065g00c86.jpg</File>
    <File>g408065g00e07.jpg</File>
    <File>g408065g00e27.jpg</File>
    <File>g408065g00f99.jpg</File>
    <File>g408065g00i47.jpg</File>
    <File>g408065g01d39.jpg</File>
    <File>g408065g01g13.jpg</File>
    <File>g408065g01g38_01.jpg</File>
    <File>g408065g01g38_02.jpg</File>
    <File>g408065g01g38_03.jpg</File>
    <File>g408065g01g38_04.jpg</File>
    <File>g408065g01g38_05.jpg</File>
    <File>g408065g01g38_06.jpg</File>
    <File>g408065g01g38_07.jpg</File>
    <File>g408065g01g38_08.jpg</File>
    <File>g408065g01g38_09.jpg</File>
    <File>g408065g01g38_10.jpg</File>
    <File>g408065g01g38_11.jpg</File>
    <File>g408065g01g38_12.jpg</File>
    <File>g408065g01g38_13.jpg</File>
    <File>g408065g01g38_14.jpg</File>
    <File>g408065g01g38_15.jpg</File>
    <File>g408065g01g48.jpg</File>
    <File>g408065g01x79.jpg</File>
    <File>g408065g02m47.jpg</File>
    <File>g408065g03p01.jpg</File>
    <File>g408065g04l63.jpg</File>
    <File>g408065g04m03.jpg</File>
    <File>g408065g04m04.jpg</File>
    <File>g408065g04m05.jpg</File>
    <File>g408065g04m06.jpg</File>
    <File>g408065g05f49.jpg</File>
    <File>g408065g06n58.jpg</File>
    <File>g408065g06p01.jpg</File>
    <File>g408065g07b97.jpg</File>
    <File>g408065g07e13.jpg</File>
    <File>g408065g07e89.jpg</File>
    <File>g408065g08n81.jpg</File>
    <File>g408065g09i19.jpg</File>
    <File>g408065g10t11.jpg</File>
    <File>g408065g12_29.jpg</File>
    <File>g408065g16g13.jpg</File>
    <File>g408065g16p12.jpg</File>
    <File>g408065g19t95.jpg</File>
    <File>g408065g19z71.jpg</File>
    <File>g408065g22s22.jpg</File>
    <File>g408065g30y17.jpg</File>
    <File>g408065g30y29.jpg</File>
    <File>g408065g31f28.jpg</File>
    <File>g408065g36v23.jpg</File>
    <File>g408065g39c22.jpg</File>
    <File>g408065g42d74.jpg</File>
    <File>g408065g43u44.jpg</File>
    <File>g408065g48n40.jpg</File>
    <File>g408065g58m47.jpg</File>
    <File>g408065g60x60.jpg</File>
    <File>g408065g65s57.jpg</File>
    <File>g408065g73f53.jpg</File>
    <File>g408065g76h19.jpg</File>
    <File>g408065g78t36.jpg</File>
    <File>g408065g83m70.jpg</File>
    <File>g408065g84j75.jpg</File>
    <File>g408065g87o79.jpg</File>
    <File>g408065g88x64.jpg</File>
    <File>g408065g93q77.jpg</File>
    <File>g408065g93r91.jpg</File>
    <File>g408065g96k51.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2022q4</BaseTaxonomy>
    <BaseTaxonomy items="64">http://xbrl.sec.gov/ecd/2022q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
