Is there a machine-readable Sefer Torah or Chumash? Machine-readable meaning formatted as to be understood by a computer program. Despite the phrase, this is different from a Torah simply stored in some sort of electronic medium which though it can be read by a machine/program cannot be parsed meaningfully(understood). E.g. Wikidata is a machine-readable Wikipedia?
Sefaria has an API that will serve it up as a JSON object.
Mechon Mamre's "תיקון קוראים" (also downloadable) has each word of the Pentateuch in a separate
span element; pasuk-final words have different attributes in those elements. This is thus a machine-parseable Pentateuch with machine-parseable delineation of p'sukim, which seems to be what you seek.