vdl-mcp
MCP server for vdl that lets AI assistants resolve, download, and transcribe videos through a self-hosted vdl instance.
README
<h1 align="center">vdl-mcp</h1>
<p align="center"> <strong>MCP server for <a href="https://github.com/sphings79/vdl">vdl</a> — let AI assistants (Claude & co.) resolve, download and <em>transcribe</em> videos through your self-hosted vdl instance.</strong> </p>
<p align="center"> <img alt="MCP" src="https://img.shields.io/badge/MCP-server-5b8cff"> <img alt="Python" src="https://img.shields.io/badge/python-3.10%2B-3776AB?logo=python&logoColor=white"> <img alt="License: AGPL v3" src="https://img.shields.io/badge/license-AGPL--3.0-blue"> </p>
<p align="center"><strong>English</strong> · <a href="README.de.md">Deutsch</a></p>
vdl-mcp connects an AI assistant to your own vdl server over the Model Context Protocol. The real power is the Whisper synergy:
Download → transcript → the assistant understands the content.
So you can say things like:
- "Download this YouTube video and summarize it."
- "Grab that cooking clip and write out the recipe as a list."
- "What was said about X in this interview?"
- "Download the audio of this talk and give me the key points."
How it works
It's a small stdio MCP server that talks to vdl's REST API and authenticates with your existing API token. Nothing runs inside vdl itself.
Tool groups are toggleable with safe defaults:
| Group | Tools | Default |
|---|---|---|
| Read | resolve, list_files, job_status, get_transcript |
✅ on |
| Download | download |
✅ on |
| Transcribe | transcribe |
✅ on |
| Delete | delete_file |
❌ off |
| Bulk | bulk |
❌ off |
| Settings | get_settings |
❌ off |
A disabled group is invisible to the assistant.
Requirements
- A running vdl instance.
- An MCP token: in vdl open the MCP tab → create token and copy it. This token is scoped — it may only perform the MCP actions you enable there (write/delete tools respect the toggles and read-only mode, everything else is refused server-side), so it's safer than the general API token.
Install
With pipx (puts vdl-mcp on your PATH):
pipx install git+https://github.com/sphings79/vdl-mcp
or with uv:
uv tool install git+https://github.com/sphings79/vdl-mcp
Connect it to Claude Desktop
Add this to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"vdl": {
"command": "vdl-mcp",
"env": {
"VDL_URL": "http://localhost:8000",
"VDL_TOKEN": "your-api-token"
}
}
}
}
Restart Claude Desktop — the vdl tools appear. (Any MCP-capable client works the same way; just run the vdl-mcp command over stdio.)
Run with Docker
Prefer a container? A prebuilt image is published to GHCR — use it as the command:
{
"mcpServers": {
"vdl": {
"command": "docker",
"args": ["run", "-i", "--rm",
"-e", "VDL_URL", "-e", "VDL_TOKEN",
"ghcr.io/sphings79/vdl-mcp:latest"],
"env": {
"VDL_URL": "http://host.docker.internal:8000",
"VDL_TOKEN": "your-api-token"
}
}
}
}
Note the -i (keep stdin open for stdio) and, when vdl runs on the same host, host.docker.internal so the container can reach it.
No web UI — by design
vdl-mcp is a stdio process launched locally by your MCP client. It does not open a network port, so it has no login page and no fail2ban — there is nothing inbound to protect. Its security model is: keep your API token private, leave destructive tools off (the defaults), and optionally set a domain allowlist. Authentication and brute-force protection live in vdl itself. (If you ever want a remote, multi-client HTTP server instead, that's a different transport — open an issue.)
Tools
resolve(url)— analyze a link, list items and available qualities (no download).download(url, audio=False, section="", wait=True)— download best quality (or MP3);sectionlike0:30-1:00clips;waitreturns the finished filename.transcribe(name, language="")— Whisper transcription → returns the text (requires a Whisper model set in vdl).get_transcript(name)— return an existing transcript's text.list_files(query, service, label, limit)— browse your downloads.job_status(job_id)— check a download job.- (off by default)
delete_file,bulk,get_settings.
Configuration (environment variables)
| Variable | Default | Meaning |
|---|---|---|
VDL_URL |
http://localhost:8000 |
Base URL of your vdl instance |
VDL_TOKEN |
(empty) | vdl MCP token (from the MCP tab) |
VDL_MCP_READ_ONLY |
false |
Kill switch: expose only read tools (no download/transcribe/delete/bulk) |
VDL_MCP_ALLOW_READ |
true |
resolve/list/status/get_transcript |
VDL_MCP_ALLOW_DOWNLOAD |
true |
download |
VDL_MCP_ALLOW_TRANSCRIBE |
true |
transcribe |
VDL_MCP_ALLOW_DELETE |
false |
delete files |
VDL_MCP_ALLOW_BULK |
false |
bulk actions |
VDL_MCP_ALLOW_SETTINGS |
false |
read settings |
VDL_MCP_TOOL_<name> |
(unset) | Per-tool override, e.g. VDL_MCP_TOOL_download=off — beats the group flag |
VDL_MCP_DOMAIN_ALLOWLIST |
(empty = any) | comma-separated host suffixes the assistant may download from |
VDL_MCP_TIMEOUT |
30 |
default request timeout (seconds) |
Every tool is tagged in its description — [read], [writes] or [deletes] — so both you and the assistant can see its risk at a glance.
Manage it from vdl's web UI too: in vdl go to Settings → MCP tab to toggle each tool (with a read-only master switch and risk chips). vdl-mcp fetches that config at startup, so no env vars are needed — restart vdl-mcp after changes. Precedence for whether a tool is exposed: read-only (env or UI) → per-tool env override → web UI → group flag.
Security notes
- The assistant acts as you via your token — keep it private.
- Destructive tools are off by default. Enable them consciously.
- Downloading an arbitrary URL on an assistant's request has a prompt-injection surface. Set
VDL_MCP_DOMAIN_ALLOWLIST(e.g.youtube.com,instagram.com) to restrict it. - Only for content you own or have the rights/permission to download — the same disclaimer as vdl applies.
License
GNU Affero General Public License v3.0 (AGPL-3.0) — see LICENSE. © 2026 sphings79
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。