Skip to main content

MCP server for YouTube transcript extraction and insight analysis

Project description

youtube-insights-mcp

PyPI version Python License: MIT

An MCP server that fetches YouTube transcripts and extracts structured insights using Claude. Provides 4 MCP tools and a full CLI, with 6 focus area presets across 24 insight categories.

Features

  • Transcript extraction with intelligent language fallback
  • Structured insight analysis across 24 categories (business, investment, technical, YouTube growth, AI learning)
  • 6 focus area presets: general, entrepreneurial, investment, technical, youtube-channel, ai-learning
  • Multiple URL formats: youtube.com, youtu.be, embed links, or just a video ID
  • Dual mode: MCP server for Claude Desktop + standalone CLI
  • Smart chunking for long transcripts with overlap for context continuity
  • Proxy support for environments with IP restrictions

Installation

pip install youtube-insights-mcp

Or with development dependencies:

pip install youtube-insights-mcp[dev]

Quick Start

Claude Desktop Configuration

Add to your Claude Desktop MCP configuration (claude_desktop_config.json):

Using pip install (recommended):

{
  "mcpServers": {
    "youtube-insights-mcp": {
      "command": "youtube-insights-mcp",
      "env": {
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Using a local clone:

{
  "mcpServers": {
    "youtube-insights-mcp": {
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["-m", "youtube_insights_mcp"],
      "cwd": "/absolute/path/to/project",
      "env": {
        "PYTHONPATH": "/absolute/path/to/project",
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Note: MCP configuration requires absolute paths. Relative paths will cause startup failures.

CLI Usage

# Health check
youtube-insights-mcp cli ping

# Fetch a transcript
youtube-insights-mcp cli get-transcript "https://www.youtube.com/watch?v=VIDEO_ID"

# List available transcript languages
youtube-insights-mcp cli list-transcripts "https://www.youtube.com/watch?v=VIDEO_ID"

# Extract insights (pipe transcript from stdin)
youtube-insights-mcp cli get-transcript VIDEO_ID --no-segments | \
  jq -r '.full_text' | \
  youtube-insights-mcp cli extract-insights - --focus "entrepreneurial,investment"

# List all focus areas and categories
youtube-insights-mcp cli list-focus-areas

MCP Tools

get_transcript

Fetch transcript for a YouTube video with intelligent language fallback.

Parameter Type Default Description
video_url string required YouTube URL or video ID
language string "en" Preferred language code

Fallback order: requested language > auto-generated version > any English variant > first available.

list_available_transcripts

List all available transcript languages for a video. Useful for checking what's available before fetching.

Parameter Type Default Description
video_url string required YouTube URL or video ID

extract_insights

Prepare a transcript for structured insight extraction by Claude. Returns an extraction prompt, categories, and chunked transcript data.

Parameter Type Default Description
transcript string required Full transcript text (min 100 chars)
focus_areas string "general" Comma-separated focus areas
video_id string "" Optional video ID for tracking
max_insights string "10" Maximum insights to extract

list_focus_areas

List all available focus area presets and their category definitions.

Focus Areas

Preset Categories
general Key points, action items, notable quotes, context
entrepreneurial Business strategies, growth tactics, lessons learned, mistakes to avoid
investment Market trends, opportunities, risks, recommendations
technical Technologies, tools, best practices, pitfalls
youtube-channel Channel strategy, content ideas, audience growth, production tips
ai-learning AI concepts, AI tools, mental models, practical applications

Use "all" to extract across every category, or combine presets: "entrepreneurial,investment".

Example Prompts for Claude Desktop

Once the MCP server is configured, you can use these prompts directly in Claude Desktop:

Transcript & Summary

Get the transcript for https://www.youtube.com/watch?v=VIDEO_ID and give me a concise summary

Fetch the transcript for this video and list the 5 most important takeaways: https://youtu.be/VIDEO_ID

Business & Entrepreneurship

Get the transcript for https://www.youtube.com/watch?v=VIDEO_ID and extract entrepreneurial insights - focus on actionable business strategies and growth tactics

Analyse this startup pitch and pull out the key business model, revenue strategy, and mistakes to avoid: https://www.youtube.com/watch?v=VIDEO_ID

Investment Analysis

Fetch the transcript for this market analysis video and extract investment insights including trends, opportunities, and risks: https://www.youtube.com/watch?v=VIDEO_ID

Technical Learning

Get the transcript for this tech talk and extract the key technologies mentioned, best practices, and common pitfalls: https://www.youtube.com/watch?v=VIDEO_ID

Summarise this programming tutorial and list the tools and frameworks recommended: https://youtu.be/VIDEO_ID

YouTube Channel Growth

Analyse this video about growing a YouTube channel and extract content strategy tips, audience growth tactics, and production advice: https://www.youtube.com/watch?v=VIDEO_ID

AI & Machine Learning

Fetch the transcript for this AI talk and extract the key concepts, tools mentioned, and practical applications: https://www.youtube.com/watch?v=VIDEO_ID

Multi-Focus Analysis

Get the transcript for https://www.youtube.com/watch?v=VIDEO_ID and extract insights across both entrepreneurial and investment categories - I want business strategies AND market opportunities

Comparing Videos

Get the transcripts for these two videos and compare their advice on starting a business:

Configuration

Proxy Support

If YouTube blocks your IP, configure a proxy via environment variables:

{
  "env": {
    "PROXY_URL": "http://user:pass@proxy:8080",
    "WEBSHARE_USERNAME": "",
    "WEBSHARE_PASSWORD": ""
  }
}

Priority: Webshare credentials > PROXY_URL > no proxy.

Requirements

  • Python >= 3.10
  • Dependencies: mcp, pydantic, youtube-transcript-api, yt-dlp

License

MIT

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

youtube_insights_mcp-0.1.2.tar.gz (814.3 kB view details)

Uploaded Source

Built Distribution

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

youtube_insights_mcp-0.1.2-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file youtube_insights_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: youtube_insights_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 814.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for youtube_insights_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5ba32e2a916e24cc594a0ea5a14cae0d5df25346f7d54e30aefe7c9df0fb9fea
MD5 d9b915cc09899c04e1791e0d94adf66d
BLAKE2b-256 aeef8c6c307bdc05be4e6738525e535910c757b787361c9cb99e008c6f74246b

See more details on using hashes here.

Provenance

The following attestation bundles were made for youtube_insights_mcp-0.1.2.tar.gz:

Publisher: publish.yml on guardkit/youtube-transcript-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file youtube_insights_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for youtube_insights_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b6ccd9a9d224a634a51df294d4740200752188eb5e04d704d95b6a49a7a5ea
MD5 dfec0def80a32cedf96f8b4ee49f7094
BLAKE2b-256 c7b04997f9e8f4cabb4702126ca698857b47cfed164d7eb2ca40e890b559f03f

See more details on using hashes here.

Provenance

The following attestation bundles were made for youtube_insights_mcp-0.1.2-py3-none-any.whl:

Publisher: publish.yml on guardkit/youtube-transcript-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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