# Youtube Mcp

> YouTube CLI + MCP tool — manage videos, comments & playlists from your terminal or let AI agents do it for you.

- **Type:** MCP server
- **Install:** `agentstack add mcp-virat-mankali-youtube-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [virat-mankali](https://agentstack.voostack.com/s/virat-mankali)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [virat-mankali](https://github.com/virat-mankali)
- **Source:** https://github.com/virat-mankali/youtube-mcp
- **Website:** https://virat.me

## Install

```sh
agentstack add mcp-virat-mankali-youtube-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# youtube-mcp

YouTube CLI and MCP tool for humans and AI agents. Upload videos, manage comments, search, view analytics, and more — from your terminal or via any MCP-compatible AI agent.

The CLI command is just `yt` — short and sweet.

## Install

```bash
brew install virat-mankali/tap/youtube-mcp
```

## Setup

1. Go to [console.cloud.google.com](https://console.cloud.google.com)
2. Create a project and enable **YouTube Data API v3**
3. Create an **OAuth 2.0 Client ID** (Desktop App type)
4. Copy your Client ID and Client Secret, then run:

```bash
yt auth login --client-id YOUR_ID --client-secret YOUR_SECRET
```

## CLI Usage

```bash
# Auth
yt auth login
yt auth login --manual        # SSH/headless environments
yt auth logout
yt auth status

# Videos
yt videos list
yt videos get 
yt videos upload ./video.mp4 --title "My Video" --privacy public
yt videos update  --title "New Title"
yt videos delete  --yes

# Comments
yt comments list 
yt comments reply  "Thanks!"
yt comments post  "Great video!"
yt comments delete 

# Search
yt search "typescript tutorials"
yt search "react hooks" --order viewCount --max-results 5

# Analytics
yt analytics channel
yt analytics video 

# Playlists
yt playlists list
yt playlists create "My Playlist"
yt playlists add  

# MCP Server
yt serve
```

## MCP Config

Add to your MCP client config (e.g. Claude Desktop, Kiro, Cursor):

```json
{
  "mcpServers": {
    "youtube": {
      "command": "yt",
      "args": ["serve"]
    }
  }
}
```

Or pass credentials via env vars for headless setups:

```json
{
  "mcpServers": {
    "youtube": {
      "command": "yt",
      "args": ["serve"],
      "env": {
        "YOUTUBE_CLIENT_ID": "your_client_id",
        "YOUTUBE_CLIENT_SECRET": "your_client_secret",
        "YOUTUBE_ACCESS_TOKEN": "ya29.xxx",
        "YOUTUBE_REFRESH_TOKEN": "1//xxx"
      }
    }
  }
}
```

## Environment Variables

| Variable | Description |
|----------|-------------|
| `YOUTUBE_CLIENT_ID` | Google OAuth2 Client ID |
| `YOUTUBE_CLIENT_SECRET` | Google OAuth2 Client Secret |
| `YOUTUBE_ACCESS_TOKEN` | Access token (overrides saved token) |
| `YOUTUBE_REFRESH_TOKEN` | Refresh token (overrides saved token) |

## MCP Tools

| Tool | Description |
|------|-------------|
| `list_my_videos` | List your uploaded videos |
| `get_video` | Get video details |
| `upload_video` | Upload a video |
| `update_video` | Update video metadata |
| `delete_video` | Delete a video |
| `list_comments` | List comments on a video |
| `reply_to_comment` | Reply to a comment |
| `post_comment` | Post a new comment |
| `delete_comment` | Delete a comment |
| `search_youtube` | Search YouTube |
| `get_channel_stats` | Get channel statistics |
| `get_video_stats` | Get video statistics |
| `list_playlists` | List your playlists |
| `create_playlist` | Create a playlist |
| `add_to_playlist` | Add a video to a playlist |

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [virat-mankali](https://github.com/virat-mankali)
- **Source:** [virat-mankali/youtube-mcp](https://github.com/virat-mankali/youtube-mcp)
- **License:** MIT
- **Homepage:** https://virat.me

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-virat-mankali-youtube-mcp
- Seller: https://agentstack.voostack.com/s/virat-mankali
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
