YouTube Search & Download MCP Server
Enables searching for videos and playlists, retrieving detailed metadata including duration and chapters, and downloading video or audio content in multiple formats and qualities.
Click on "Install 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., "@YouTube Search & Download MCP ServerSearch for 'Python tutorial' and download the first video as an mp4"
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.
🚀 What is YouTube Search MCP?
This is a production-quality Model Context Protocol (MCP) server that allows you to search, get information about, and download YouTube videos and audio without needing a YouTube API key. It's designed to work seamlessly with MCP clients like Claude Desktop and Cursor.
The server is built with / for robust backend operations and FastMCP for a high-performance server framework.
Related MCP server: YouTube MCP Server
✨ Key Features
No API Key Required: Search and download freely using
yt-dlp.Easy Installation: Simple setup with
uvorpip. Works seamlessly with MCP clients.Video & Audio Downloads: Download content in various formats (
mp4,mkv,mp3,wav, etc.) and qualities.Playlist Support: Search for playlists, get playlist details, and retrieve all videos from any playlist.
Rich Metadata: Get detailed video information, including duration, view count, and chapters.
Client Compatibility: Works great with Claude, Cursor, and other MCP-compliant clients.
Robust & Type-Safe: Built on a SOLID architecture with full type safety using Pydantic.
🏁 Getting Started (For Users)
Prerequisites
Python 3.10 or higher
uv (recommended) or
pipFFmpeg (must be installed and available in your system's PATH)
Windows:
choco install ffmpeg(with Chocolatey) or download from gyan.dev/ffmpegmacOS:
brew install ffmpegLinux:
sudo apt install ffmpeg(Ubuntu/Debian) orsudo dnf install ffmpeg(Fedora)
Installation
Install the package using uv (recommended) or pip:
# Using uv (recommended)
uv pip install youtube-search-mcp
# Or using pip
pip install youtube-search-mcpRunning the Server
After installation, you can run the server directly:
youtube-search-mcp💻 Client Configuration
Configure your MCP client to connect to the server.
For Claude Desktop or Cursor:
Add this to your MCP client configuration (usually claude_desktop_config.json):
{
"mcpServers": {
"youtube-search": {
"command": "youtube-search-mcp"
}
}
}Or if using uvx (no installation required):
{
"mcpServers": {
"youtube-search": {
"command": "uvx",
"args": ["youtube-search-mcp"]
}
}
}🔧 Configuration
You can customize the server's behavior by setting environment variables. These can be added to your MCP client configuration (e.g., claude_desktop_config.json) or set via a .env file in the project root.
Variable | Description | Default |
| Directory where videos/audio will be saved |
|
| Default video quality ( |
|
| Number of search results to return by default |
|
| Logging level ( |
|
🛠️ For Developers & Contributors
Interested in contributing? Here’s how to set up your development environment.
Prerequisites
Git
Python 3.10+
uv (recommended) or
pipFFmpeg (must be installed and available in your system's PATH for development)
Windows:
choco install ffmpeg(with Chocolatey) or download from gyan.dev/ffmpegmacOS:
brew install ffmpegLinux:
sudo apt install ffmpeg(Ubuntu/Debian) orsudo dnf install ffmpeg(Fedora)
Setup
Clone the Repository
git clone https://github.com/easyhak/youtube-search-mcp.git cd youtube-search-mcpInstall Dependencies Using
uv(recommended):uv syncUsing
pip:python -m venv .venv # Activate the virtual environment # Windows: .venv\Scripts\activate # macOS/Linux: source .venv/bin/activate pip install -e ".[dev]"Run the Server Using
uv:uv run python -m youtube_search_mcp.mainOr with activated virtual environment:
python -m youtube_search_mcp.main
Code Quality & Testing
Format Code:
uv run black .Lint Code:
uv run ruff check .Type Check:
uv run mypy .Run Tests:
uv run pytest
🤝 Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Please refer to the Contributing Guidelines for more details.
📜 License
Distributed under the MIT License. See LICENSE for more information.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceConnects 'yt-dlp' with LLMs via the Model Context Protocol, allowing users to download YouTube content and integrate it with Dive and other MCP-compatible LLMs.Last updated312263MIT
- AlicenseAqualityDmaintenanceEnables YouTube content browsing, video searching, and metadata retrieval via the YouTube Data API v3. It also facilitates fetching video transcripts for summarization and analysis within MCP-compatible AI clients.Last updated7261MIT
- Flicense-qualityDmaintenanceProvides tools for downloading YouTube videos and audio using yt-dlp, enabling integration with AI assistants via MCP.Last updated5
- Alicense-qualityBmaintenanceEnables AI agents to fetch transcripts, metadata, and download videos/audio from YouTube without API keys.Last updated26MIT
Related MCP Connectors
Download YouTube, TikTok, Vimeo, SoundCloud and 6 more platforms from any MCP AI chatbot.
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
💯 The fastest YouTube transcript + YouTube search MCP for AI agents. Try for free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/easyhak/youtube-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server