YouTube MCP Server
A Model Context Protocol (MCP) server that provides YouTube video downloading capabilities using FastMCP and you-get.
Features
- Download YouTube videos in various formats
- Get video information without downloading
- List available video formats
- Configurable output directory
- Built with FastMCP for easy integration
Installation
From PyPI
pip install youtube-mcp-server
From Source
git clone https://github.com/yzfly/youtube-mcp-server.git
cd youtube-mcp-server
pip install -e .
Prerequisites
This server requires you-get to be installed:
pip install you-get
Usage
Running the Server
youtube-mcp-server
The server runs on stdio transport by default, making it compatible with Claude Desktop and other MCP clients.
Available Tools
download_youtube_video
Downloads a YouTube video.
Parameters:
url(str): YouTube video URLoutput_dir(str, optional): Output directory for downloaded filesformat_type(str, optional): Preferred video format (e.g., 'mp4', 'flv')info_only(bool): If True, only returns video info without downloading
get_video_info
Gets video information without downloading.
Parameters:
url(str): YouTube video URL
list_available_formats
Lists all available formats for a video.
Parameters:
url(str): YouTube video URL
Configuration
Claude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"youtube-mcp-server": {
"command": "youtube-mcp-server"
}
}
}
Development
Setup
git clone https://github.com/yzfly/youtube-mcp-server.git
cd youtube-mcp-server
pip install -e ".[dev]"
Testing
pytest
License
MIT License
Author
Created by yzfly
Metadata
Release files for youtube-mcp-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| youtube_mcp_server-0.1.0.tar.gz | 259.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtube_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 261.9 kB
Release files / youtube_mcp_server-0.1.0.tar.gz
| Download URL | youtube_mcp_server-0.1.0.tar.gz |
|---|---|
| Size | 259.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90bb4e3c12383bc18e236dac4e8fe03b0fa65fb046ac5b95efb12e3042c9c4ad
|
|
BLAKE2b-256 checksum How to use checksums |
f19d7f0ee8efb39d348cf1bd6bfb16aeb30eb36f51ea9fa900128b21d81aee7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / youtube_mcp_server-0.1.0-py3-none-any.whl
| Download URL | youtube_mcp_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4075b3e4e9e37c99aa60c8fc4c34b91141412d1f9896a0d0f379c2c7d296e1ec
|
|
BLAKE2b-256 checksum How to use checksums |
66a68839bda195681eff7f43373e31edda2d7526212bc1ebdc3c5376892a7d77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|