Labsco
kimtaeyoon83 logo

YouTube Transcript MCP

โ˜… 568

from kimtaeyoon83

Download transcripts directly from YouTube videos.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

YouTube Transcript Server

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.

Installing via Smithery

To install YouTube Transcript Server for Claude Desktop automatically via Smithery:

Copy & paste โ€” that's it
npx -y @smithery/cli install @kimtaeyoon83/mcp-server-youtube-transcript --client claude

Components

Tools

  • get_transcript

  • Extract transcripts from YouTube videos

  • Inputs:

  • url (string, required): YouTube video URL, Shorts URL, or video ID

  • lang (string, optional, default: "en"): Language code for transcript (e.g., 'ko', 'en'). Automatically falls back to available languages if requested language is not found.

  • include_timestamps (boolean, optional, default: false): Include timestamps in output (e.g., '[0:05] text')

  • strip_ads (boolean, optional, default: true): Filter out sponsorships, ads, and promotional content from transcript based on chapter markers

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

Awesome-mcp-servers

awesome-mcp-servers A curated list of awesome Model Context Protocol (MCP) servers.

Development

Prerequisites

  • Node.js 18 or higher

  • npm or yarn

Setup

Install dependencies:

Copy & paste โ€” that's it
npm install

Build the server:

Copy & paste โ€” that's it
npm run build

For development with auto-rebuild:

Copy & paste โ€” that's it
npm run watch

Testing

Copy & paste โ€” that's it
npm test

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector for development:

Copy & paste โ€” that's it
npm run inspector

Error Handling

The server implements robust error handling for common scenarios:

  • Invalid video URLs or IDs

  • Unavailable transcripts

  • Language availability issues

  • Network errors

Security Considerations

The server:

  • Validates all input parameters

  • Handles YouTube API errors gracefully

  • Implements timeouts for transcript retrieval

  • Provides detailed error messages for troubleshooting

License

This MCP server is licensed under the MIT License. See the LICENSE file for details.