v3.25.4

EMPLOYEE BENEFIT PLANS - (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2023
Defined Contribution Plan Disclosure [Line Items] |  |  |
Maximum annual contribution by employee, percentage of pre-tax earnings | 50.00% |  |
U.S. Employees |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Minimum period of service required for matching contribution eligibility | 1 year |  |
Minimum required period of service for employer contributions to fully vest | 3 years |  |
Recognized cost of employee benefit plan | $ 10.1 | $ 8.9 | $ 7.4
Non-U.S. Employees | Defined Contribution Arrangements |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Recognized cost of employee benefit plan | $ 4.5 | $ 4.0 | $ 3.3

X
- Definition Defined contribution plan, minimum period of service required to completely vest the employer contributions. + References No definition available. + Details
Name: | medp_DefinedContributionPlanMinimumPeriodOfServiceRequiredForEmployerContributionsToFullyVest
Namespace Prefix: | medp_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Defined contribution plan, minimum period of service required to be eligible for matching contribution. + References No definition available. + Details
Name: | medp_DefinedContributionPlanMinimumPeriodOfServiceRequiredForMatchingContributionEligibility
Namespace Prefix: | medp_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum percentage of employee gross pay the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=medp_USEmployeesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=medp_NonUSEmployeesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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