Skip to main content

A Model Context Protocol (MCP) server that enables AI coding assistants to analyze YouTube video transcripts using Gemini API

Project description

YouTube Transcript MCP Server

A Model Context Protocol (MCP) server that enables AI coding assistants (Claude, Cursor, Windsurf, etc.) to analyze YouTube video transcripts. This server uses the Gemini API to process YouTube videos and extract their transcripts answer questions, making video content accessible to your AI assistant for analysis, summarization, and learning.

Features

🤖 Multi-Client Support: Works with Claude Code, Cursor, Windsurf, and other MCP-compatible clients

  • 🌍 Cross-Platform: Installers for Windows, macOS, and Linux
  • 🚀 Easy Installation: Universal installers that automatically detect and configure your AI clients

Prerequisites

The installer will automatically check for all dependencies and provide platform-specific installation instructions if anything is missing.

Installation

Option 1: Git-Free Quick Install (Recommended)

These installers download the server directly without requiring git:

macOS/Linux/WSL

curl

curl -sSL https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.sh | bash

wget

wget -qO- https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.sh | bash

Windows (PowerShell)

# Quick install
iwr -useb https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.ps1 | iex

Windows (Command Prompt)

For the easiest experience, download both files:

# Download the PowerShell installer and its wrapper
curl -O https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.ps1
curl -O https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.cmd

# Run the installer
install-mcp-universal-no-git.cmd

Or use PowerShell directly as shown above.

Option 2: GitHub Gist Installation

You can also share these scripts as GitHub Gists:

# Unix/Linux/macOS
curl -sSL https://gist.github.com/YOUR_USERNAME/GIST_ID/raw/install-mcp-universal-no-git.sh | bash

# Windows
iwr -useb https://gist.github.com/YOUR_USERNAME/GIST_ID/raw/install-mcp-universal-no-git.ps1 | iex

Option 3: Manual Installation with Git

If you prefer to clone the repository:

macOS/Linux

# Clone and run the installer
git clone https://github.com/your-username/yt-gemini-mcp.git
cd yt-gemini-mcp
chmod +x install-mcp-universal.sh
./install-mcp-universal.sh

Windows

# Clone and run the installer
git clone https://github.com/your-username/yt-gemini-mcp.git
cd yt-gemini-mcp
install-mcp-universal.cmd

What the Installer Does

  1. Checks Dependencies: Verifies Python, jq (Unix/Linux/macOS), and other requirements
  2. Downloads the MCP Server: Fetches the YouTube transcript server (if using git-free installer)
  3. Detects AI Assistants: Automatically finds installed clients (Claude, Cursor, Windsurf, Gemini CLI)
  4. Configures Each Client: Sets up the server for each detected assistant
  5. Manages API Keys: Asks for Gemini API key once and stores it securely for reuse
  6. Installs Python Packages: Sets up required dependencies (mcp, fastmcp, google-genai)

Usage

Once installed, the server will be available in your AI assistant as ask-youtube.

In Claude Code

Can you analyze this YouTube video about Python async programming?
https://www.youtube.com/watch?v=example123

Claude will automatically use the ask-youtube server to fetch and analyze the video content.

Testing the Installation

After installation, you can test the server:

macOS

~/Library/Application\ Support/YouTube-Transcript-MCP/test-server.sh

Linux

~/.mcp-installer/test-server.sh

Windows

%LOCALAPPDATA%\.mcp-installer\test-server.cmd

File Locations

The installer creates files in these locations:

  • Server files:
    • macOS: ~/Library/Application Support/YouTube-Transcript-MCP/servers/
    • Linux: ~/.mcp-installer/servers/
    • Windows: %LOCALAPPDATA%\.mcp-installer\servers\
  • Virtual Environment:
    • macOS: ~/Library/Application Support/YouTube-Transcript-MCP/venv/
    • Linux: ~/.mcp-installer/venv/
    • Windows: %LOCALAPPDATA%\.mcp-installer\venv\
  • Client Configurations:
    • Claude Code: Managed by claude mcp add command
    • Cursor: ~/.cursor/mcp.json or %USERPROFILE%\.cursor\mcp.json
    • Windsurf: Platform-specific locations
    • Gemini CLI: ~/.gemini/settings.json or %USERPROFILE%\.gemini\settings.json

Installer Features

  • No Git Required: The git-free installers download files directly via HTTPS
  • Self-Contained: Single script with no external dependencies
  • Multi-Client Support: Configures all detected AI assistants automatically
  • Fallback URLs: Tries multiple CDN sources if primary download fails
  • Secure: API keys stored with restricted file permissions
  • Cross-Platform: Works on Windows, macOS, and Linux

Troubleshooting

"No supported AI assistants detected"

Make sure you have at least one supported client installed and that it's in your system PATH (for command-line tools like Claude Code).

"Missing required dependencies"

Install the missing dependencies shown in the error message. The installer provides platform-specific installation commands.

jq not found (Unix/Linux/macOS):

# macOS
brew install jq

# Ubuntu/Debian
sudo apt-get install jq

# RHEL/CentOS
sudo yum install jq

Python not found:

"API key cannot be empty"

You must provide a valid Gemini API key. Get one from Google AI Studio.

Download Failures

The installer tries multiple sources:

  1. GitHub raw content
  2. jsDelivr CDN
  3. GitCDN

If all fail, you may need to:

  • Check your internet connection
  • Verify firewall settings
  • Try manual download

Server not appearing in AI assistant

  1. Restart your AI assistant application
  2. Check that the installation completed successfully
  3. Verify the configuration files exist in the locations listed above

Client Not Detected

Make sure the AI assistant is installed in the default location:

  • Gemini CLI: ~/.gemini/
  • Claude Code: claude command available in PATH
  • Windsurf: Standard installation directory
  • Cursor: ~/.cursor/ or %USERPROFILE%\.cursor\

Security Notes

  • API keys are stored in keys.json with restricted file permissions (owner-only)
  • Never share or commit the keys.json file or test scripts as they contain your API key
  • The test scripts contain your API key in plain text - do not share them
  • Consider using environment variables for additional security in production environments

Updating

To update the server, simply run the installer again. It will:

  • Download the latest server version
  • Preserve your API keys
  • Update all client configurations

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 68.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb30ebb430ce19e9952881d2addf52b38cf2a1e9663d0db376c32b1c8e4d6fcd
MD5 abe3c505d54cd0d0313f366adcce0bdb
BLAKE2b-256 f9e3878460d53fd7d5af03d34cf26ba9957d9e7d09bc3ecbcb08ab3f4e66c5cb

See more details on using hashes here.

File details

Details for the file iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 103.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_boxabirds_yt_gemini_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4baddf8a199af7e20b72b312d42b5034160d42b9d6354010c6ebafc9e1ad1639
MD5 5a5354e4bdadfa84c747df09a38bd95c
BLAKE2b-256 fe4e6f9c17d96bb348db59403274643baab39cc25571f65b97516638d57a9c8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page