XML 40 R32.htm IDEA: XBRL DOCUMENT
v3.24.3

Discontinued Operations - Additional information (Detail) - USD ($) $ in Thousands |  | 9 Months Ended | 12 Months Ended
--- | --- | --- | ---
Feb. 01, 2023 | Sep. 30, 2023 | Dec. 31, 2023 | Dec. 31, 2022
Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] |  |  |  |
Total transaction costs |  | $ 24 |  |
Adler Tank Rentals, LLC |  |  |  |
Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] |  |  |  |
Sale price | $ 268,000 |  |  |
Total transaction costs | $ 8,800 |  | $ 6,700 | $ 2,100

X
- Definition Disposal group including discontinued operation transaction costs. + References No definition available. + Details
Name: | mgrc_DisposalGroupIncludingDiscontinuedOperationTransactionCosts
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of consideration received or receivable for the disposal of assets and liabilities, including discontinued operation. + References No definition available. + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 No definition available. + Details
Name: | us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis=mgrc_AdlerTankRentalsLlcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |