Three types of cyanide-bridged porous magnetic frameworks based on polycyanometallates exhibited reversible magnetic conversions associated with different guest-responsive structural transformation, which highlights the available strategy using a polycyanometallate for constructing the guest-responsive magnetic frameworks.