The chemical reactions and pathways involving thiocyanate, the anion of thiocyanic acid, a toxic cyanide derivative commonly formed as a by-product in the production of gas for fuel, coke, and substances for chemical industries.