Baltimore Orioles pitcher Miguel Castro says he's lucky to be alive today ... he says he was robbed at gunpoint and would have been shot during the attack if the weapon hadn't jammed.
The 25-year-old said Tuesday he was on his way to train in the Dominican Republic when he was jumped and robbed by two men.
Castro claims the guys took his chain ... and then attempted to shoot him -- but says the gun locked up on the criminals.
"I'm alive by the mercy of God," Castro said on social media ... "They took my chain and they wanted to kill me. It's unbelievable."
Castro's reps say he's shaken up but fine ... and Miguel added crimes in his hometown have to stop ASAP.
Orioles general manager Mike Elias said in a statement Tuesday, "We are in contact with Miguel Castro regarding today's incident in La Romana, DR and we are very thankful that he is safe."
Castro has been one of the staple arms of Baltimore's bullpen the past 3 seasons ... appearing in 167 games for the Orioles with a 4.66 ERA.