<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mnsb-20260331.xsd" xlink:type="simple"/>
    <context id="d_2026-01-01_2026-03-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001693577</identifier>
        </entity>
        <period>
            <startDate>2026-01-01</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <dei:DocumentFiscalPeriodFocus contextRef="d_2026-01-01_2026-03-31" id="ixv-3121">Q1</dei:DocumentFiscalPeriodFocus>
    <dei:DocumentFiscalYearFocus contextRef="d_2026-01-01_2026-03-31" id="ixv-3122">2026</dei:DocumentFiscalYearFocus>
    <dei:AmendmentFlag contextRef="d_2026-01-01_2026-03-31" id="ixv-3123">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d_2026-01-01_2026-03-31" id="ixv-3124">0001693577</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d_2026-01-01_2026-03-31" id="c3">S-3</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="d_2026-01-01_2026-03-31" id="c4">MainStreet Bancshares, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d_2026-01-01_2026-03-31" id="c5">VA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="d_2026-01-01_2026-03-31" id="c6">81-2871064</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d_2026-01-01_2026-03-31" id="c7">10089 Fairfax Boulevard</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="d_2026-01-01_2026-03-31" id="c8">Fairfax</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d_2026-01-01_2026-03-31" id="c9">VA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d_2026-01-01_2026-03-31" id="c10">22030</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d_2026-01-01_2026-03-31" id="c11">703</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d_2026-01-01_2026-03-31" id="c12">481-4567</dei:LocalPhoneNumber>
    <dei:EntityFilerCategory contextRef="d_2026-01-01_2026-03-31" id="c13">Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="d_2026-01-01_2026-03-31" id="c14">true</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="d_2026-01-01_2026-03-31" id="c15">false</dei:EntityEmergingGrowthCompany>
</xbrl>
