Metal-organic frameworks (MOFs) with porosity and functional adjustability have great potential for the removal of organic dyes in the wastewater. Herein, an anionic porous metal-organic framework (MOFs) [Me2NH2]2In2[(TATAB)4(DMF)4]·(DMF)4(H2O)4 (HDU-1) was synthesized, which is constructed from a [In(OOC)4]− cluster and a nitrogen-rich linker H3TATAB (4,4′,4″-s-triazine-1,3,5-triyltri-p-aminobenzoic acid). The negatively charged [In(OOC)4]− cluster and uncoordinated –COOH on the linker result in one unit cell of HDU-1 having 8 negative sites. The zeta potential of -20.8 mV dispersed in pure water also shows that HDU-1 possesses negatively charged surface potential. The high electronegativity, water stability, and porosity of HDU-1 can facilitate the ion-exchange and Coulombic interaction. As expected, the HDU-1 exhibits high selectivity and removal rates towards trace cationic dyes with suitable size, such as methylene blue (MB) (96%), Brilliant green (BG) (99.3%), and Victoria blue B (VB) (93.6%).