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

youtube-knowledge-mcp

v1.0.3

Published

MCP Server for extracting and managing YouTube video knowledge

Readme

YouTube Knowledge MCP

npm version License: MIT Node.js GitHub stars

A Model Context Protocol (MCP) server that gives AI assistants the ability to extract knowledge from YouTube videos. Works with Claude Desktop, Claude Code, Cursor and any MCP-compatible client. Fetch video metadata, extract transcripts, download videos, and build a personal knowledge library from YouTube content.

YouTube Knowledge MCP

Features

  • Fetch videos from playlists or channels
  • Get video info (title, channel, duration, description, tags)
  • Extract transcripts (auto-generated or manual captions)
  • Download videos with quality selection and format options
  • Save to library (summaries, notes, skills)
  • List library with tag filtering

Prerequisites

Installation

Via npm (Recommended)

npm install -g youtube-knowledge-mcp

Via npx (no installation)

Configure directly with npx (see Configuration section).

From source

git clone https://github.com/teobouancheau/youtube-knowledge-mcp.git
cd youtube-knowledge-mcp
npm install
npm run build

Configuration

Quick Start with npx (Recommended)

No installation needed! Add to your MCP configuration:

{
  "mcpServers": {
    "youtube-knowledge": {
      "command": "npx",
      "args": ["-y", "youtube-knowledge-mcp"]
    }
  }
}

With Global Installation

npm install -g youtube-knowledge-mcp
{
  "mcpServers": {
    "youtube-knowledge": {
      "command": "youtube-knowledge-mcp"
    }
  }
}

Configuration File Locations

| Client | Path | | ---------------------------- | ----------------------------------------------------------------- | | Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json | | Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json | | Claude Desktop (Linux) | ~/.config/Claude/claude_desktop_config.json | | Claude Code | .mcp.json in your project or ~/.claude/settings.json | | Cursor | .cursor/mcp.json in your project |

Restart your client after updating configuration.

MCP Tools

youtube_fetch_videos

List videos from a YouTube playlist or channel.

| Parameter | Type | Default | Description | | --------- | ------ | -------- | ------------------------------- | | url | string | required | YouTube playlist or channel URL | | limit | number | 20 | Maximum videos to fetch |

youtube_get_video_info

Get detailed metadata for a YouTube video.

| Parameter | Type | Description | | --------- | ------ | --------------- | | video | string | Video ID or URL |

Returns: title, channel, duration, description, tags, thumbnail

youtube_get_transcript

Extract transcript/subtitles from a YouTube video.

| Parameter | Type | Default | Description | | ---------- | ------ | -------- | ----------------------- | | video | string | required | Video ID or URL | | language | string | "en" | Preferred language code |

youtube_list_formats

List available download formats for a YouTube video.

| Parameter | Type | Description | | --------- | ------ | --------------- | | video | string | Video ID or URL |

Returns: format IDs, resolutions, codecs, file sizes

youtube_download_video

Download a YouTube video with quality selection.

| Parameter | Type | Default | Description | | ----------- | ------ | -------- | ------------------------------------------------------------------- | | video | string | required | Video ID or URL | | quality | string | "best" | Quality preset (best, 2160p, 1440p, 1080p, 720p, 480p, 360p, audio) | | formatId | string | - | Specific format code from youtube_list_formats | | outputDir | string | - | Custom output directory |

youtube_save_to_library

Save content to your personal YouTube knowledge library.

| Parameter | Type | Description | | -------------- | -------- | --------------------- | | video_id | string | YouTube video ID | | title | string | Video title | | content | string | Content to save | | content_type | string | "summary" or "skill" | | tags | string[] | Optional tags | | channel | string | Optional channel name |

youtube_list_library

List all saved items in your library.

| Parameter | Type | Description | | --------- | ------ | ---------------------- | | tag | string | Optional filter by tag |

Library Storage

Content is stored in ~/.youtube-knowledge/:

~/.youtube-knowledge/
├── transcripts/          # Cached transcripts
│   └── {video_id}.txt
├── library/              # Saved content
│   └── {video_id}/
│       ├── metadata.json
│       ├── summary.md
│       └── skill.md
├── downloads/            # Downloaded videos
│   └── {video_title}.{ext}
└── index.json            # Searchable index

Usage Examples

Quick summary

"Summarize this video: https://youtube.com/watch?v=ABC123"

Explore a channel

"Show me the latest videos from @ThePrimeagen"

Download a video

"Download this video in 1080p: https://youtube.com/watch?v=ABC123"

Save to library

"Save this summary with tags: programming, productivity"

Create a skill

"Create a Claude Code skill from this video's content"

Testing

npm test              # Run all tests
npm run test:watch    # Watch mode
npm run test:coverage # Coverage report

Test Suite:

  • 11 tests passing
  • Execution time: ~100ms
  • 🧰 Framework: Vitest

Development

npm run dev      # Watch mode
npm run build    # Build for production
npm run rebuild  # Clean and rebuild
npm start        # Run the server

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Run tests (npm test)
  4. Submit a pull request

License

MIT License - see LICENSE for details.

Attribution appreciated! If you use YouTube Knowledge MCP, consider:

  • ⭐ Starring this repository
  • 💬 Mentioning it in your project
  • 🔗 Linking back to this repo

Acknowledgments

  • yt-dlp for the powerful YouTube extraction
  • Anthropic for the Model Context Protocol
  • All contributors and users of this project