# How to connect Youtube MCP with VS Code

```json
{
  "title": "How to connect Youtube MCP with VS Code",
  "toolkit": "Youtube",
  "toolkit_slug": "youtube",
  "framework": "VS Code",
  "framework_slug": "vscode",
  "url": "https://composio.dev/toolkits/youtube/framework/vscode",
  "markdown_url": "https://composio.dev/toolkits/youtube/framework/vscode.md",
  "updated_at": "2026-05-06T08:34:28.924Z"
}
```

## Introduction

### How to connect Youtube MCP with VS Code
VS Code is the most popular code editor out there. With its recent AI makeover, it can do more than just help you write code. You can connect your applications to it and let LLMs automate many of the mundane tasks in your workflow.
In this guide, I will explain how to connect Youtube with VS Code in the most secure and robust way possible via Composio.

## Also integrate Youtube with

- [ChatGPT](https://composio.dev/toolkits/youtube/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/youtube/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/youtube/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/youtube/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/youtube/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/youtube/framework/codex)
- [Cursor](https://composio.dev/toolkits/youtube/framework/cursor)
- [OpenCode](https://composio.dev/toolkits/youtube/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/youtube/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/youtube/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/youtube/framework/cli)
- [Google ADK](https://composio.dev/toolkits/youtube/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/youtube/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/youtube/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/youtube/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/youtube/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/youtube/framework/crew-ai)

## TL;DR

### Why use Composio?
Composio provides:
- Access to 1,000+ managed apps from a single MCP endpoint. This makes it convenient for agents to run cross-app workflows.
- Programmatic tool calling. Allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
- Large tool response handling outside the LLM context. This minimizes context bloat from large tool responses.
- Dynamic just-in-time access to thousands of tools across hundreds of apps. Composio loads the tools your agent needs, so LLMs are not overwhelmed by tools they do not need.

## Connect Youtube to VS Code

### Integrate Youtube MCP with VS Code
### 1. Install with one click
Click the button below to add Composio to VS Code. You will be prompted to authorize. This requires VS Code 1.99+ with GitHub Copilot.
[+Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22composio%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fconnect.composio.dev%2Fmcp%22%7D)
### 2. Or add manually
Open or create .vscode/mcp.json in your project root and add the following configuration:

```bash
{
  "servers": {
    "composio": {
      "type": "http",
      "url": "https://connect.composio.dev/mcp"
    }
  }
}
```

## What is the Youtube MCP server, and what's possible with it?

The Youtube MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Youtube account. It provides structured and secure access to your channel data, so your agent can perform actions like searching videos, managing playlists, retrieving channel insights, and handling subscriptions on your behalf.
- Channel activity monitoring: Let your agent fetch and summarize recent channel activities, including uploads, likes, playlist additions, and more, to keep you up to date at a glance.
- Automated video and playlist management: Easily list videos from any channel, retrieve your own playlists, and organize your content—all through AI-driven commands.
- Channel analytics and statistics: Ask your agent to pull detailed channel metrics such as subscriber counts, total views, or video counts for quick reporting and insights.
- Subscription management: Have your agent list your current subscriptions or even subscribe you to new channels based on your interests or instructions.
- Search and caption handling: Empower your agent to search YouTube for videos, channels, or playlists, as well as retrieve and download caption tracks for accessible viewing and content repurposing.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `YOUTUBE_GET_CHANNEL_ACTIVITIES` | Get Channel Activities | Gets recent activities from a youtube channel including video uploads, playlist additions, likes, and other channel events. |
| `YOUTUBE_GET_CHANNEL_ID_BY_HANDLE` | Get channel ID by handle | Retrieves the youtube channel id for a specific youtube channel handle. |
| `YOUTUBE_GET_CHANNEL_STATISTICS` | Get Channel Statistics | Gets detailed statistics for youtube channels including subscriber counts, view counts, and video counts. |
| `YOUTUBE_LIST_CAPTION_TRACK` | List captions | Retrieves a list of caption tracks for a youtube video, returning an empty list if no captions exist or failing if the video id is invalid or not found. |
| `YOUTUBE_LIST_CHANNEL_VIDEOS` | List channel videos | Lists videos from a specified youtube channel, ensuring results are of `type: 'video'`. |
| `YOUTUBE_LIST_USER_PLAYLISTS` | List user playlists | Retrieves playlists owned by the authenticated user, implicitly using mine=true. |
| `YOUTUBE_LIST_USER_SUBSCRIPTIONS` | List user subscriptions | Retrieves the authenticated user's youtube channel subscriptions, allowing specification of response parts and pagination. |
| `YOUTUBE_LOAD_CAPTIONS` | Download YouTube caption track | Downloads a specific youtube caption track, which must be owned by the authenticated user, and returns its content as text. |
| `YOUTUBE_SEARCH_YOU_TUBE` | Search YouTube | Searches youtube for videos, channels, or playlists using a query term, returning the raw api response. |
| `YOUTUBE_SUBSCRIBE_CHANNEL` | Subscribe to channel | Subscribes the authenticated user to a specified youtube channel, identified by its unique `channelid` which must be valid and existing. |
| `YOUTUBE_UPDATE_THUMBNAIL` | Update thumbnail | Sets the custom thumbnail for a youtube video using an image from thumbnailurl; the authenticated user must have permission to edit the video. |
| `YOUTUBE_UPDATE_VIDEO` | Update video | Updates metadata for a youtube video identified by videoid, which must exist; an empty list for tags removes all existing tags. |
| `YOUTUBE_UPLOAD_VIDEO` | Upload video | Uploads a video from a local file path to a youtube channel; the video file must be in a youtube-supported format. |
| `YOUTUBE_VIDEO_DETAILS` | Video details | Retrieves specified information parts (e.g., snippet, contentdetails, statistics) for a youtube video, identified by its id. |

## Supported Triggers

| Trigger slug | Name | Description |
|---|---|---|
| `YOUTUBE_NEW_ACTIVITY_TRIGGER` | New YouTube Activity | Triggers when a new activity is detected on a YouTube channel. |
| `YOUTUBE_NEW_PLAYLIST_ITEM_TRIGGER` | New Item in YouTube Playlist | Triggers when a new item is added to a YouTube playlist. |
| `YOUTUBE_NEW_PLAYLIST_TRIGGER` | New Playlist in YouTube Channel | Triggers when a new playlist is added to a YouTube channel. |
| `YOUTUBE_NEW_SUBSCRIPTION_TRIGGER` | New YouTube Channel Subscription | Triggers when a new channel is subscribed. |

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, VS Code can access the Youtube MCP server via Composio to run the app actions you authorize, directly from your coding workflow.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that Youtube is connected, extend your setup by connecting the other apps you already use every day, so your agent can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
- Connect HubSpot or Salesforce to log customer context, update records, and draft follow-ups.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single MCP endpoint, your agent can coordinate multiple tools safely and reliably in one conversation.

## How to build Youtube MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/youtube/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/youtube/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/youtube/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/youtube/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/youtube/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/youtube/framework/codex)
- [Cursor](https://composio.dev/toolkits/youtube/framework/cursor)
- [OpenCode](https://composio.dev/toolkits/youtube/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/youtube/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/youtube/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/youtube/framework/cli)
- [Google ADK](https://composio.dev/toolkits/youtube/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/youtube/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/youtube/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/youtube/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/youtube/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/youtube/framework/crew-ai)

## Related Toolkits

- [Amara](https://composio.dev/toolkits/amara) - Amara is a collaborative platform for creating and managing subtitles and captions for videos. It helps make content accessible and multilingual for global audiences.
- [Cats](https://composio.dev/toolkits/cats) - Cats is an API with a huge library of cat images, breed data, and cat facts. It makes finding adorable cat photos and trivia effortless for your apps and users.
- [Chatfai](https://composio.dev/toolkits/chatfai) - Chatfai is an AI platform that lets users talk to AI versions of fictional characters from books, movies, and games. It offers an engaging, interactive experience for fans to chat, roleplay, and explore creative dialogues.
- [Cincopa](https://composio.dev/toolkits/cincopa) - Cincopa is a multimedia platform for uploading, managing, and customizing videos, images, and audio. It helps you deliver engaging media experiences with robust APIs and flexible integrations.
- [Dungeon fighter online](https://composio.dev/toolkits/dungeon_fighter_online) - Dungeon Fighter Online (DFO) is an arcade-style, side-scrolling action RPG packed with dynamic combat and progression. Play solo or with friends to battle monsters, complete quests, and upgrade your characters.
- [Elevenlabs](https://composio.dev/toolkits/elevenlabs) - Elevenlabs is an advanced AI voice generation platform for lifelike, multilingual speech synthesis. Perfect for creating natural voices for videos, apps, and business content in seconds.
- [Elevenreader](https://composio.dev/toolkits/elevenreader) - Elevenreader is an AI-powered text-to-speech service by ElevenLabs that converts written content into lifelike audio. It enables fast, natural audio generation from any text.
- [Epic games](https://composio.dev/toolkits/epic_games) - Epic Games is a leading video game publisher and digital storefront, known for Fortnite and Unreal Engine. It lets gamers access, manage, and purchase games all in one place.
- [Fal.ai](https://composio.dev/toolkits/fal_ai) - Fal.ai is a generative media platform offering 600+ AI models for images, video, voice, and audio. Developers use Fal.ai for fast, scalable access to cutting-edge generative AI tools.
- [Giphy](https://composio.dev/toolkits/giphy) - Giphy is the largest online library for searching and sharing GIFs and stickers. Instantly add vibrant animated content to your apps, chats, and workflows.
- [Headout](https://composio.dev/toolkits/headout) - Headout is a global platform for booking travel experiences, tours, and entertainment. It helps users discover and secure activities at top destinations, all in one place.
- [Imagekit io](https://composio.dev/toolkits/imagekit_io) - ImageKit.io is a cloud-based media management platform for image and video delivery. Instantly optimize, transform, and deliver visuals globally via a lightning-fast CDN.
- [Listennotes](https://composio.dev/toolkits/listennotes) - Listennotes is a powerful podcast search engine with a massive global database. Discover, search, and curate podcasts from around the world in seconds.
- [News api](https://composio.dev/toolkits/news_api) - News api is a REST API for searching and retrieving live news articles from across the web. Instantly access headlines, coverage, and breaking stories from thousands of sources.
- [RAWG Video Games Database](https://composio.dev/toolkits/rawg_video_games_database) - RAWG Video Games Database is the largest video game discovery and info service. Instantly access comprehensive details, ratings, and release dates for thousands of games.
- [Seat geek](https://composio.dev/toolkits/seat_geek) - SeatGeek is a live event platform offering APIs for concerts, sports, and theater data. Instantly access events, venues, and performers info for smarter ticketing and discovery.
- [Shotstack](https://composio.dev/toolkits/shotstack) - Shotstack is a cloud platform for programmatically generating videos, images, and audio. Automate creative content production at scale with flexible RESTful APIs.
- [Spotify](https://composio.dev/toolkits/spotify) - Spotify is a streaming service for music and podcasts with millions of tracks from artists worldwide. Enjoy personalized playlists, recommendations, and seamless listening across all your devices.
- [Ticketmaster](https://composio.dev/toolkits/ticketmaster) - Ticketmaster is a global platform for event discovery, ticket sales, and live entertainment management. Get real-time access to events and streamline ticketing for fans and organizers.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Youtube MCP?

With a standalone Youtube MCP server, the agents and LLMs can only access a fixed set of Youtube tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Youtube and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with VS Code?

Yes, you can. VS Code fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Youtube tools.

### Can I manage the permissions and scopes for Youtube while using Tool Router?

Yes, absolutely. You can configure which Youtube scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Youtube data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
