youtube-watchlater-mcp
Fetches your YouTube Watch Later playlist using yt-dlp with browser cookies, bypassing YouTube API limitations. Also supports downloading video subtitles.
README
youtube-watchlater-mcp
MCP server for fetching your YouTube Watch Later playlist via yt-dlp.
Why This Exists
The YouTube Watch Later playlist is invisible to the YouTube Data API.
Most YouTube MCP servers and integrations use the official YouTube Data API v3 with OAuth authentication. This works well for public playlists, subscriptions, search, and liked videos — but Watch Later is a special private playlist (WL) that Google has explicitly excluded from the API. Even with full OAuth scopes and a valid token, the API returns an empty result or a 403 Forbidden error for this playlist.
This means:
- OAuth-based MCPs cannot access Watch Later — the endpoint simply does not exist in the API.
- Scraping the YouTube web UI requires managing session cookies, handling anti-bot measures, and is fragile against layout changes.
- yt-dlp with browser cookies is the only reliable approach: it reads the authentication cookies that your browser already holds from your active YouTube login, and uses them to fetch the playlist directly — exactly as your browser would.
This server wraps that mechanism as an MCP tool so AI assistants can read your Watch Later queue without you needing API keys, OAuth flows, or exposing credentials.
Requirements
- Node.js 18+
yt-dlpinstalled and available on$PATH- YouTube account logged in to a browser on your machine
Installation
1. Install yt-dlp:
# macOS
brew install yt-dlp
# Linux
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
# Windows (winget)
winget install yt-dlp
2. Install Node.js dependencies:
npm install
Running
npm start
The server communicates over stdio and is intended to be connected to an MCP host (e.g. Claude Desktop), not run directly in a browser.
Claude Desktop Setup
Add to claude_desktop_config.json:
{
"mcpServers": {
"youtube-watchlater": {
"command": "node",
"args": ["/path/to/youtube-watchlater-mcp/server.mjs"]
}
}
}
Tool: get_watch_later
Returns videos from your Watch Later playlist.
| Parameter | Type | Default | Description |
|---|---|---|---|
browser |
chrome | brave | edge | firefox |
chrome |
Browser to read YouTube cookies from |
limit |
number (1–500) | 50 |
Number of videos to return |
profile |
string | — | Browser profile name, e.g. "Default" or "Profile 1" |
Example response:
{
"items": [
{
"videoId": "dQw4w9WgXcQ",
"title": "Never Gonna Give You Up",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"channel": "Rick Astley"
}
]
}
Tool: get_subtitles
Downloads auto-generated subtitles for a YouTube video and returns the VTT content.
| Parameter | Type | Default | Description |
|---|---|---|---|
video |
string | — | YouTube video URL or bare video ID (e.g. dQw4w9WgXcQ) |
lang |
string | "en" |
Subtitle language code, e.g. "en" or "ru" |
browser |
chrome | brave | edge | firefox |
chrome |
Browser to read YouTube cookies from |
profile |
string | — | Browser profile name, e.g. "Default" or "Profile 1" |
Example response:
{
"lang": "en",
"videoId": "dQw4w9WgXcQ",
"subtitles": "WEBVTT\n..."
}
How It Works
The server calls yt-dlp --cookies-from-browser <browser> --flat-playlist --dump-json against the WL playlist. Cookies are read directly from the local browser — no tokens or passwords are transmitted anywhere.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.