A Model Context Protocol server that enables searching YouTube videos, retrieving and storing transcripts, and performing semantic search over video content without using the official YouTube API.
A Model Context Protocol (MCP) server that provides tools for searching YouTube videos, retrieving transcripts, and performing semantic search over video content.
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.
Clone this repository
Create and activate a virtual environment using uv:
uv venv # On Windows: .venv\Scripts\activate # On Unix/MacOS: source .venv/bin/activate
uv pip install -r requirements.txt
.env
file with your Google API key:GOOGLE_API_KEY=your_api_key_here
There are two ways to run the MCP server:
To start the MCP server directly:
uv run python server.py
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" } } }
The server provides the following tools:
search-youtube
: Search for YouTube videos based on a query
get-transcript
: Get the transcript of a YouTube video
store-video-info
: Store video information and transcript in the vector database
search-transcripts
: Search stored video transcripts using semantic search
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.
If you encounter any issues:
.env
fileContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!