ytmp3-mcp
Allows downloading audio from YouTube URLs as MP3, with support for time-range clipping, and searching YouTube for videos returning titles, channels, durations, and URLs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ytmp3-mcpDownload the audio from https://www.youtube.com/watch?v=dQw4w9WgXcQ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A Model Context Protocol (MCP) server that lets your AI download YouTube audio and search videos — powered by
yt-dlpandffmpeg, shipped as a Docker image.
What it does
Tool | Description |
| Downloads audio from any YouTube URL as MP3. Supports time-range clipping. |
| Searches YouTube and returns titles, channels, durations, and URLs. |
More tools coming soon.
Related MCP server: YouTube MCP Server
Requirements
Docker Desktop — for Docker usage
Node.js 18+ — for running directly via npm/npx
yt-dlpandffmpeginstalled on your system — for npm usage
Important
If you want playlist download, keep the below as 'system prompt'
When a tool returns a list of video URLs, you MUST immediately call download_audio for each URL one by one without asking for confirmation or summarizing. Do not stop until every URL has been passed to download_audio.Docker (recommended, no setup)
1. Pull the image
docker pull piyush9969/ytmp3-mcp:latest2. Add to your MCP client config
{
"mcpServers": {
"ytmp3-mcp": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-v", "/Users/yourname/Downloads:/downloads",
"-e", "DOWNLOADS_DIR=/downloads",
"piyush9969/ytmp3-mcp:latest"
]
}
}
}Update the volume path for your OS:
OS | Volume path |
Mac |
|
Linux |
|
Windows |
|
Build from source (Docker)
If you want to build the image yourself instead of pulling:
git clone https://github.com/miteoshi/ytmp3-mcp.git
cd ytmp3-mcp
docker build -t ytmp3-mcp .Then use the same mcp.json as above but replace the image name:
{
"mcpServers": {
"ytmp3-mcp": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-v", "/Users/yourname/Downloads:/downloads",
"-e", "DOWNLOADS_DIR=/downloads",
"ytmp3-mcp"
]
}
}
}Run directly via npm (no Docker)
Requires yt-dlp and ffmpeg installed on your machine:
Mac:
brew install yt-dlp ffmpegWindows:
winget install yt-dlp ffmpegLinux:
sudo apt install ffmpeg
pip install yt-dlpThen clone and install:
git clone https://github.com/miteoshi/ytmp3-mcp.git
cd ytmp3-mcp
npm installAdd to your MCP client config:
{
"mcpServers": {
"ytmp3-mcp": {
"command": "npx",
"args": [
"tsx",
"/path/to/ytmp3-mcp/src/index.mts"
]
}
}
}Replace /path/to/ytmp3-mcp with the actual path where you cloned the repo.
LM Studio config location
Settings → LLM → MCP Servers → Edit config
Usage
Once connected, just talk to your LLM naturally:
Download the audio from https://www.youtube.com/watch?v=...Download only 1:00 to 2:30 from https://www.youtube.com/watch?v=...Search YouTube for "baby keem new music"Downloaded files appear in your ~/Downloads folder, named after the video title.
Supported time formats for clipping
Format | Example |
|
|
|
|
Seconds |
|
How it works
LLM client
└── MCP call
└── docker run (or npx tsx)
└── yt-dlp + ffmpeg
└── ~/DownloadsEach tool call spawns a fresh process, runs the command, and exits. No persistent container, no background process.
adding more features..
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
SubDownload exposes YouTube as an MCP-native data source. Connect via OAuth and your AI agent can summarize videos, fetch full transcripts (even for videos with no captions, via AI ASR), search across channels, and save everything into a private knowledge base. Works with Claude, ChatGPT, Cursor, and 40+ MCP clients. Free credits on signup, no card required.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables searching YouTube videos, retrieving and storing transcripts, and performing semantic search over video content without using the official YouTube API.34MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to access YouTube data in real-time, with capabilities for searching videos, analyzing channels, retrieving video details, and extracting transcripts.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables retrieval of transcripts, metadata, and subtitles from YouTube videos. It supports multiple languages, automatic paragraph segmentation, and video downloading to facilitate content analysis and processing.12MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides comprehensive video tools: transcript retrieval, video downloading, and automatic subtitle generation using AI speech-to-text. Works with YouTube, Bilibili, Vimeo, and any platform supported by yt-dlp.11MIT