XML 32 R54.htm IDEA: XBRL DOCUMENT
v3.20.1

Summary of Significant Accounting Policies (Narrative) (Details) |  | 3 Months Ended | 12 Months Ended | 36 Months Ended |  |
--- | --- | --- | --- | --- | --- | ---
Oct. 31, 2019 USD ($) | Mar. 31, 2019 USD ($) | Jun. 30, 2018 USD ($) Apartment | Dec. 31, 2019 USD ($) shares | Dec. 31, 2018 USD ($) shares | Dec. 31, 2017 USD ($) shares | Dec. 31, 2019 USD ($) | Jun. 25, 2014 shares | May 06, 2014 shares
Cash reserve balances |  |  |  | $ 0 | $ 0 |  | $ 0 |  |
Bank premises and equipment held for sale |  |  |  | $ 0 | 0 |  | 0 |  |
Asset held for sale, description |  |  |  | Bank premises and equipment designated as held for sale are carried at the lower of cost or market value. There were no premises and equipment classified as held for sale as of December 31, 2019 or 2018. During 2019, Mid Penn sold the land and facility formerly used as a full-service retail banking property. |  |  |  |  |
Other securities |  |  |  | $ 782,000 | $ 595,000 | $ 217,000 |  |  |
Federal tax rate |  |  |  | 21.00% | 21.00% | 34.00% |  |  |
Reduction in write-down of deferred tax asset |  |  |  |  |  | $ 1,169,000 |  |  |
Goodwill, Impairment Loss | $ 0 |  |  |  | $ 0 | 0 |  |  |
Amortization expense |  |  |  | $ 1,430,000 | 1,224,000 | 104,000 |  |  |
Residential real estate held in other real estate owned |  |  |  | 78,000 | 844,000 |  | 78,000 |  |
Foreclosure proceedings in process |  |  |  | 84,000 | 211,000 |  | 84,000 |  |
Mortgage servicing rights |  |  |  | 78,000 | 106,000 |  | 78,000 |  |
Mortgage servicing rights, amortization |  |  |  | 28,000 | 20,000 | 18,000 |  |  |
Impairment of mortgage servicing rights |  |  |  |  |  |  | 0 |  |
Principal balance of loans serviced |  |  |  | 12,357,000 | 15,601,000 |  | 12,357,000 |  |
Carrying value of investment in limited partnership |  |  |  | $ 190,000 | 233,000 |  | 190,000 |  |
Low Income Housing Tax Credit |  |  |  |  | 76,000 | $ 76,000 |  |  |
Number of apartments under the project | Apartment |  |  | 37 |  |  |  |  |  |
Limited partner capital contribution commitment |  |  | $ 7,579,000 |  |  |  |  |  |
Project investment amortization period |  |  | 10 years | 10 years |  |  |  |  |
Annual LIHTCs mount awarded for the project |  |  | $ 861,000 |  |  |  |  |  |
Total anticipated LIHTCs amount under the housing project |  |  | $ 8,613,000 |  |  |  |  |  |
Liabilities of funded status |  |  |  | $ 183,000 | 345,000 |  | 183,000 |  |
Settlement gains recognized |  |  |  | 34,000 | 737,000 |  |  |  |
Trust assets |  |  |  | $ 152,492,000 | $ 125,567,000 |  | 152,492,000 |  |
Number of antidilutive shares | shares |  |  |  | 0 | 0 | 0 |  |  |
2014 Restricted Stock Plan [Member] |  |  |  |  |  |  |  |  |
Shares authorized per plan | shares |  |  |  |  |  |  |  | 100,000 | 100,000
Other Assets [Member] |  |  |  |  |  |  |  |  |
Carrying value of investment in limited partnership |  |  |  | $ 7,249,000 | $ 1,710,000 |  | 7,249,000 |  |
Core Deposit Intangible [Member] |  |  |  |  |  |  |  |  |
Core Deposit Intangible, Amortization Period |  |  |  | 10 years |  |  |  |  |
Intangible assets, net |  |  |  | $ 5,526,000 | 6,893,000 |  | 5,526,000 |  |
Amortization expense |  |  |  | 1,367,000 | 1,188,000 | $ 86,000 |  |  |
Impairment of core deposit intangible |  |  |  | 0 | 0 | 0 |  |  |
First Priority Financial Corp. [Member] |  |  |  |  |  |  |  |  |
Goodwill acquired |  |  |  | 39,744,000 | 39,744,000 |  |  |  |
Scottdale Bank and Trust Company [Member] |  |  |  |  |  |  |  |  |
Goodwill acquired |  |  |  | 19,178,000 | 19,178,000 |  |  |  |
Phoenix Bancorp Incorporated [Member] |  |  |  |  |  |  |  |  |
Goodwill acquired |  |  |  | 3,918,000 | 3,918,000 |  |  |  |
Scottdale and First Priority [Member] | 401(k) Plan [Member] |  |  |  |  |  |  |  |  |
Defined contribution plan, associated expense |  |  |  | 0 | 0 |  |  |  |
Federal Home Loan Bank of Pittsburgh [Member] |  |  |  |  |  |  |  |  |
Other securities |  |  |  | 424,000 | 275,000 | $ 114,000 |  |  |
Non Interest Expense [Member] |  |  |  |  |  |  |  |  |
Asset held for sale, impairment charge |  | $ 105,000 |  |  |  |  |  |  |
Reserve for Off-balance Sheet Activities [Member] |  |  |  |  |  |  |  |  |
Valuation allowances and reserves, balance |  |  |  | $ 80,000 | 159,000 |  | $ 80,000 |  |
Maximum [Member] |  |  |  |  |  |  |  |  |
Maturity of interest bearing time deposits with other financial institutions |  |  |  | 1 year |  |  |  |  |
Non-residential consumer loans charged off on contractual basis in event of bankruptcy, in period |  |  |  | 120 days |  |  | 120 days |  |
Maximum [Member] | Building Assets [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 50 years |  |  |  |  |
Maximum [Member] | Furniture, Fixtures, and Equipment [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 10 years |  |  |  |  |
Maximum [Member] | Land Improvements [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 20 years |  |  |  |  |
Maximum [Member] | Leasehold Improvements [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 15 years |  |  |  |  |
Minimum [Member] | Building Assets [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 5 years |  |  |  |  |
Minimum [Member] | Furniture, Fixtures, and Equipment [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 3 years |  |  |  |  |
Minimum [Member] | Land Improvements [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 10 years |  |  |  |  |
Minimum [Member] | Leasehold Improvements [Member] |  |  |  |  |  |  |  |  |
Property, plant and equipment, useful life |  |  |  | 10 years |  |  |  |  |
Residential Portfolio [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |
Loan terms |  |  |  | 30 years |  |  |  |  |
Loan to value ratio |  |  |  | 100.00% |  |  | 100.00% |  |
Loan to value ratio, exposure after private mortgage insurance |  |  |  | 85.00% |  |  |  |  |
Commercial Portfolio [Member] |  |  |  |  |  |  |  |  |
Loan terms |  |  |  | 1 year |  |  |  |  |
Loan to value ratio |  |  |  | 80.00% |  |  | 80.00% |  |
Home equity lines of credit [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |
Loan terms |  |  |  | 20 years |  |  |  |  |
Loan to value ratio |  |  |  | 85.00% |  |  | 85.00% |  |
Home Equity Lines Of Credit [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |
Loan terms |  |  |  | 5 years |  |  |  |  |
Equity Securities [Member] |  |  |  |  |  |  |  |  |
Equity securities, fair value |  |  |  | $ 507,000 | 492,000 |  | $ 507,000 |  |
Equity Securities [Member] | ASU 2016-01 [Member] |  |  |  |  |  |  |  |  |
Equity securities, fair value |  |  |  | 507,000 | 492,000 |  | $ 507,000 |  |
Equity securities sold |  |  |  | $ 0 | 0 |  |  |  |
Equity Securities [Member] | ASU 2016-01 [Member] | Accumulated Other Comprehensive Loss [Member] |  |  |  |  |  |  |  |  |
Net unrealized losses reclassified |  |  |  |  | $ 44,000 |  |  |  |

X
- Definition Affordable housing tax credits and other tax benefits anticipated amount. + References No definition available. + Details
Name: | mpb_AffordableHousingTaxCreditsAndOtherTaxBenefitsAnticipatedAmount
Namespace Prefix: | mpb_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Impairment of mortgage servicing rights. + References No definition available. + Details
Name: | mpb_ImpairmentOfMortgageServicingRights
Namespace Prefix: | mpb_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Loan terms. + References No definition available. + Details
Name: | mpb_LoanTerms
Namespace Prefix: | mpb_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Loan to value ratio. + References No definition available. + Details
Name: | mpb_LoanToValueRatio
Namespace Prefix: | mpb_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Loan to value ratio, exposure after private mortgage insurance. + References No definition available. + Details
Name: | mpb_LoanToValueRatioExposureAfterPrivateMortgageInsurance
Namespace Prefix: | mpb_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Low income housing tax credit. + References No definition available. + Details
Name: | mpb_LowIncomeHousingTaxCredit
Namespace Prefix: | mpb_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of apartments. + References No definition available. + Details
Name: | mpb_NumberOfApartments
Namespace Prefix: | mpb_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Qualified affordable housing project investments amortization period. + References No definition available. + Details
Name: | mpb_QualifiedAffordableHousingProjectInvestmentsAmortizationPeriod
Namespace Prefix: | mpb_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of contractual principal due at origination of mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 12 -Paragraph Column F -Subsection 29 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 948 -SubTopic 310 -Section S99 -Paragraph 1 -Subparagraph (SX 210.12-29(Column F)) -URI http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014 + Details
Name: | srt_MortgageLoansOnRealEstateFaceAmountOfMortgages
Namespace Prefix: | srt_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of affordable housing tax credits and other tax benefits recognized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 740 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=116633289&loc=SL49122993-202985 + Details
Name: | us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274 + Details
Name: | us-gaap_AmortizationOfIntangibleAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The total amount of cash and securities held by third party trustees pursuant to terms of debt instruments or other agreements as of the date of each statement of financial position presented, which can be used by the trustee only to pay the noncurrent portion of specified obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(b)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_AssetsHeldInTrust
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of equity securities categorized neither as held-to-maturity nor as trading. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesEquitySecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cash deposited in a special reserve account for the exclusive benefit of customers pursuant to SEC Regulations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=116631393&loc=SL116631396-227033 + Details
Name: | us-gaap_CashReserveDepositRequiredAndMade
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of funded (unfunded) status of defined benefit plan, measured as difference between fair value of plan assets and benefit obligation. Includes, but is not limited to, overfunded (underfunded) status. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109237824&loc=d3e1703-114919 + Details
Name: | us-gaap_DefinedBenefitPlanFundedStatusOfPlan
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of gain (loss) recognized in net periodic benefit (cost) credit from irrevocable action relieving primary responsibility for benefit obligation and eliminating risk related to obligation and assets used to effect settlement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (h)(7) -URI http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 6 -Subparagraph (a)(7) -URI http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920 + Details
Name: | us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 70 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount classified as property, plant and equipment attributable to disposal group held for sale or disposed of. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=109222160&loc=d3e1107-107759 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=109222160&loc=SL51721533-107759 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I) -URI http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32698-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Threshold period for when financing receivable is considered past due to write off as uncollectible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 14 -URI http://asc.fasb.org/extlink&oid=119407570&loc=SL82919253-210447 + Details
Name: | us-gaap_FinancingReceivableThresholdPeriodPastDueWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_FiniteLivedIntangibleAssetUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=108376223&loc=d3e13816-109267 + Details
Name: | us-gaap_GoodwillAcquiredDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of loss from the write-down of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=108376223&loc=d3e13854-109267 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=108376223&loc=d3e13816-109267 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=99380562&loc=d3e13777-109266 + Details
Name: | us-gaap_GoodwillImpairmentLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of impairment loss recognized in the period resulting from the write-down of the carrying amount of a finite-lived intangible asset to fair value. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16373-109275 + Details
Name: | us-gaap_ImpairmentOfIntangibleAssetsFinitelived
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate amount of write-downs for impairments recognized during the period for long-lived assets held for abandonment, exchange or sale. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=109226348&loc=d3e2611-110228 + Details
Name: | us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of investment in equity method investee and investment in and advance to affiliate. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.12) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition A description of the assets to be disposed of and the facts and circumstances leading to the expected disposal, and the expected manner and timing of the disposal (generally no more than 12 months from the date of the balance sheet). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760 + Details
Name: | us-gaap_LongLivedAssetsHeldForSaleDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period of time between issuance and maturity of customer deposits, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher SEC -Name Industry Guide -Number 3 -Section V -Paragraph D-E + Details
Name: | us-gaap_MaturityOfTimeDeposits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Recorded investment of consumer mortgage loan receivables secured by residential real estate properties for which formal foreclosure proceedings are in process. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 35 -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL49126937-111524 + Details
Name: | us-gaap_MortgageLoansInProcessOfForeclosureAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount after tax and reclassification adjustments, of appreciation (loss) in value of unsold available-for-sale securities. Excludes amounts related to other than temporary impairment (OTTI) loss. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 10A -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=118930883&loc=SL7669646-108580 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=118930883&loc=d3e637-108580 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 10A -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=118930883&loc=SL7669646-108580 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after discount, accretion and premium amortization, of interest income and dividend income classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.4) -URI http://asc.fasb.org/extlink&oid=116637391&loc=SL114874048-224260 + Details
Name: | us-gaap_OtherInterestAndDividendIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Carrying amount as of the balance sheet date of other real estate and foreclosed assets. Other real estate may include real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. Foreclosed assets include all assets obtained in full or partial satisfaction of a debt arrangement through foreclosure proceedings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.10(4)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_OtherRealEstateAndForeclosedAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash inflow associated with the sale of equity securities classified as available-for-sale securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=118954083&loc=d3e26853-111562 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment. + References No definition available. + Details
Name: | us-gaap_PropertyPlantAndEquipmentUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of commitment or contingent commitments to qualified affordable housing project investments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 740 -Section 50 -Paragraph 2 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=116633289&loc=SL49122993-202985 + Details
Name: | us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Aggregate amount of servicing assets that are subsequently measured at fair value and servicing assets that are subsequently measured using the amortization method. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745 + Details
Name: | us-gaap_ServicingAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization of contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 4 -Subparagraph (a)(4) -URI http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746 + Details
Name: | us-gaap_ServicingAssetAtAmortizedValueAmortization1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of shares authorized for issuance under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of income tax expense (benefit) for remeasurement of deferred tax from change in tax rate pursuant to Tax Cuts and Jobs Act. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319 + Details
Name: | us-gaap_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of valuation and qualifying accounts and reserves. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesBalance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_PlanNameAxis=mpb_TwentyFourteenRestrictedStockPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CoreDepositsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mpb_FirstPriorityFinancialCorporationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mpb_ScottdaleBankAndTrustCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mpb_PhoenixBancorpIncorporatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mpb_ScottdaleBankAndTrustCompanyAndFirstPriorityFinancialCorporationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=mpb_Retirement401KPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_FederalHomeLoanBankAdvancesBranchOfFHLBBankAxis=srt_FederalHomeLoanBankOfPittsburghMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=mpb_NonInterestExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=us-gaap_ReserveForOffBalanceSheetActivitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_BuildingAndBuildingImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_FurnitureAndFixturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_LandImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_LeaseholdImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=us-gaap_ResidentialPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=us-gaap_CommercialPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_HomeEquityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=mpb_HomeEquityLinesOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_EquitySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201601Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AccumulatedOtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |