A connector (2) for a medical container (1) comprises a connector element (20) to be attached to the medical container (1) for providing a port to the medical container (1). The connector element (20) comprises a head section (202) and a pinch-off section (201) adjoining the head section (202), wherein the head section (202) comprises an opening (204) and the pinch-off section (201) encloses an inner lumen (L) being in fluid connection with the opening (204) of the head section (202) for proving a fluid path through the connector element (20). The pinch-off section (201) is flexibly deformable for pinching off the fluid path through the connector element (2). A closure element (21) is attachable to the head section (202) of the connector element (20) for closing the opening (204) of the head section (202), and a membrane element (22) is held between the head section (202) of the connector element (20) and the closure element (21), the membrane element (22) being pierceable by a needle (30) of a delivery device (3) for injecting a medical fluid into the medical container (1) or for extracting a medical fluid from the medical container (1). Herein, a deflection element (205) extends from the head section (202) towards the inner lumen (L) of the pinch-off section (201) for deflecting a needle (30) of a delivery device (3) when piercing the membrane element (22). In this way a connector for a medical container is provided which in an easy and cost-efficient manner reduces the risk of damaging the pinch-off section of the connector element when piercing the membrane element by means of a needle.La présente invention concerne un connecteur (2) pour un récipient médical (1) qui comprend un élément de connecteur (20) destiné à être fixé au récipient médical (1) pour former un orifice pour le récipient médical (1). L'élément de connecteur (20) comprend une section de tête (202) et une section de pincement (201) adjacente à la section de tête (202), la section de tête (202) c