<?xml version="1.0" encoding="us-ascii"?>
<!-- DFS ActiveDisclosure(SM) XBRL Schema Document - http://www.dfsco.com/financial-services/ -->
<!-- Creation Date      : 2018-11-08T15:42:31.7465063+00:00 -->
<!-- Version            : 3.1.6852.22116 -->
<!-- Package ID         : 8e5e625801cf43d584dcbeb205dd3002 -->
<!-- Copyright (c) 2018 Donnelley Financial, LLC. All Rights Reserved. -->
<schema xmlns:nonnum="http://www.xbrl.org/dtr/type/non-numeric" xmlns:mpb="http://www.midpennbank.com/20180930" xmlns:num="http://www.xbrl.org/dtr/type/numeric" xmlns:us-types="http://fasb.org/us-types/2018-01-31" xmlns:stpr="http://xbrl.sec.gov/stpr/2018-01-31" xmlns:srt-types="http://fasb.org/srt-types/2018-01-31" xmlns:naics="http://xbrl.sec.gov/naics/2017-01-31" xmlns:invest="http://xbrl.sec.gov/invest/2013-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:srt="http://fasb.org/srt/2018-01-31" xmlns:us-gaap="http://fasb.org/us-gaap/2018-01-31" xmlns:dei="http://xbrl.sec.gov/dei/2018-01-31" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:country="http://xbrl.sec.gov/country/2017-01-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:currency="http://xbrl.sec.gov/currency/2017-01-31" xmlns:exch="http://xbrl.sec.gov/exch/2018-01-31" xmlns:sic="http://xbrl.sec.gov/sic/2011-01-31" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.midpennbank.com/20180930" xmlns="http://www.w3.org/2001/XMLSchema">
  <import schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" namespace="http://www.xbrl.org/2003/instance" />
  <import schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" namespace="http://www.xbrl.org/2003/linkbase" />
  <import schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd" namespace="http://xbrl.org/2005/xbrldt" />
  <import schemaLocation="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd" namespace="http://xbrl.sec.gov/dei/2018-01-31" />
  <import schemaLocation="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd" namespace="http://fasb.org/us-gaap/2018-01-31" />
  <import schemaLocation="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd" namespace="http://fasb.org/srt/2018-01-31" />
  <import schemaLocation="http://xbrl.fasb.org/us-gaap/2018/elts/us-types-2018-01-31.xsd" namespace="http://fasb.org/us-types/2018-01-31" />
  <import schemaLocation="http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd" namespace="http://www.xbrl.org/dtr/type/numeric" />
  <import schemaLocation="http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd" namespace="http://www.xbrl.org/dtr/type/non-numeric" />
  <import schemaLocation="http://xbrl.fasb.org/srt/2018/elts/srt-types-2018-01-31.xsd" namespace="http://fasb.org/srt-types/2018-01-31" />
  <import schemaLocation="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd" namespace="http://xbrl.sec.gov/country/2017-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd" namespace="http://xbrl.sec.gov/currency/2017-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/exch/2018/exch-2018-01-31.xsd" namespace="http://xbrl.sec.gov/exch/2018-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd" namespace="http://xbrl.sec.gov/invest/2013-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd" namespace="http://xbrl.sec.gov/naics/2017-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/sic/2011/sic-2011-01-31.xsd" namespace="http://xbrl.sec.gov/sic/2011-01-31" />
  <import schemaLocation="https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd" namespace="http://xbrl.sec.gov/stpr/2018-01-31" />
  <annotation>
    <appinfo>
      <link:roleType id="TemplateLink" roleURI="http://www.midpennbank.com/20180930/role/TemplateLink" xmlns:link="http://www.xbrl.org/2003/linkbase">
        <link:definition>00000 - Document - Template Link</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mpb-20180930_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:title="Calculation Links, all" xlink:type="simple" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mpb-20180930_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:title="Definition Links, all" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mpb-20180930_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:title="Label Links, all" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mpb-20180930_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:title="Presentation Links, all" xlink:type="simple" />
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DocumentDocumentAndEntityInformation" id="Role_DocumentDocumentAndEntityInformation">
        <link:definition>100000 - Document - Document and Entity Information</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedBalanceSheets" id="Role_StatementConsolidatedBalanceSheets">
        <link:definition>100010 - Statement - Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical" id="Role_StatementConsolidatedBalanceSheetsParenthetical">
        <link:definition>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfIncome" id="Role_StatementConsolidatedStatementsOfIncome">
        <link:definition>100030 - Statement - Consolidated Statements of Income</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss" id="Role_StatementConsolidatedStatementsOfComprehensiveIncomeLoss">
        <link:definition>100040 - Statement - Consolidated Statements of Comprehensive Income (Loss)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical" id="Role_StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical">
        <link:definition>100050 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity" id="Role_StatementConsolidatedStatementsOfChangesInShareholdersEquity">
        <link:definition>100060 - Statement - Consolidated Statements of Changes In Shareholders&apos; Equity</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityParenthetical" id="Role_StatementConsolidatedStatementsOfChangesInShareholdersEquityParenthetical">
        <link:definition>100070 - Statement - Consolidated Statements of Changes In Shareholders&apos; Equity (Parenthetical)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/StatementConsolidatedStatementsOfCashFlows" id="Role_StatementConsolidatedStatementsOfCashFlows">
        <link:definition>100080 - Statement - Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureBasisOfPresentation" id="Role_DisclosureBasisOfPresentation">
        <link:definition>100090 - Disclosure - Basis of Presentation</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisition" id="Role_DisclosureAcquisition">
        <link:definition>100100 - Disclosure - Acquisition</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecurities" id="Role_DisclosureInvestmentSecurities">
        <link:definition>100110 - Disclosure - Investment Securities</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLosses" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLosses">
        <link:definition>100120 - Disclosure - Loans and Allowance for Loan and Lease Losses</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurement" id="Role_DisclosureFairValueMeasurement">
        <link:definition>100130 - Disclosure - Fair Value Measurement</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureGuaranteesAndCommitments" id="Role_DisclosureGuaranteesAndCommitments">
        <link:definition>100140 - Disclosure - Guarantees and Commitments</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureSubordinatedDebt" id="Role_DisclosureSubordinatedDebt">
        <link:definition>100150 - Disclosure - Subordinated Debt</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureDefinedBenefitPlans" id="Role_DisclosureDefinedBenefitPlans">
        <link:definition>100160 - Disclosure - Defined Benefit Plans</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLoss" id="Role_DisclosureAccumulatedOtherComprehensiveLoss">
        <link:definition>100170 - Disclosure - Accumulated Other Comprehensive Loss</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosurePreferredStock" id="Role_DisclosurePreferredStock">
        <link:definition>100180 - Disclosure - Preferred Stock</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureRestrictedCommonStock" id="Role_DisclosureRestrictedCommonStock">
        <link:definition>100190 - Disclosure - Restricted Common Stock</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureRevenueRecognition" id="Role_DisclosureRevenueRecognition">
        <link:definition>100200 - Disclosure - Revenue Recognition</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureEarningsPerCommonShare" id="Role_DisclosureEarningsPerCommonShare">
        <link:definition>100210 - Disclosure - Earnings per Common Share</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureRecentAccountingPronouncements" id="Role_DisclosureRecentAccountingPronouncements">
        <link:definition>100220 - Disclosure - Recent Accounting Pronouncements</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureSubsequentEvent" id="Role_DisclosureSubsequentEvent">
        <link:definition>100230 - Disclosure - Subsequent Event</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureRevenueRecognitionPolicies" id="Role_DisclosureRevenueRecognitionPolicies">
        <link:definition>100240 - Disclosure - Revenue Recognition (Policies)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionTables" id="Role_DisclosureAcquisitionTables">
        <link:definition>100250 - Disclosure - Acquisition (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesTables" id="Role_DisclosureInvestmentSecuritiesTables">
        <link:definition>100260 - Disclosure - Investment Securities (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesTables" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesTables">
        <link:definition>100270 - Disclosure - Loans and Allowance for Loan and Lease Losses (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementsTables" id="Role_DisclosureFairValueMeasurementsTables">
        <link:definition>100280 - Disclosure - Fair Value Measurements (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureDefinedBenefitPlansTables" id="Role_DisclosureDefinedBenefitPlansTables">
        <link:definition>100290 - Disclosure - Defined Benefit Plans (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossTables" id="Role_DisclosureAccumulatedOtherComprehensiveLossTables">
        <link:definition>100300 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureEarningsPerCommonShareTables" id="Role_DisclosureEarningsPerCommonShareTables">
        <link:definition>100310 - Disclosure - Earnings per Common Share (Tables)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpNarrativeDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpNarrativeDetails">
        <link:definition>100320 - Disclosure - Acquisition of First Priority Financial Corp. (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpAllocationOfPurchasePriceDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpAllocationOfPurchasePriceDetails">
        <link:definition>100330 - Disclosure - Acquisition of First Priority Financial Corp. (Allocation of Purchase Price) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpPreliminaryEstimatedFairValueOfAssetsAcquiredDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpPreliminaryEstimatedFairValueOfAssetsAcquiredDetails">
        <link:definition>100340 - Disclosure - Acquisition of First Priority Financial Corp. (Preliminary Estimated Fair Value of Assets Acquired) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpFairValueAdjustmentsDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpFairValueAdjustmentsDetails">
        <link:definition>100350 - Disclosure - Acquisition of First Priority Financial Corp. (Fair Value Adjustments) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpFairValueOfLoansAcquiredDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpFairValueOfLoansAcquiredDetails">
        <link:definition>100360 - Disclosure - Acquisition of First Priority Financial Corp. (Fair Value of Loans Acquired) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfFirstPriorityFinancialCorpProFormaInformationDetails" id="Role_DisclosureAcquisitionOfFirstPriorityFinancialCorpProFormaInformationDetails">
        <link:definition>100370 - Disclosure - Acquisition of First Priority Financial Corp. (Pro Forma Information) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyNarrativeDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyNarrativeDetails">
        <link:definition>100380 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyAllocationOfPurchasePriceDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyAllocationOfPurchasePriceDetails">
        <link:definition>100390 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Allocation of the Purchase Price) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyPreliminaryEstimatedFairValueOfAssetsAcquiredDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyPreliminaryEstimatedFairValueOfAssetsAcquiredDetails">
        <link:definition>100400 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Preliminary Estimated Fair Value of Assets Acquired) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyFairValueAdjustmentsDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyFairValueAdjustmentsDetails">
        <link:definition>100410 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Fair Value Adjustments) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyFairValueOfLoansAcquiredDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyFairValueOfLoansAcquiredDetails">
        <link:definition>100420 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Fair Value of Loans Acquired) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyProFormaInformationDetails" id="Role_DisclosureAcquisitionOfTheScottdaleBankAndTrustCompanyProFormaInformationDetails">
        <link:definition>100430 - Disclosure - Acquisition of The Scottdale Bank and Trust Company (Pro Forma Information) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesUnrealizedGainLossOnInvestmentsDetails" id="Role_DisclosureInvestmentSecuritiesUnrealizedGainLossOnInvestmentsDetails">
        <link:definition>100440 - Disclosure - Investment Securities (Unrealized Gain (Loss) on Investments) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesNarrativeDetails" id="Role_DisclosureInvestmentSecuritiesNarrativeDetails">
        <link:definition>100450 - Disclosure - Investment Securities (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfGrossRealizedGainsLossesOnSalesOfAvailableForSaleSecuritiesDetails" id="Role_DisclosureInvestmentSecuritiesScheduleOfGrossRealizedGainsLossesOnSalesOfAvailableForSaleSecuritiesDetails">
        <link:definition>100460 - Disclosure - Investment Securities (Schedule of Gross Realized Gains (Losses) on Sales of Available-For-Sale Securities) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndUnrealizedLossOnInvestmentsInContinuousUnrealizedLossPositionDetails" id="Role_DisclosureInvestmentSecuritiesScheduleOfFairValueAndUnrealizedLossOnInvestmentsInContinuousUnrealizedLossPositionDetails">
        <link:definition>100470 - Disclosure - Investment Securities (Schedule of Fair Value and Unrealized Loss on Investments in a Continuous Unrealized Loss Position) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails" id="Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails">
        <link:definition>100480 - Disclosure - Investment Securities (Investments Classified by Contractual Maturity Date) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesNarrativeDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesNarrativeDetails">
        <link:definition>100490 - Disclosure - Loans and Allowance for Loan and Lease Losses (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesClassesOfTheLoanPortfolioSummarizedByTheAggregateRiskRatingDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesClassesOfTheLoanPortfolioSummarizedByTheAggregateRiskRatingDetails">
        <link:definition>100500 - Disclosure - Loans and Allowance for Loan and Lease Losses (Classes Of The Loan Portfolio Summarized By The Aggregate Risk Rating) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesImpairedLoansByLoanPortfolioClassDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesImpairedLoansByLoanPortfolioClassDetails">
        <link:definition>100510 - Disclosure - Loans and Allowance for Loan and Lease Losses (Impaired Loans by Loan Portfolio Class) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesAverageRecordedInvestmentOfImpairedLoansAndRelatedInterestIncomeByLoanPortfolioClassDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesAverageRecordedInvestmentOfImpairedLoansAndRelatedInterestIncomeByLoanPortfolioClassDetails">
        <link:definition>100520 - Disclosure - Loans and Allowance for Loan and Lease Losses (Average Recorded Investment Of Impaired Loans And Related Interest Income By Loan Portfolio Class) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesNonaccrualLoansByClassesOfTheLoanPortfolioDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesNonaccrualLoansByClassesOfTheLoanPortfolioDetails">
        <link:definition>100530 - Disclosure - Loans and Allowance for Loan and Lease Losses (Nonaccrual Loans By Classes Of The Loan Portfolio) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesLoanPortfolioSummarizedByThePastDueStatusDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesLoanPortfolioSummarizedByThePastDueStatusDetails">
        <link:definition>100540 - Disclosure - Loans and Allowance for Loan and Lease Losses (Loan Portfolio Summarized By The Past Due Status) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesAllowanceAndRecordedInvestmentInFinancingReceivablesDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesAllowanceAndRecordedInvestmentInFinancingReceivablesDetails">
        <link:definition>100550 - Disclosure - Loans and Allowance for Loan and Lease Losses (Allowance And Recorded Investment In Financing Receivables) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesTroubledDebtRestructuringsDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesTroubledDebtRestructuringsDetails">
        <link:definition>100560 - Disclosure - Loans and Allowance for Loan and Lease Losses (Troubled Debt Restructurings) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureLoansAndAllowanceForLoanAndLeaseLossesScheduleOfAccretionOfPurchasedImpairedLoanDetails" id="Role_DisclosureLoansAndAllowanceForLoanAndLeaseLossesScheduleOfAccretionOfPurchasedImpairedLoanDetails">
        <link:definition>100570 - Disclosure - Loans and Allowance for Loan and Lease Losses (Schedule of Accretion of Purchased Impaired Loan) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementAssetsMeasuredAtFairValueOnRecurringBasisDetails" id="Role_DisclosureFairValueMeasurementAssetsMeasuredAtFairValueOnRecurringBasisDetails">
        <link:definition>100580 - Disclosure - Fair Value Measurement (Assets Measured at Fair Value on Recurring Basis) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementFairValueMeasurementsNonrecurringDetails" id="Role_DisclosureFairValueMeasurementFairValueMeasurementsNonrecurringDetails">
        <link:definition>100590 - Disclosure - Fair Value Measurement (Fair Value Measurements, Nonrecurring) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementFairValueInputsAssetsQuantitativeInformationDetails" id="Role_DisclosureFairValueMeasurementFairValueInputsAssetsQuantitativeInformationDetails">
        <link:definition>100600 - Disclosure - Fair Value Measurement (Fair Value Inputs, Assets, Quantitative Information) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementFairValueByBalanceSheetGroupingDetails" id="Role_DisclosureFairValueMeasurementFairValueByBalanceSheetGroupingDetails">
        <link:definition>100610 - Disclosure - Fair Value Measurement (Fair Value, by Balance Sheet Grouping) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails" id="Role_DisclosureFairValueMeasurementsScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails">
        <link:definition>100620 - Disclosure - Fair Value Measurements (Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureGuaranteesAndCommitmentsNarrativeDetails" id="Role_DisclosureGuaranteesAndCommitmentsNarrativeDetails">
        <link:definition>100630 - Disclosure - Guarantees and Commitments (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureSubordinatedDebtNarrativeDetails" id="Role_DisclosureSubordinatedDebtNarrativeDetails">
        <link:definition>100640 - Disclosure - Subordinated Debt (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureDefinedBenefitPlansNarrativeDetails" id="Role_DisclosureDefinedBenefitPlansNarrativeDetails">
        <link:definition>100650 - Disclosure - Defined Benefit Plans (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureDefinedBenefitPlansNetPeriodicBenefitCostsDetails" id="Role_DisclosureDefinedBenefitPlansNetPeriodicBenefitCostsDetails">
        <link:definition>100660 - Disclosure - Defined Benefit Plans (Net Periodic Benefit Costs) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossComponentsOfAccumulatedOtherComprehensiveLossNetOfTaxesDetails" id="Role_DisclosureAccumulatedOtherComprehensiveLossComponentsOfAccumulatedOtherComprehensiveLossNetOfTaxesDetails">
        <link:definition>100670 - Disclosure - Accumulated Other Comprehensive Loss (Components of Accumulated Other Comprehensive Loss, Net of Taxes) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosurePreferredStockNarrativeDetails" id="Role_DisclosurePreferredStockNarrativeDetails">
        <link:definition>100680 - Disclosure - Preferred Stock (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureRestrictedCommonStockDetails" id="Role_DisclosureRestrictedCommonStockDetails">
        <link:definition>100690 - Disclosure - Restricted Common Stock (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureEarningsPerCommonShareBasicEarningsLossPerShareDetails" id="Role_DisclosureEarningsPerCommonShareBasicEarningsLossPerShareDetails">
        <link:definition>100700 - Disclosure - Earnings per Common Share (Basic Earnings (Loss) Per Share) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureEarningsPerCommonShareBasicEarningsLossPerShareNarrativeDetails" id="Role_DisclosureEarningsPerCommonShareBasicEarningsLossPerShareNarrativeDetails">
        <link:definition>100710 - Disclosure - Earnings per Common Share (Basic Earnings (Loss) Per Share) (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.midpennbank.com/20180930/taxonomy/role/DisclosureSubsequentEventNarrativeDetails" id="Role_DisclosureSubsequentEventNarrativeDetails">
        <link:definition>100720 - Disclosure - Subsequent Event (Narrative) (Details)</link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </appinfo>
  </annotation>
  <element id="mpb_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForSettlementNetGainLossNetOfTax" name="OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForSettlementNetGainLossNetOfTax" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedStock" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedStock" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedForeclosedAssets" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedForeclosedAssets" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssetsRestrictedStockBoliPremisesAndEquipmentDeferredTaxesAccruedInterestReceivable" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssetsRestrictedStockBoliPremisesAndEquipmentDeferredTaxesAccruedInterestReceivable" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBorrowings" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBorrowings" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOtherAndAccruedInterestPayable" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOtherAndAccruedInterestPayable" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPreferredStock" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPreferredStock" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_CertainLoansAcquiredInTransferAccretableNonaccretableDiscounts" name="CertainLoansAcquiredInTransferAccretableNonaccretableDiscounts" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturityGrossUnrealizedGain" name="AvailableForSaleSecuritiesAndHeldToMaturityGrossUnrealizedGain" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturityGrossUnrealizedLosses" name="AvailableForSaleSecuritiesAndHeldToMaturityGrossUnrealizedLosses" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" name="HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" name="HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsAccumulatedLoss" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsAccumulatedLoss" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerAccumulatedLoss" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerAccumulatedLoss" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_DefinedBenefitPlanAmortizationAccretionOfPriorServiceCostCredit" name="DefinedBenefitPlanAmortizationAccretionOfPriorServiceCostCredit" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_DocumentAndEntityInformationAbstract" name="DocumentAndEntityInformationAbstract" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_LoansHeldForSale" name="LoansHeldForSale" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_PreferredStockCumulativeDividendRate" name="PreferredStockCumulativeDividendRate" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_InterestOnLongTermAndSubordinatedDebt" name="InterestOnLongTermAndSubordinatedDebt" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_GainLossOnSaleOrWriteDownOfForeclosedAssets" name="GainLossOnSaleOrWriteDownOfForeclosedAssets" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_StockholdersEquityAdjustedBalance" name="StockholdersEquityAdjustedBalance" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_StockIssuedDuringPeriodValueDirectorStockPurchasePlan" name="StockIssuedDuringPeriodValueDirectorStockPurchasePlan" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_FirstPriorityFinancialCorporationMember" name="FirstPriorityFinancialCorporationMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_ScottdaleBankAndTrustCompanyMember" name="ScottdaleBankAndTrustCompanyMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_StockIssuedDuringPeriodSharesDirectorStockPurchasePlans" name="StockIssuedDuringPeriodSharesDirectorStockPurchasePlans" type="xbrli:sharesItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionValueOfEquityAssumed1" name="NoncashOrPartNoncashAcquisitionValueOfEquityAssumed1" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionPreferredStockAssumed" name="NoncashOrPartNoncashAcquisitionPreferredStockAssumed" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_NoncashOrPartNoncashDepositsAssumed" name="NoncashOrPartNoncashDepositsAssumed" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionAccruedInterestPayableAssumed" name="NoncashOrPartNoncashAcquisitionAccruedInterestPayableAssumed" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionFinancingReceivableAcquired" name="NoncashOrPartNoncashAcquisitionFinancingReceivableAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionRestrictedStockAcquired" name="NoncashOrPartNoncashAcquisitionRestrictedStockAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionForeclosedAssetsAcquired" name="NoncashOrPartNoncashAcquisitionForeclosedAssetsAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionDeferredIncomeTaxesAcquired" name="NoncashOrPartNoncashAcquisitionDeferredIncomeTaxesAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionAccruedInterestReceivableAcquired" name="NoncashOrPartNoncashAcquisitionAccruedInterestReceivableAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionCashSurrenderValueOfLifeInsuranceAcquired" name="NoncashOrPartNoncashAcquisitionCashSurrenderValueOfLifeInsuranceAcquired" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_EmployeeMember" name="EmployeeMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_NoncashOrPartNoncashAcquisitionValueOfEquityAssumedAbstract" name="NoncashOrPartNoncashAcquisitionValueOfEquityAssumedAbstract" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_RestrictedCommonStockDisclosureTextBlock" name="RestrictedCommonStockDisclosureTextBlock" type="nonnum:textBlockItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_AverageImpairedFinancingReceivablesTableTextBlock" name="AverageImpairedFinancingReceivablesTableTextBlock" type="nonnum:textBlockItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_AccretableYieldScheduleRelatedToPurchasedImpairedLoansTableTextBlock" name="AccretableYieldScheduleRelatedToPurchasedImpairedLoansTableTextBlock" type="nonnum:textBlockItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_FractionalSharesMember" name="FractionalSharesMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_ExcludedAcquisitionRelatedCostsMember" name="ExcludedAcquisitionRelatedCostsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_SharesOfAcquirerRatioOfCommonStock" name="SharesOfAcquirerRatioOfCommonStock" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableEquityAcquiredEquityAbstract" name="BusinessCombinationRecognizedIdentifiableEquityAcquiredEquityAbstract" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquityAcquiredAndLiabilitiesAssumed" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquityAcquiredAndLiabilitiesAssumed" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_PurchasedLoansMarketRateAdjustment" name="PurchasedLoansMarketRateAdjustment" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_PurchasedLoansCreditFairValueAdjustmentOnPoolsOfHomogeneousLoans" name="PurchasedLoansCreditFairValueAdjustmentOnPoolsOfHomogeneousLoans" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_PurchasedLoansCreditFairValueAdjustmentOnImpairedLoans" name="PurchasedLoansCreditFairValueAdjustmentOnImpairedLoans" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_SeveranceAndRetentionBonusExpenses" name="SeveranceAndRetentionBonusExpenses" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_BusinessCombinationShareRatioToAcquireeShareholders" name="BusinessCombinationShareRatioToAcquireeShareholders" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturityAmortizedCost" name="AvailableForSaleSecuritiesAndHeldToMaturityAmortizedCost" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" name="AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_ContractualPaymentOfPrincipalOrInterestPastDuePeriod" name="ContractualPaymentOfPrincipalOrInterestPastDuePeriod" type="xbrli:durationItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_HomeEquityLinesOfCreditMember" name="HomeEquityLinesOfCreditMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_AccruingMember" name="AccruingMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_NonaccruingMember" name="NonaccruingMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FourLoansMember" name="FourLoansMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_ThreeUnrelatedBorrowersMember" name="ThreeUnrelatedBorrowersMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_OtherBorrowerMember" name="OtherBorrowerMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_NineLoansWithFiveRelationshipsMember" name="NineLoansWithFiveRelationshipsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_TwoLargeRelationshipsMember" name="TwoLargeRelationshipsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FifteenLoansWithFiveRelationshipsMember" name="FifteenLoansWithFiveRelationshipsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FifteenLoansWithSevenRelationshipsMember" name="FifteenLoansWithSevenRelationshipsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_CommercialAndIndustrialLoansMember" name="CommercialAndIndustrialLoansMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_LoanTerms" name="LoanTerms" type="xbrli:durationItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_LoanToValueRatio" name="LoanToValueRatio" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" />
  <element id="mpb_LoanToValueRatioExposureAfterPrivateMortgageInsurance" name="LoanToValueRatioExposureAfterPrivateMortgageInsurance" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_FinancingReceivableDeferredFeesAndCosts" name="FinancingReceivableDeferredFeesAndCosts" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_FinancingLeaseMember" name="FinancingLeaseMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_ExcludedAcquiredWithCreditDeteriorationMember" name="ExcludedAcquiredWithCreditDeteriorationMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FinancingReceivableModificationsPreAndPostModificationRecordedInvestment2" name="FinancingReceivableModificationsPreAndPostModificationRecordedInvestment2" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_FinancingReceivablesDuringModificationImpairedTroubledDebtRestructuringWriteDown" name="FinancingReceivablesDuringModificationImpairedTroubledDebtRestructuringWriteDown" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_FinancingReceivableModificationsNumberOfExistingContracts" name="FinancingReceivableModificationsNumberOfExistingContracts" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_FinancingReceivableOtherObligations" name="FinancingReceivableOtherObligations" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_FinancingReceivableModificationsNumberOfAdditionalContracts" name="FinancingReceivableModificationsNumberOfAdditionalContracts" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_NumberOfConsumerMortgageLoansForeclosureProceedingsInProcess" name="NumberOfConsumerMortgageLoansForeclosureProceedingsInProcess" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_CertainLoansAcquiredInTransferAcquisitionOfImpairedLoans" name="CertainLoansAcquiredInTransferAcquisitionOfImpairedLoans" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_CertainLoansAcquiredInTransferAccretableYieldAmortizedToInterestIncome" name="CertainLoansAcquiredInTransferAccretableYieldAmortizedToInterestIncome" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_AvailableForSaleEquitySecuritiesAndLoanForSale" name="AvailableForSaleEquitySecuritiesAndLoanForSale" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_AvailableAndLoanHeldForSaleSecurities" name="AvailableAndLoanHeldForSaleSecurities" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_ImpairedLoanMember" name="ImpairedLoanMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_RealEstateOwnedMember" name="RealEstateOwnedMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_MortgageServicingRightsMember" name="MortgageServicingRightsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FairValueMeasurementInputsRate" name="FairValueMeasurementInputsRate" type="num:percentItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_AppraisalOfCollateralMember" name="AppraisalOfCollateralMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_MultipleOfAnnualServiceMember" name="MultipleOfAnnualServiceMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_UnobservableInputAppraisalAdjustmentsMember" name="UnobservableInputAppraisalAdjustmentsMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_UnobservableInputEstimatedPrepaymentSpeedMember" name="UnobservableInputEstimatedPrepaymentSpeedMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_FairValueMeasurementsValuationTechnique" name="FairValueMeasurementsValuationTechnique" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_FairValueDisclosureUnobservableInputRange" name="FairValueDisclosureUnobservableInputRange" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_AccruedInterestReceivableFairValueDisclosure" name="AccruedInterestReceivableFairValueDisclosure" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_CommitmentsContingenciesAndGuaranteesLineItems" name="CommitmentsContingenciesAndGuaranteesLineItems" type="xbrli:stringItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_CommitmentsContingenciesAndGuaranteesTable" name="CommitmentsContingenciesAndGuaranteesTable" type="xbrli:stringItemType" substitutionGroup="xbrldt:hypercubeItem" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_AffordableHousingTaxCreditsAndOtherTaxBenefitsAnticipatedAmount" name="AffordableHousingTaxCreditsAndOtherTaxBenefitsAnticipatedAmount" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="debit" />
  <element id="mpb_QualifiedAffordableHousingProjectInvestmentsAmortizationPeriod" name="QualifiedAffordableHousingProjectInvestmentsAmortizationPeriod" type="xbrli:durationItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_NumberOfApartments" name="NumberOfApartments" type="xbrli:integerItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_BusinessCombinationLongTermDebtFairValuePremium" name="BusinessCombinationLongTermDebtFairValuePremium" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" xbrli:periodType="instant" nillable="true" abstract="false" xbrli:balance="credit" />
  <element id="mpb_SubordinatedNotesDueTwoThousandAndTwentyFiveMember" name="SubordinatedNotesDueTwoThousandAndTwentyFiveMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_SubordinatedNotesDueTwoThousandAndTwentyEightMember" name="SubordinatedNotesDueTwoThousandAndTwentyEightMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
  <element id="mpb_DebtInstrumentNonCallablePeriod" name="DebtInstrumentNonCallablePeriod" type="xbrli:durationItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_NumberOfRightsToReceiveCumulativePreferredStockUponConversionOfFixedRateCumulativePerpetualPreferredStock" name="NumberOfRightsToReceiveCumulativePreferredStockUponConversionOfFixedRateCumulativePerpetualPreferredStock" type="xbrli:sharesItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="false" />
  <element id="mpb_TwentyFourteenRestrictedStockPlanMember" name="TwentyFourteenRestrictedStockPlanMember" type="nonnum:domainItemType" substitutionGroup="xbrli:item" xbrli:periodType="duration" nillable="true" abstract="true" />
</schema>
