Y

Youtube Transcript

kimtaeyoon83
GitHubnpm

About

A Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video captions and subtitles through a simple interface.

Key Features

  • Support for multiple video URL formats (including YouTube Shorts)
  • Language-specific transcript retrieval with automatic fallback
  • Optional timestamps for referencing specific moments
  • Built-in ad/sponsorship filtering (enabled by default)
  • Zero external dependencies for transcript fetching
  • Detailed metadata in responses

Usage Examples

Get transcript by video URL:

await server.callTool("get_transcript", {
  url: "https://www.youtube.com/watch?v=VIDEO_ID",
  lang: "en"
});

Get transcript by video ID:

await server.callTool("get_transcript", {
  url: "VIDEO_ID",
  lang: "ko"
});

Get transcript from YouTube Shorts:

await server.callTool("get_transcript", {
  url: "https://www.youtube.com/shorts/VIDEO_ID"
});

Get transcript with timestamps:

await server.callTool("get_transcript", {
  url: "VIDEO_ID",
  include_timestamps: true
});

Get raw transcript without ad filtering:

await server.callTool("get_transcript", {
  url: "VIDEO_ID",
  strip_ads: false
});

In Claude Desktop App:

chat: https://youtu.be/ODaHJzOyVCQ?si=aXkJgso96Deri0aB Extract subtitles

Error Handling

The server implements robust error handling for common scenarios:

  • Invalid video URLs or IDs
  • Unavailable transcripts
  • Language availability issues
  • Network errors

This server runs through your single 1Server connection. No extra config required.

0Installs
543Stars

Categories

ProductivityAI Tools