The study of the dialogue between microorganisms at the molecular level is becoming essential to understand their relationship (antagonist, neutral, or beneficial interactions) and its impact on the organization of the microbial community. Mass spectrometry imaging (MSI) with matrix-assisted laser desorption/ionization (MALDI) is a technique that reveals the spatial distribution of molecules on a sample surface that may be involved in interactions between organisms. An experimental limitation to perform MALDI MSI is a flat sample surface, which in many cases could not be achieved for bacterial colonies such as filamentous bacteria (e.g., Streptomyces). In addition, sample heterogeneity affects sample dryness and MALDI matrix deposition prior to MSI. To avoid such problems, we introduce an additional step in the sample preparation. A polymeric membrane is interposed between the microorganisms and the agar-based culture medium, allowing the removal of bacterial colonies prior to MSI of the homogeneous culture medium. A proof of concept was evaluated on Streptomyces ambofaciens (a soil bacterium) cultures on solid media. As the mycelium was removed at the same time as the polymeric membrane, the metabolites released into the medium were spatially resolved by MALDI MSI. In addition, extraction of the recovered mycelium from the membrane confirmed the identification of the metabolites by ESI MS/MS analysis. This approach allows both the spatial distribution of metabolites produced by microorganisms in an agar medium to be studied under well-controlled sample preparation and their structure to be elucidated. This capability is illustrated using desferrioxamine E, a siderophore produced by S. ambofaciens.