Youtube-MCP
YouTube MCP Server is an AI-powered solution designed to revolutionize your YouTube experience. It empowers users to search for YouTube videos, retrieve detailed transcripts, and perform semantic searches over video content—all without relying on the official API. By integrating with a vector database, this server streamlines content discovery.
Documentation
YouTube MCP Server
A Model Context Protocol (MCP) server that provides tools for searching YouTube videos, retrieving transcripts, and performing semantic search over video content.
Support Us
If you find this project helpful and would like to support future projects, consider buying us a coffee! Your support helps us continue building innovative AI solutions.
Your contributions go a long way in fueling our passion for creating intelligent and user-friendly applications.
Table of Contents
- YouTube MCP Server
- Features
- Prerequisites
- Installation
- Running the Server
- Available Tools
- Using with MCP Clients
- Debugging
- Contributing
- License
Features
- Search YouTube videos without using the official API
- Retrieve video transcripts
- Store video information and transcripts in a vector database
- Perform semantic search over stored video transcripts
Prerequisites
- Python 3.8+
- Google API key for embeddings
- uv package manager
Installation
1. Clone this repository
2. Create and activate a virtual environment using uv:
uv venv
# On Windows:
.venv\Scripts\activate
# On Unix/MacOS:
source .venv/bin/activate3. Install dependencies using uv:
uv pip install -r requirements.txt4. Create a `.env` file with your Google API key:
GOOGLE_API_KEY=your_api_key_hereRunning the Server
There are two ways to run the MCP server:
1. Direct Method
To start the MCP server directly:
uv run python server.py2. Configure for Claude.app
Add to your Claude settings without using any package manager this works for windows:
"mcpServers": {
"youtube": {
"command": "C:\\Path\\To\\Your\\Project\\.venv\\Scripts\\python.exe",
"args": ["C:\\Path\\To\\Your\\Project\\server.py"],
"env": {
"GOOGLE_API_KEY": "your_api_key_here"
}
}
}Using Uv package manager this works for windows:
"mcpServers": {
"youtube": {
"command": "uv",
"args": ["--directory", "C:\\Path\\To\\Your\\Project", "run", "server.py"],
"env": {
"GOOGLE_API_KEY": "your_api_key_here"
}
}
}Available Tools
The server provides the following tools:
1. `search-youtube`: Search for YouTube videos based on a query
2. `get-transcript`: Get the transcript of a YouTube video
3. `store-video-info`: Store video information and transcript in the vector database
4. `search-transcripts`: Search stored video transcripts using semantic search
Using with MCP Clients
This server can be used with any MCP-compatible client, such as Claude Desktop App. The tools will be automatically discovered and made available to the client.
Example Usage
1. Start the server using one of the methods described above
2. Open Claude Desktop App
3. Look for the hammer icon to verify that the YouTube tools are available
4. You can now use commands like:
Debugging
If you encounter any issues:
1. Make sure your Google API key is correctly set in the `.env` file
2. Check that all dependencies are installed correctly
3. Verify that the server is running and listening for connections
4. Look for any error messages in the server output
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is Youtube-MCP?
Youtube-MCP is YouTube MCP Server is an AI-powered solution designed to revolutionize your YouTube experience. It empowers users to search for YouTube videos, retrieve detailed transcripts, and perform semantic searches over video content—all without relying on the official API. By integrating with a vector database, this server streamlines content discovery.
How do I install Youtube-MCP?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is Youtube-MCP open source?
Yes — it is hosted on GitHub at https://github.com/IA-Programming/Youtube-MCP and has 32 stars.
Related MCP tools
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace MCP Server & CLI Tool
MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
AI-powered OSINT agent with interactive REPL, MCP server, and CLI. 19 tools. Works with Claude, GPT-4, or local models. For authorized security research only.
Your entire engineering context, deeply understood
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP