social-video-mcp
Enables authenticated playback of age-restricted or private content by extracting cookies from the Brave browser.
Enables authenticated playback of age-restricted or private content by extracting cookies from the Firefox browser.
Controls video playback through a lightweight mpv window using IPC for commands like seek, pause, and playlist management.
Enables authenticated playback of age-restricted or private content by extracting cookies from the Opera browser.
Enables authenticated playback of age-restricted or private content by extracting cookies from the Safari browser.
Enables browsing user profiles and playing TikTok videos as continuous, auto-advancing playlists.
Enables authenticated playback of age-restricted or private content by extracting cookies from the Vivaldi browser.
Provides tools for searching YouTube and accessing personalized account feeds, including subscriptions, liked videos, watch later, and history.
Supports fetching and playing YouTube Shorts from specific channels or subscription feeds as continuous playlists.
social-video-mcp
MCP server that gives AI agents the ability to play videos from YouTube and TikTok, browse your accounts, and control playback — all through a lightweight mpv player window.
Built for Claude Code and any MCP-compatible client.
https://github.com/user-attachments/assets/08ddb1b3-ed0f-4de3-b465-c0b58ebfa894
Features
Playback — Play videos from YouTube or TikTok in a native mpv window with full remote control:
Play, pause, stop, seek
Playlist playback with next/prev navigation and shuffle
Queue videos without interrupting current playback
Audio-only mode for podcasts and music while you code
Authenticated playback via browser cookies (age-restricted, private videos)
Smart Recommendations — Ask for similar content based on what's currently playing. Finds related videos and queues them automatically.
Infinite Playlists — TikTok and YouTube Shorts playlists auto-refill as you watch. Never runs out.
YouTube Account — Browse your YouTube account directly from your AI agent:
Subscription feed, liked videos, watch later, history
List subscribed channels
Browse channel uploads and Shorts
Search YouTube with personalized results
TikTok — Browse and play TikTok content:
Fetch videos from any TikTok user profile
Play a user's videos as a continuous playlist
Multi-Browser Support — Switch between Chrome, Firefox, Brave, Edge, Safari, Opera, Chromium, or Vivaldi for cookie-based authentication.
Video Info — Fetch metadata without playing: title, description, chapters, duration, tags, view/like counts.
Related MCP server: yt
Prerequisites
brew install mpv yt-dlpmpv — Lightweight video player
yt-dlp — Video stream resolver and cookie extractor
A supported browser — Logged into YouTube/TikTok (Chrome, Firefox, Brave, Edge, Safari, Opera, Chromium, Vivaldi)
Node.js >= 18
Installation
git clone https://github.com/ronantakizawa/social-video-mcp.git
cd social-video-mcp
npm install
npm run buildConfiguration
Add to your Claude Code config (~/.claude.json):
{
"mcpServers": {
"social-video": {
"type": "stdio",
"command": "node",
"args": ["/path/to/social-video-mcp/dist/index.js"]
}
}
}Then restart Claude Code.
Tools
Playback
Tool | Description |
| Play a YouTube or TikTok video. Optional |
| Play audio only — no video window. Great for podcasts and music. |
| Play an entire YouTube playlist. Optional |
| Add a video to the queue without interrupting current playback. |
| Toggle pause/resume. |
| Stop playback and close the player window. |
| Seek to an absolute position in seconds. |
| Skip to the next video in a playlist. |
| Go back to the previous video in a playlist. |
| Get current playback state: title, position, duration, paused. |
Smart Features
Tool | Description |
| Find and play/queue videos similar to what's currently playing. |
YouTube Account
Tool | Description |
| Fetch your subscription feed, liked videos, watch later, or history. |
| List your subscribed YouTube channels. |
| List recent uploads from a specific channel. |
| List recent Shorts from a specific channel. |
| Fetch recent Shorts from your subscribed channels. |
| Play Shorts as a continuous auto-advancing playlist. |
| Search YouTube with personalized results. |
TikTok
Tool | Description |
| Fetch recent videos from a TikTok user profile. |
| Play a TikTok user's videos as an infinite continuous playlist. |
Settings
Tool | Description |
| Switch browser for cookie auth (chrome, firefox, brave, edge, safari, opera, chromium, vivaldi). |
| Check which browser is currently active. |
| Fetch full video metadata from YouTube or TikTok. |
How It Works
Playback: Spawns
mpvwith--input-ipc-serverfor JSON IPC control over a Unix socket. All playback commands (pause, seek, next/prev) are sent through this socket.Data Fetching: Calls
yt-dlpdirectly with-J --flat-playlist --cookies-from-browser <browser>to fetch structured JSON from video platforms.Authentication: Reads cookies from your browser's local storage via yt-dlp's
--cookies-from-browserflag. No OAuth setup required — if you're logged into a platform in your browser, it just works.Auto-Refill: A background monitor watches playlist position and fetches more content when running low, appending via mpv's
loadfile appendIPC command.
Platform Support
Feature | YouTube | TikTok |
Play single video | Yes | Yes |
User profile feed | Yes | Yes |
Account feeds | Yes (subs, liked, history) | No |
Search | Yes | No |
Shorts | Yes | N/A |
Queue management | Yes | Yes |
Audio-only | Yes | Yes |
Smart recommendations | Yes | Yes |
Example Usage
> Play my subscription feed
> Search YouTube for "rust programming tutorials" and play the first result
> Show me the latest TikToks from @nba
> Play TikTok videos from @khaby.lame
> Queue this video without stopping what's playing: <url>
> Play similar videos to what's on now
> Just play the audio, I don't need video
> Switch to Firefox for cookies
> What chapters does this video have? Then skip to chapter 3License
MIT
Available Tools
23 toolsget_browserB
Check which browser is currently being used for cookie-based authentication.
Inputs: no named parameters.
get_channel_shortsA
List recent Shorts from a specific YouTube channel.
Inputs: channel_url (required), limit.
get_channel_videosB
List recent video uploads from a specific YouTube channel.
Inputs: channel_url (required), limit.
get_statusA
Get the current playback status: title, position, duration, and pause state.
Inputs: no named parameters.
get_subscribed_channelsA
List your subscribed YouTube channels using Chrome cookies.
Inputs: limit.
get_subscription_shortsA
Fetch recent Shorts from your subscribed YouTube channels. Pulls your subscriptions, then grabs the latest Shorts from each.
Inputs: max_channels, shorts_per_channel.
get_tiktok_user_videosA
Fetch recent videos from a TikTok user profile. Uses Chrome cookies for authentication.
Inputs: username (required), limit.
get_video_infoA
Fetch full metadata for a YouTube or TikTok video without playing it: title, description, chapters, duration, channel, upload date, view count, tags.
Inputs: url (required).
get_youtube_feedA
Fetch videos from your YouTube account using Chrome cookies. Supports: subscriptions, liked, watch_later, history.
Inputs: feed (required), limit.
next_videoA
Skip to the next video in the current playlist.
Inputs: no named parameters.
pause_videoA
Toggle pause/resume on the currently playing video.
Inputs: no named parameters.
play_audioA
Play audio only from a YouTube or TikTok video — no video window. Perfect for podcasts, music, and long-form content while you code.
Inputs: url (required), timestamp.
play_playlistB
Play an entire YouTube playlist in mpv. Supports playlist URLs and channel upload pages.
Inputs: url (required), shuffle.
play_shortsA
Play Shorts as a continuous auto-advancing playlist. Automatically fetches more as you watch. Fetch from a specific channel or from your subscribed channels.
Inputs: source (required), channel_url, max_channels, shorts_per_channel, +2 more.
play_similarA
Play videos similar to what is currently playing. Fetches the current video's channel and searches for related content, then queues or plays the results.
Inputs: limit, play_now.
play_tiktok_userA
Play videos from a TikTok user as a continuous auto-advancing playlist. Automatically fetches more videos as you watch.
Inputs: username (required), limit, shuffle.
play_videoA
Play a video from YouTube or TikTok in a lightweight mpv player window. Optionally start at a specific timestamp. Set audio_only to true for audio-only playback (great for podcasts/music while coding).
Inputs: url (required), timestamp, audio_only.
prev_videoA
Go back to the previous video in the current playlist.
Inputs: no named parameters.
queue_videoA
Add a video to the end of the current playback queue without interrupting what is playing. If nothing is playing, starts playback.
Inputs: url (required).
search_youtubeB
Search YouTube for videos. Uses Chrome cookies for personalized results.
Inputs: query (required), limit.
seek_videoA
Seek to an absolute position in the currently playing video.
Inputs: seconds (required).
set_browserA
Switch which browser's cookies are used for authenticated requests. Supports: chrome, firefox, brave, edge, safari, opera, chromium, vivaldi. Default is chrome.
Inputs: browser (required).
stop_videoA
Stop the currently playing video and close the mpv window.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools have distinct purposes, but there is some overlap between play_video and play_audio (both can handle audio-only playback) and between play_shorts and get_channel_shorts/get_subscription_shorts (both involve Shorts playback vs. listing). The descriptions help clarify differences, but an agent might occasionally confuse these related functions.
Tool names follow a highly consistent verb_noun pattern throughout, such as get_channel_videos, play_video, pause_video, and search_youtube. All names use snake_case uniformly, making them predictable and easy to parse for an agent.
With 23 tools, the count is borderline high for a social video server, potentially overwhelming for agents. While the tools cover various playback, browsing, and management functions, the number feels heavy and could be streamlined without losing core functionality.
The tool set provides comprehensive coverage for video playback, browsing, and management across YouTube and TikTok, including CRUD-like operations (e.g., play, pause, seek, queue). Minor gaps exist, such as no explicit tool for deleting or modifying playlists, but agents can work around this with the available tools.
Maintenance
Related MCP Connectors
MCP server for Google Veo AI video generation
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
MCP server for QPost — lets AI agents publish video and image posts to YouTube, TikTok, Instagram.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server for YouTube automation using Playwright and Gemini AI agent. Enables browser control for YouTube operations like searching, playing videos, skipping ads, and managing playback through natural language commands.-
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that provides YouTube data access without API keys or quotas. It enables agents to search videos, retrieve transcripts and metadata, and perform full-text search across cached content for AI context retrieval.3 npm-
- AlicenseAqualityBmaintenanceMCP server that provides YouTube video data to AI agents, supporting search, metadata, comments, and transcripts without an API key.660 npmISC
- AlicenseAqualityDmaintenanceMCP server that lets AI agents search YouTube and fetch transcripts.23MIT