YouTube Downloader MCP Server

YouTube Downloader MCP Server

Allows Claude or any MCP-compatible AI agent to download YouTube videos directly to your computer's Downloads folder.

Category
Visit Server

README

YouTube Downloader MCP Server 📺

This project is an MCP (Multi-Channel Protocol) server that allows Claude (or any MCP-compatible AI agent) to download YouTube videos directly to your computer's Downloads folder. It is designed for seamless integration with Claude's tool-calling capabilities.

Features

  • Exposes two MCP tools:
    • download_youtube_video(url: str): Starts a YouTube video download in the background and returns a download ID.
    • check_download_status(download_id: str): Lets you check the status of a download (in progress, completed, or error).
  • Downloads are saved to your system's Downloads folder.
  • Fully async/background operation.

Installation

  1. Clone the repository:

    git clone <your-repo-url>
    cd youtube-downloader-mcp
    
  2. Install Poetry (if you don't have it):

    pip install poetry
    
  3. Install dependencies:

    poetry install
    
  4. Install FFmpeg

    Check and follow the instructions to install this tool using this website (https://ffmpeg.org/). The yt_dlp needs FFmpeg to merge the audio and video files into a single mp4 file.

Running the MCP Server

Run the server using Poetry:

poetry run python endpoints.py

You should see a message like:

Running YouTube Downloader MCP server

Using with Claude

  1. Add this server as a tool in Claude's settings (or use the Claude desktop app's "Add MCP server" feature).

    • Update your claude_desktop_config.json adding this MCP Server configuration:
    •   {
            "mcpServers": {
                "youtube-dowloader": {
                "command": "poetry",
                "args": [
                    "--directory",
                    "<your_project_path>",
                    "run",
                    "python",
                    "endpoints.py"
                ]
                }
            }
        }
      
    • For more info, please check this link https://modelcontextprotocol.io/quickstart/user
  2. Claude will automatically discover the following tools:

    • download_youtube_video(url: str)
    • check_download_status(download_id: str)
  3. Example workflow: Claude YouTube Download Demo Claude YouTube Check Status Demo

Running Tests

To run the unit tests for the YoutubeDownloader service, use:

poetry run python -m unittest tests/test_services.py

All tests are located in the tests/ directory. These tests use mocks, so no real downloads or system calls are made.

Notes

  • FFmpeg is required for video merging. If you don't have it, download from ffmpeg.org and ensure it's in your PATH.
  • All downloads go to your system's Downloads folder.
  • This server is designed for use with Claude, but any MCP-compatible client can use it.

Troubleshooting

  • If you see errors about non-JSON output, make sure you are running the latest code (all yt-dlp logs are redirected to stderr).
  • If you get ffmpeg not installed errors, install FFmpeg and restart the server.
  • If you have issues with status not updating, ensure only one server instance is running at a time.

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured