Due to the complex and multi-distributed nature of wastewater treatment process data, stochastic configuration networks (SCNs) face difficulties such as large network structure and complex construction process when dealing with data modeling tasks. To address these challenges, this paper proposes a modular stochastic configuration network with attention mechanism, which integrates the advantages of modular partitioning, attention mechanism, and SCN. The model employs a fuzzy mean clustering strategy to simplify and decompose the complex multi-case and multi-distribution nonlinear modeling task, thereby reducing the modeling complexity of a single model. Furthermore, the model utilizes a stochastic configuration algorithm to learn the subtasks and construct corresponding sub-networks. The output weights are then assigned to each sub-network based on the attention mechanism to obtain the model’s final output. The validity of the proposed method is validated through two benchmark experiments. Then the model is applied to measure effluent ammonia nitrogen. The results indicate that compared with the classical randomized and modularized network models, the proposed model exhibits certain advantages in terms of learning accuracy and generalization performance.