mcpField
E
extract-transcript

extract-transcript

github.com/pamelafoxCreative & media128117 installsUpdated 8w ago
Repository

About extract-transcript

A skill that runs a script to retrieve a timestamped transcript from a YouTube video. It is for users who need transcript text in a file or on standard output.

Key features

  1. 01Fetches YouTube transcripts
  2. 02Adds timestamps to each line
  3. 03Writes to a file or stdout

Use cases

  1. 01Save a video transcript for review
  2. 02Read transcript text alongside timestamps

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pamelafox/presentation-skills --skill extract-transcript

After installing, type/extract-transcriptin Claude Code to confirm it loaded.

Bundled filesextract_transcript.py

Details

From the project README

Extract transcript from YouTube video

Run the extract_transcript.py script to fetch a timestamped transcript:

uv run .agents/skills/extract-transcript/extract_transcript.py <youtube_url> [output_file]

Arguments

  • youtube_url (required): YouTube video URL. Supported formats:
    • https://www.youtube.com/watch?v=VIDEO_ID
    • https://youtu.be/VIDEO_ID
    • https://www.youtube.com/embed/VIDEO_ID
  • output_file (optional): Path to save the transcript. If omitted, prints to stdout.

Output format

Each line has a timestamp followed by the transcript text:

[00:00] Welcome to this talk about...
[00:15] Today we'll be covering...
[01:30] Let's start with the first topic...

Timestamps use [MM:SS] format for videos under an hour, [HH:MM:SS] for longer videos.

Comments

Markdown supported