The safe use of methanol-reforming hydrogen fuel cells requires the accurate identification and detection of the gases involved in methanol and hydrogen. To address this issue, we construct unique gas sensors by uniformly growing zeolitic imidazolate framework (ZIF) (ZIF-67 and ZIF-8) particles on the surface of functionalized V 2 CT x (F-V 2 CT x ), which are prealkalized and then grafted with (3-aminopropyl) triethoxysilane (APTES). In the achieved composite of F-V 2 CT x /ZIFs, V 2 CT x provides a fast electron transport channel, and ZIFs provide adsorption sites for specific gases. Thus, with different ZIF modifications, the V 2 CT x /ZIF-based sensors are modulated to realize the selective detection of methanol or hydrogen. This reveals that the F-V 2 CT x /ZIF-8 and F-V 2 CT x /ZIF-67 sensors exhibit fast response/recovery to hydrogen (5/4 s to 500 ppm H 2 ) and methanol (3/12 s to 10 ppm methanol), respectively. The F-V 2 CT x /ZIF-67 sensor exhibits the capability of detecting sub ppm methanol, with a theoretical detection limit of 72 ppb, while the F-V 2 CT x /ZIF-8 sensor shows good selectivity to hydrogen at room temperature. The mechanisms for the gas-sensing enhancement and gas-selectivity modulation of V 2 CT x /ZIF sensors are clarified based on the heterojunction effect and first-principles calculations, respectively. This work expands the application of nanocomposites composed of V 2 CT x and ZIFs in the field of gas sensors and proposes an effective strategy for gas selectivity modulation by different ZIF modifications.