# tube-bridge [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/TheWhiteWater/tube-bridge  
**GitHub Stars:** 3  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tube-bridge

## Description
YouTube MCP server for search, transcripts, frames, comments, channels, and local semantic corpora.

## Tools
Capabilities this server exposes over MCP:

- **youtube_search** — Search videos with date, channel, duration, and ordering filters
- **youtube_get_video_info** — Get title, duration, views, channel, description, and tags
- **youtube_get_trending** — Get currently trending videos
- **youtube_get_channel_videos** — Get recent uploads from a channel URL or `@handle
- **youtube_get_playlist** — Get videos from a playlist
- **youtube_get_transcript** — Get a transcript, optionally with `[MM:SS]` timestamps
- **youtube_get_frame** — Return one ephemeral JPEG near an integer-millisecond timestamp
- **youtube_get_available_languages** — List manual and auto-generated subtitle tracks
- **youtube_get_comments** — Get top-level comments with likes and reply counts
- **youtube_search_channels** — Search channels and filter by subscriber count
- **youtube_get_channel_info** — Get channel statistics, country, and keywords
- **corpus_create** — Create a named local corpus
- **corpus_add** — Fetch, chunk, and locally embed a video transcript
- **corpus_search** — Semantically search a corpus with timestamped results
- **corpus_list** — List corpora with video and chunk counts
- **corpus_delete** — Permanently delete a corpus and its vectors
- **tube_bridge_help** — Read runtime documentation and known limitations

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "tube-bridge": {
    "command": "uvx",
    "args": ["tube-bridge"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/tube-bridge/readme_

