/install bootleg-link-mcp
Bootleg-Link MCP v0.7.0
Python MCP server for downloading YouTube audio as MP3 with automatic cover art embedding. Features a task queue, concurrent download manager, SQLite-based persistence, and paged playlist support.
Architecture
Single-file Python MCP server (src/server.py) communicating over stdin/stdout via JSON-RPC 2.0.
- Task Queue: In-memory queue with SQLite persistence for resume across restarts
- Download Engine: yt-dlp Python API with
bestaudio/bestformat - Cover Art: Downloads thumbnail via
writethumbnail, embeds into MP3 ID3 APIC frame using mutagen, then cleans up webp/webm files - Concurrency: ThreadPoolExecutor with configurable worker count
- Paged Playlist: Flat playlist extraction (100 per page) for large channel downloads
MCP Tools
| Tool | Description |
|---|---|
submit_download_task |
Submit a YouTube URL/channel for audio download |
query_progress |
Query task progress and status |
list_tasks |
List all tasks with optional status filter |
cancel_task |
Cancel a pending or running task |
clear_completed |
Clear completed/failed/cancelled tasks |
get_queue_status |
Get queue metrics (active, queued, total) |
submit_download_task
{
"url": "https://www.youtube.com/@ChannelName/videos",
"quality": "320",
"outputDir": "/path/to/output"
}
Returns: { "success": true, "taskId": "task_xxx", "status": "pending" }
query_progress
{
"taskId": "task_xxx"
}
Returns: { "status": "downloading", "progress": 45, "songsCompleted": 5, "songsTotal": 100 }
Dependencies
yt-dlp— YouTube audio extractionmutagen— MP3 ID3 tag manipulation and cover art embedding- Python 3.10+ (stdlib only:
sqlite3,json,threading,concurrent.futures)
Installation
pip install yt-dlp mutagen
Configuration
Config file: ~/.bootleg-link-mcp/config.json
{
"paths": {
"outputDir": "~/Downloads/bootleg-link",
"dbPath": "~/.bootleg-link-mcp/bootleg-link.db"
},
"proxy": {
"http": "http://proxy:port",
"https": "http://proxy:port"
},
"download": {
"maxConcurrent": 4,
"quality": "320"
}
}
Or via OpenClaw MCP config with environment variables (deprecated, use config.json):
{
"command": "/path/to/python3",
"args": ["src/server.py"],
"env": {
"BOOTLEG_OUTPUT_DIR": "/mnt/e/downloads",
"BOOTLEG_HTTP_PROXY": "http://proxy:1081",
"BOOTLEG_HTTPS_PROXY": "http://proxy:1081"
}
}
Development
# Run tests (67 test cases)
/opt/pyenv/versions/3.11.8/bin/python3 test_mcp.py
# Run server directly
/opt/pyenv/versions/3.11.8/bin/python3 src/server.py
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bootleg-link-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/bootleg-link-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Bootleg-Link MCP 是什么?
MCP server for downloading YouTube audio as MP3 with embedded cover art, task queue, progress tracking, and SQLite persistence. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 80 次。
如何安装 Bootleg-Link MCP?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bootleg-link-mcp」即可一键安装,无需额外配置。
Bootleg-Link MCP 是免费的吗?
是的,Bootleg-Link MCP 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bootleg-Link MCP 支持哪些平台?
Bootleg-Link MCP 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin)。
谁开发了 Bootleg-Link MCP?
由 esanle(@esanle)开发并维护,当前版本 v0.7.0。