Cover image
Try Now
2025-04-04

MCP (Model Context Protocolo) Server que utiliza la API de Google Gemini Vision para interactuar con los videos de YouTube.

3 years

Works with Finder

1

Github Watches

0

Github Forks

2

Github Stars

YouTube Vision MCP Server (youtube-vision)

NPM version License: MIT smithery badge

Youtube Vision MCP

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:
    • General description or Q&A (ask_about_youtube_video)
    • Summarization (summarize_youtube_video)
    • Key moment extraction (extract_key_moments)
  • 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 claude

Option 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-vision
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    
  4. 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:
    • youtube_url (string, required): The URL of the YouTube video.
    • question (string, optional): The specific question to ask about the video. If omitted, a general description is generated.
  • Output: Text containing the answer or description.

2. summarize_youtube_video

Generates a summary of a given YouTube video.

  • Input:
    • youtube_url (string, required): The URL of the YouTube video.
    • summary_length (string, optional): Desired summary length ('short', 'medium', 'long'). Defaults to 'medium'.
  • Output: Text containing the video summary.

3. extract_key_moments

Extracts key moments (timestamps and descriptions) from a given YouTube video.

  • Input:
    • youtube_url (string, required): The URL of the YouTube video.
    • number_of_moments (integer, optional): Number of key moments to extract. Defaults to 3.
  • 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.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

    Reviews

    2 (1)
    Avatar
    user_04fBJfZd
    2025-04-16

    Youtube-Vision-MCP is a fantastic tool for any avid YouTube user. Created by minbang930, this project enhances your browsing and viewing experience significantly. It's impressive how it seamlessly integrates various functionalities, making navigation and content consumption smoother and more enjoyable. As a loyal MCP app user, I highly recommend checking out their GitHub page to explore this incredible innovation!