Tube Bridge logo

Tube Bridge

Self-hosted YouTube research over MCP, with transcripts, frames, comments, metadata, and local semantic search.

Install Tube Bridge

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tube-bridge": {
      "command": "uvx",
      "args": [
        "tube-bridge"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

tube-bridge connects MCP clients to YouTube research and locally stored transcript corpora. It supports video and channel search, metadata, transcripts, comments, subtitle languages, playlists, trending videos, and one-off timestamped frame extraction. Corpus tools fetch, chunk, embed, and semantically search transcripts on the local machine. Reach for it when an agent needs source-linked findings from YouTube without putting corpus data in a hosted service.

Use cases

  • Search YouTube for recent videos using metadata filters
  • Read transcripts and return links to relevant timestamps
  • Build a local semantic corpus from selected video transcripts
  • Extract a single frame near a transcript finding
  • Inspect channel uploads, comments, and audience metadata

Key features

  • YouTube video and channel search
  • Transcript retrieval with optional timestamps
  • Ephemeral timestamped JPEG extraction
  • Local transcript embedding and semantic search
  • Playlist, comment, subtitle, and channel metadata access
  • Stdio and Streamable HTTP runtimes

Tools17

What Tube Bridge lets your agent do. Expand a tool for its parameters.

Self-reported~277 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · tube-bridge (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit27d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.

How Tube Bridge works

What tube-bridge does

tube-bridge exposes 17 MCP tools for researching YouTube and organizing transcript content into local semantic-search corpora. Video tools cover filtered search, metadata, trending results, channel uploads, playlists, transcripts, subtitle-track discovery, comments, and channel information. A frame tool returns a single JPEG from around a specified timestamp rather than maintaining a media archive.

The corpus workflow provides named local collections. An agent can create a corpus, add videos for transcript retrieval and embedding, search across the resulting chunks, inspect corpus counts, or permanently remove a corpus and its vectors. Search results include similarity information, source videos, time spans, canonical URLs, and timestamp links.

How it works

The default runtime uses stdio and can be started with uvx tube-bridge. A persistent installation can also expose Streamable HTTP on port 8080 with tube-bridge --http. Docker provides the same HTTP mode, with /health for health checks and /mcp for MCP traffic.

Most YouTube operations work without a YouTube Data API key. Search, video details, and trending results use yt-dlp without a key and can use YouTube Data API v3 when one is configured. Comments, channel search, and channel details require the API key. Network access to YouTube is still needed for remote content retrieval.

Corpus data stays on the host running tube-bridge. SQLite and sqlite-vec store the database, while fastembed runs the BGE-small-en-v1.5 embedding model locally. Transcript chunks use 80-second windows with 20-second overlap. The embedding assets may be downloaded during the first embedding operation; later inference does not require an external model API.

Frame extraction downloads a short temporary section around the requested integer-millisecond position, returns one bounded JPEG, and removes the temporary media. It requires ffmpeg on PATH.

Setup and configuration

The shortest installation path is:

bash
uvx tube-bridge

MCP clients launch that command through their server configuration. The runtime requires Python 3.12 or newer. Claude Desktop, Claude Code, Cursor, VS Code, and Codex CLI each have documented stdio configuration or registration commands. If a client cannot locate uvx, use its absolute executable path.

An API key is optional and is supplied through YOUTUBE_API_KEY. Enable YouTube Data API v3 for the associated Google Cloud project before using it. Keep the key outside committed MCP configuration files.

Set TUBE_BRIDGE_CACHE to move the corpus and cache databases from their default location under ~/.tube_bridge. The Docker image includes ffmpeg; other installations need it separately for frame extraction. The image supports Linux amd64 and arm64.

Tools and capabilities

  • youtube_search: Filter video searches by date, channel, duration, and ordering.
  • youtube_get_video_info: Retrieve titles, durations, views, descriptions, tags, and channels.
  • youtube_get_trending: Retrieve trending videos.
  • youtube_get_channel_videos and youtube_get_playlist: Read recent channel uploads or playlist videos.
  • youtube_get_transcript and youtube_get_available_languages: Retrieve transcript text, optional timestamps, and available manual or generated subtitle tracks.
  • youtube_get_frame: Return one temporary JPEG near a requested timestamp.
  • youtube_get_comments: Retrieve top-level comments with likes and reply counts.
  • youtube_search_channels and youtube_get_channel_info: Find channels or retrieve channel statistics, country, and keywords.
  • corpus_create, corpus_add, corpus_search, corpus_list, and corpus_delete: Manage local transcript corpora and semantic searches.
  • tube_bridge_help: Read runtime guidance and known limitations.

Limitations and notes

Fourteen of the 17 tools do not need a YouTube API key, but YouTube access remains dependent on network availability. Comments, channel search, and channel details require YOUTUBE_API_KEY. Frame extraction produces an ephemeral image and does not create a reusable frame or clip library. A 32-bit Raspberry Pi OS is not supported by the published Docker image; Raspberry Pi deployments require a 64-bit OS.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tube Bridge

tube-bridge is an MCP server that connects AI agents to YouTube and local semantic corpora. Its main tools search videos and channels, retrieve metadata, transcripts, comments, subtitle languages, and timestamped frames, while corpus tools create, populate, search, list, and delete local transcript indexes.

Install it with `uvx tube-bridge` and configure your MCP client to launch that command. Python 3.12 or newer is required. You can also install the package persistently with pip, run it in stdio mode, or start Streamable HTTP with `tube-bridge --http`.

No, most tools work without a YouTube API key. Set `YOUTUBE_API_KEY` to enable comments, channel search, and channel details, and to improve the reliability of search, video information, and trending results.

tube-bridge stores corpus databases and vectors locally using SQLite and sqlite-vec. It fetches and chunks transcripts, embeds them with a local BGE-small-en-v1.5 model, and returns similarity-ranked results with video and timestamp links. Set `TUBE_BRIDGE_CACHE` to change the storage location.

Install `ffmpeg` and make it available on `PATH`. The `youtube_get_frame` tool downloads a temporary section around the requested timestamp, returns one JPEG, and removes the temporary media afterward.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTube Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tube-bridge?style=directory)](https://allmcps.com/mcp/tube-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/tube-bridge"><img src="https://allmcps.com/api/badge/tube-bridge?style=directory" alt="Tube Bridge on AllMCPs" /></a>