Coffee machine capable of brewing coffee capsule

The utility model relates to a coffee maker for brewing the coffee capsules. The coffee maker comprises a heating element which can heat the cold water to brew the coffee capsule, a brewing cavity device which accommodates the coffee capsule, a locking device and more than one flexible drilling port device. When the brewing cavity device of the coffee maker is in a brewing coffee state, the drilling port equipment of the drilling port device will be in the working position and the drilling port equipment will extend out and in brewing cavity from the brewing device to drill port for the coffee capsule. When the brewing cavity device of the coffee maker is not in a brewing coffee state, the drilling port equipment will be in a rest state and the drilling port equipment will retreat back into the brewing cavity device and be hidden. The utility model can prevent the damage of the wound of the fingers when the brewing cavity device is cleaned or the brewing cavity device is changed.