Youtube-Vision-MCP
MCP (Model Context Protocol) server that utilizes the Google Gemini Vision API to interact with YouTube videos.
Documentation
YouTube Vision MCP Server (`youtube-vision`)
MCP (Model Context Protocol) server that utilizes the Google Gemini Vision API to interact with YouTube videos. It allows users to get descriptions, summaries, answers to questions, and extract key moments from YouTube videos.
Features
- Analyzes YouTube videos using the Gemini Vision API.
- Provides multiple tools for different interactions:
- Lists available Gemini models supporting `generateContent`.
- Configurable Gemini model via environment variable.
- Communicates via stdio (standard input/output).
Prerequisites
Before using this server, ensure you have the following:
- Node.js: Version 18 or higher recommended. You can download it from nodejs.org.
- Google Gemini API Key: Obtain your API key from Google AI Studio or Google Cloud Console.
Installation & Usage
There are two main ways to use this server:
Installing via Smithery
To install youtube-vision-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @minbang930/youtube-vision-mcp --client claudeOption 1: Using npx (Recommended for quick use)
The easiest way to run this server is using `npx`, which downloads and runs the package without needing a permanent installation.
You can configure it within your MCP client's settings file (Claude, VSCode .. ):
{
"mcpServers": {
"youtube-vision": {
"command": "npx",
"args": [
"-y",
"youtube-vision"
],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"GEMINI_MODEL_NAME": "gemini-2.0-flash"
}
}
}
}Replace `"YOUR_GEMINI_API_KEY"` with your actual Google Gemini API key.
Option 2: Manual Installation (from Source)
If you want to modify the code or run it directly from the source:
1. Clone the repository:
git clone https://github.com/minbang930/Youtube-Vision-MCP.git
cd youtube-vision2. Install dependencies:
npm install3. Build the project:
npm run build4. Configure and run:
You can then run the compiled code using `node dist/index.js` directly (ensure `GEMINI_API_KEY` is set as an environment variable) or configure your MCP client to run it using the `node` command and the absolute path to `dist/index.js`, passing the API key via the `env` setting as shown in the npx example.
Configuration
The server uses the following environment variables:
- `GEMINI_API_KEY` (Required): Your Google Gemini API key.
- `GEMINI_MODEL_NAME` (Optional): The specific Gemini model to use (e.g., `gemini-1.5-flash`). Defaults to `gemini-2.0-flash`. Important: For production or commercial use, ensure you select a model version that is not marked as "Experimental" or "Preview".
Environment variables should be set in the `env` section of your MCP client's settings file (e.g., `mcp_settings.json`).
Available Tools
1. `ask_about_youtube_video`
Answers a question about the video or provides a general description if no question is asked.
- Input:
- Output: Text containing the answer or description.
2. `summarize_youtube_video`
Generates a summary of a given YouTube video.
- Input:
- Output: Text containing the video summary.
3. `extract_key_moments`
Extracts key moments (timestamps and descriptions) from a given YouTube video.
- Input:
- Output: Text describing the key moments with timestamps.
4. `list_supported_models`
Lists available Gemini models that support the `generateContent` method (fetched via REST API).
- Input: None
- Output: Text listing the supported model names.
Important Notes
- Model Selection for Production: When using this server for production or commercial purposes, please ensure the selected `GEMINI_MODEL_NAME` is a stable version suitable for production use. According to the Gemini API Terms of Service, models marked as "Experimental" or "Preview" are not permitted for production deployment.
- API Terms of Service: Usage of this server relies on the Google Gemini API. Users are responsible for reviewing and complying with the Google APIs Terms of Service and the Gemini API Additional Terms of Service. Note that data usage policies may differ between free and paid tiers of the Gemini API. Do not submit sensitive or confidential information when using free tiers.
- Content Responsibility: The accuracy and appropriateness of content generated via the Gemini API are not guaranteed. Use discretion before relying on or publishing generated content.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Frequently asked questions
What is Youtube-Vision-MCP?
Youtube-Vision-MCP is MCP (Model Context Protocol) server that utilizes the Google Gemini Vision API to interact with YouTube videos.
How do I install Youtube-Vision-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-Vision-MCP open source?
Yes — it is hosted on GitHub at https://github.com/minbang930/Youtube-Vision-MCP and has 6 stars.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP