MCP server that fetches YouTube video transcripts and optionally summarizes them
Project description
youtube-summarize
MCP server that fetches YouTube video transcripts and optionally summarizes them.
Features
- Fetch transcripts in multiple formats (text, JSON, SRT, WebVTT, pretty-print)
- Video metadata — title, description, channel, upload date, duration, views, chapters (via yt-dlp)
- Optional timestamps in plain-text transcripts
- Summarize videos — returns transcript with the prompt clearly broken out for human review before the LLM acts on it
- List playlist videos — fast enumeration of any public playlist with optional sorting
- List available languages for any video's transcripts
- Flexible URL parsing — accepts full YouTube URLs (
youtube.com/watch?v=,youtu.be/,youtube.com/embed/,youtube.com/shorts/) or bare video IDs - Multi-language support — request transcripts in specific languages with fallback priority
Tools
get_transcript
Fetch a YouTube video's transcript. By default the response is prefixed with a [METADATA] block (title, channel, published, duration, views, description); pass include_metadata=false for transcript-only output.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | YouTube video URL or video ID |
languages |
string[] | ["en"] |
Preferred languages in priority order |
format |
string | "text" |
Output format: text, json, pretty, webvtt, srt |
preserve_formatting |
boolean | false |
Keep HTML formatting tags in the transcript |
include_timestamps |
boolean | false |
When true with format="text", prefix each line with [HH:MM:SS]. Ignored for other formats (they already include timestamps). |
include_metadata |
boolean | true |
Prepend a [METADATA] block before the transcript. Pass false for transcript-only output. |
summarize_transcript
Fetch a transcript and return it with summarization instructions. The response is structured into clearly-labeled sections ([INSTRUCTIONS], [PROMPT_SOURCE], [VIDEO], [METADATA], [TRANSCRIPT]) so a human can review the prompt before letting the LLM act on it.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | YouTube video URL or video ID |
prompt |
string | (default prompt) | Custom summarization instructions |
languages |
string[] | ["en"] |
Preferred languages in priority order |
include_timestamps |
boolean | false |
Prefix each transcript line with [HH:MM:SS]. |
include_metadata |
boolean | true |
Include a [VIDEO] block with title, channel, published, duration, views, and description. |
get_video_metadata
Fetch metadata (title, description, channel, upload date, duration, views, tags, chapters, etc.) for a YouTube video. Backed by yt-dlp.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | YouTube video URL or video ID |
list_playlist_videos
List the videos in a YouTube playlist (title, ID, channel, duration, views, URL). Per-video metadata is intentionally lean so the call stays fast even for large playlists; call get_video_metadata with a specific video ID for full detail.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | YouTube playlist URL (with ?list=...) or bare playlist ID |
limit |
integer | 500 |
Maximum videos to return |
sort_by |
string | "index" |
One of: index (playlist order), title, duration, views. upload_date is not supported. |
order |
string | "asc" |
asc or desc |
list_transcripts
List available transcript languages for a video.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | YouTube video URL or video ID |
Installation
Quick start (recommended)
uvx youtube-summarize
Claude Desktop
Add to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"youtube-summarize": {
"command": "uvx",
"args": ["youtube-summarize"]
}
}
}
Claude Code
claude mcp add youtube-summarize -- uvx youtube-summarize
Other MCP clients
Run the server over stdio:
uvx youtube-summarize
Prerequisites
- Python 3.13+
- uv package manager
Development
# Install dependencies
uv sync
# Launch the MCP inspector (web UI for testing tools)
uv run mcp dev main.py
License
MIT
mcp-name: io.github.zlatkoc/youtube-summarize
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file youtube_summarize-0.3.0.tar.gz.
File metadata
- Download URL: youtube_summarize-0.3.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ad96b05983a69b625ff9be7990f7d6ed350297372808b50b34775500cd0800
|
|
| MD5 |
fc657d1ec6b2eb83d04524788fe79e5c
|
|
| BLAKE2b-256 |
4f0ad97e6652e036a7b867fee8b3e512fb33beff09f6a02fb8edb4c150c849b0
|
Provenance
The following attestation bundles were made for youtube_summarize-0.3.0.tar.gz:
Publisher:
publish.yml on zlatkoc/youtube-summarize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
youtube_summarize-0.3.0.tar.gz -
Subject digest:
f7ad96b05983a69b625ff9be7990f7d6ed350297372808b50b34775500cd0800 - Sigstore transparency entry: 1429422714
- Sigstore integration time:
-
Permalink:
zlatkoc/youtube-summarize@50a689221b935d4daab22877cfcec0871a10380a -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/zlatkoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50a689221b935d4daab22877cfcec0871a10380a -
Trigger Event:
release
-
Statement type:
File details
Details for the file youtube_summarize-0.3.0-py3-none-any.whl.
File metadata
- Download URL: youtube_summarize-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006e94614f1c442772a2ce2522a001fb5243a98573612b8f2ed9f3764c20119f
|
|
| MD5 |
f065051fdf82ba00a50d18abea663aea
|
|
| BLAKE2b-256 |
ff9419c6319e2ff1650801f66cabf6f444753c5fd31fe2801cb17826a25c6323
|
Provenance
The following attestation bundles were made for youtube_summarize-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on zlatkoc/youtube-summarize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
youtube_summarize-0.3.0-py3-none-any.whl -
Subject digest:
006e94614f1c442772a2ce2522a001fb5243a98573612b8f2ed9f3764c20119f - Sigstore transparency entry: 1429422717
- Sigstore integration time:
-
Permalink:
zlatkoc/youtube-summarize@50a689221b935d4daab22877cfcec0871a10380a -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/zlatkoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50a689221b935d4daab22877cfcec0871a10380a -
Trigger Event:
release
-
Statement type: