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

yt-metascribe-mcp-client

v2.3.1

Published

MCP client for YouTube transcript, metadata and comments extraction with automatic chunking support for long videos

Readme

YT MetaScribe MCP Client

An MCP (Model Context Protocol) client for YouTube transcript, metadata and comments extraction — with automatic chunking for long videos and adaptive replies handling for comment threads.

🚀 Installation

For Claude Desktop

  1. Install via NPX (recommended):
{
  "mcpServers": {
    "yt-metascribe-mcp": {
      "command": "npx",
      "args": ["-y", "yt-metascribe-mcp-client"],
      "env": {
        "YOUTUBE_MCP_API_TOKEN": "your-api-token-here",
        "YOUTUBE_MCP_SERVER_URL": "https://your-server-url.com"
      }
    }
  }
}
  1. Add this to your Claude Desktop configuration:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\\Claude\\claude_desktop_config.json
  2. Restart Claude Desktop

🛠️ Available Tools

  1. get_youtube_transcript — Extract video transcript with automatic chunking for long videos
  2. get_youtube_metadata — Get comprehensive video metadata
  3. get_youtube_combined — Get both transcript and metadata in one call
  4. get_youtube_comments — Fetch comments for a video with adaptive replies handling. Defaults to 200 comments sorted by relevance (hard cap 1000). Replies strategy adapts automatically to the video's total comment count — small videos get every reply, medium get the first few per thread, very large videos get top-level only to keep LLM context predictable.

🔧 Configuration

Environment Variables

  • YOUTUBE_MCP_API_TOKEN — Your API token for the YT MetaScribe MCP server
  • YOUTUBE_MCP_SERVER_URL — Server URL (optional, defaults to public server)

📝 Usage Examples

With Claude Desktop:

  • "Get the transcript for this YouTube video: https://youtu.be/VIDEO_ID"
  • "What's the metadata for this video: https://www.youtube.com/watch?v=VIDEO_ID"
  • "Analyze this YouTube video: https://youtu.be/VIDEO_ID"
  • "Fetch the comments for https://youtu.be/VIDEO_ID and summarise the main themes"
  • "Show me the newest 100 comments on https://youtu.be/VIDEO_ID" (uses order=time)

🎯 Features

  • Automatic chunking for long videos (1–2+ hours)
  • Adaptive comment replies — depth scales to the video's comment volume so LLM context stays predictable
  • Compact comment format by default — ~3× less JSON overhead per comment for LLM-friendly responses
  • Intelligent streaming with progress updates
  • Caching support for improved performance
  • Error handling with retry logic

🔗 Links

  • GitHub Repository: https://github.com/eviipx/yt-metascribe-mcp-server
  • Server Documentation: https://github.com/eviipx/yt-metascribe-mcp-server#readme
  • Issues: https://github.com/eviipx/yt-metascribe-mcp-server/issues

📄 License

MIT License

🔄 Changelog

v2.3.1

  • 📝 Re-publish so the npm package page reflects the get_youtube_comments tool shipped in 2.3.0. No code changes vs 2.3.0.

v2.3.0

  • ✨ New get_youtube_comments tool. Fetches comments from a video with adaptive replies handling based on the video's total comment count: small videos get every reply, medium videos get the first few per thread, large videos get top-level only. Default 200 comments, hard cap 1000, sorted by relevance. MCP responses use a compact format to keep LLM context predictable.

v2.2.1

  • 🐛 Fix source="youtube:unknown" in wrapper tags when the tool was called with url instead of video_id. The video_id is now extracted from whichever nested field holds it (metadata.video_id, current_chunk.video_id, etc.).

v2.2.0

  • 🔒 Prompt-injection mitigation: every tool response is wrapped in <untrusted_content source="youtube:VIDEO_ID">…</untrusted_content> with a header instructing the model to treat the content as data rather than instructions. Defense against adversarial text embedded in video titles, descriptions, or transcripts.

v2.1.0

  • ✨ Clean tool names (removed _streamed suffix)
  • 🚀 Direct server-client mapping (no abstraction)
  • 🔧 Automatic chunking built into all transcript tools
  • 📦 NPM package publication

v2.0.0

  • 🆕 Streaming support for long videos
  • 🔄 Automatic chunking with 30-minute segments
  • ⚡ Performance optimizations