A monster spawner can not be crafted in the game and you can't dig up a spawner with a tool that has Silk Touch. However in Minecraft Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch), a monster spawner is available through the Creative Inventory menu in Creative mode.