npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@adbuilds/youtube-transcript-mcp

v0.0.2

Published

MCP server for retrieving YouTube video transcripts for Claude Code and other MCP-enabled AI tools

Readme

YouTube Transcript MCP Server

npm version

A Model Context Protocol (MCP) server for retrieving transcripts from YouTube videos. Extract, summarize, and analyze video content with Claude Code or any MCP-enabled AI tool.

Quick Start

claude mcp add --scope user youtube-transcript npx @adbuilds/youtube-transcript-mcp

Then restart Claude Code and ask: "Get the transcript from https://www.youtube.com/watch?v=dQw4w9WgXcQ"

Features

  • Get Video Transcripts: Extract full transcripts from any YouTube video with available captions
  • Multiple URL Formats: Support for all common YouTube URL formats
  • Timestamp Support: Include or exclude timestamps in transcript output
  • Language Selection: Request transcripts in specific languages when available
  • Zero Dependencies: Uses native fetch API for transcript fetching (no external packages for YouTube)
  • Multi-Client Fallback: Tries Android → Web → TV_EMBEDDED clients for maximum reliability

Installation

Via npm (Recommended)

npm install -g @adbuilds/youtube-transcript-mcp

From source

git clone https://github.com/adbuilds/youtube-transcript-mcp.git
cd youtube-transcript-mcp
npm install

Configuration

Claude Code CLI (Easiest)

# Add the MCP server for all projects (machine-wide)
claude mcp add --scope user youtube-transcript npx @adbuilds/youtube-transcript-mcp

Manual Configuration

Add to your ~/.claude.json:

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "npx",
      "args": ["@adbuilds/youtube-transcript-mcp"]
    }
  }
}

Usage

Once configured, restart Claude Code. The following tools will be available:

1. get-transcript

Retrieve the transcript of a YouTube video.

Parameters:

  • url (required): YouTube video URL or video ID
  • lang (optional): Language code for transcript (e.g., 'en', 'es', 'fr'). Default: video's default language
  • include_timestamps (optional): Include timestamps in output. Default: true

Supported URL formats:

  • https://www.youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://www.youtube.com/shorts/VIDEO_ID
  • VIDEO_ID (just the 11-character video ID)

Example prompts:

Get the transcript from https://www.youtube.com/watch?v=dQw4w9WgXcQ
Get the transcript from this video without timestamps: https://youtu.be/dQw4w9WgXcQ

2. get-transcript-languages

Check what transcript languages are available for a video.

Parameters:

  • url (required): YouTube video URL or video ID

Example:

What transcript languages are available for https://www.youtube.com/watch?v=dQw4w9WgXcQ?

MCP Token Limit

The MCP protocol has a 25,000 token response limit. For very long videos (60+ minutes):

  • Disable timestamps to reduce size by 20-30%
  • Request shorter clips if available

Technical Details

  • Built with @modelcontextprotocol/sdk
  • Custom YouTube transcript library (yt-lib/) with zero external dependencies
  • Uses YouTube's Innertube API for reliable transcript access
  • Multi-client fallback system (Android → Web → TV_EMBEDDED)

Error Handling

The server provides specific error messages for:

  • Transcripts disabled by video owner
  • Video unavailable or private
  • Age-restricted videos
  • Request blocking (rate limiting)
  • Invalid video IDs

License

MIT