<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="serv-20260617.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001832483</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-5906">SERVE ROBOTICS INC.</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag contextRef="c0" id="ixv-5907">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
    <ecd:AwardTmgMnpiDiscTextBlock contextRef="c0" id="ixv-1688">&lt;div class="BRDSX_h2" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; font-weight: bold; margin-top: 20.5pt; margin-left: 0pt; text-align: left;"&gt;Policies and Practices Related to the Grant of Certain Equity Awards Close in Time to the Release of Material Nonpublic Information &lt;/div&gt;&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 6pt; margin-left: 0pt; text-indent: 20pt; text-align: justify;"&gt;Our policy is to not grant stock options or similar awards in anticipation of the release of material nonpublic information that is likely to result in changes to the price of our common stock, such as a significant positive or negative earnings announcement, and not time the public release of such information based on stock option grant dates. In addition, it is our policy to not grant stock options or similar awards during periods in which there is material nonpublic information about our company, including (i) during &#x201c;blackout&#x201d; periods or outside a &#x201c;trading window&#x201d; established in connection with the public release of earnings information under our insider trading policy or (ii) at any time during the four business days prior to or the one business day following the filing of our periodic reports or the filing or furnishing of a Form&#160;8-K that discloses material nonpublic information. These restrictions do not apply to restricted stock units or other types of equity awards that do not include an exercise price related to the market price of our common stock on the date of grant. &lt;/div&gt;&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 8.5pt; margin-left: 0pt; text-indent: 20pt; text-align: left;"&gt;Our executive officers are not permitted to choose the grant date for their individual stock option grants. &lt;/div&gt;&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 6pt; margin-left: 0pt; text-indent: 20pt; text-align: justify;"&gt;During the period covered by this Proxy Statement, we have not timed the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation. &lt;/div&gt;</ecd:AwardTmgMnpiDiscTextBlock>
    <ecd:AwardTmgHowMnpiCnsdrdTextBlock contextRef="c0" id="ixv-1691">&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 6pt; margin-left: 0pt; text-indent: 20pt; text-align: justify;"&gt;Our policy is to not grant stock options or similar awards in anticipation of the release of material nonpublic information that is likely to result in changes to the price of our common stock, such as a significant positive or negative earnings announcement, and not time the public release of such information based on stock option grant dates. In addition, it is our policy to not grant stock options or similar awards during periods in which there is material nonpublic information about our company, including (i) during &#x201c;blackout&#x201d; periods or outside a &#x201c;trading window&#x201d; established in connection with the public release of earnings information under our insider trading policy or (ii) at any time during the four business days prior to or the one business day following the filing of our periodic reports or the filing or furnishing of a Form&#160;8-K that discloses material nonpublic information. These restrictions do not apply to restricted stock units or other types of equity awards that do not include an exercise price related to the market price of our common stock on the date of grant. &lt;/div&gt;&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 8.5pt; margin-left: 0pt; text-indent: 20pt; text-align: left;"&gt;Our executive officers are not permitted to choose the grant date for their individual stock option grants. &lt;/div&gt;&lt;div class="BRDSX_para" style="color: #000000; font-family: 'Times New Roman', Times, serif; font-size: 10pt; margin-top: 6pt; margin-left: 0pt; text-indent: 20pt; text-align: justify;"&gt;During the period covered by this Proxy Statement, we have not timed the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation. &lt;/div&gt;</ecd:AwardTmgHowMnpiCnsdrdTextBlock>
    <ecd:AwardTmgMnpiCnsdrdFlag contextRef="c0" id="ixv-5908">true</ecd:AwardTmgMnpiCnsdrdFlag>
    <ecd:MnpiDiscTimedForCompValFlag contextRef="c0" id="ixv-5909">false</ecd:MnpiDiscTimedForCompValFlag>
    <dei:DocumentType contextRef="c0" id="hidden-fact-0">DEF 14A</dei:DocumentType>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-5913">0001832483</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-5914">false</dei:AmendmentFlag>
</xbrl>