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 | Provenance | Actions |
|---|---|---|---|---|
| youtube_mcp_server-0.1.0.tar.gz | 259.0 kB | Without provenance | Details for youtube_mcp_server-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youtube_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for youtube_mcp_server-0.1.0-py3-none-any.whl |
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
|
Security for youtube-mcp-server 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.