YouTube Integration
Search and access YouTube videos and channels
The YouTube integration provides access to search and access YouTube videos and channels through the Integrate MCP server.
Installation
The YouTube integration is included with the SDK:
import { youtubeIntegration } from "integrate-sdk/server";Setup
1. Create a YouTube OAuth App
- Go to Google Cloud Console
- Create a new OAuth application
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the YouTube integration to your server configuration. The integration automatically reads YOUTUBE_CLIENT_ID and YOUTUBE_CLIENT_SECRET from your environment variables:
import { createMCPServer, youtubeIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
youtubeIntegration({
}),
],
});You can override the environment variables by passing explicit values:
youtubeIntegration({
clientId: process.env.CUSTOM_YOUTUBE_ID,
clientSecret: process.env.CUSTOM_YOUTUBE_SECRET,
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("youtube");
const result = await client.youtube.search({
query: "value",
});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, youtubeIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [youtubeIntegration()],
});Configuration Options
Prop
Type
Tools
youtube_add_comment
Post a new top-level comment on a video
Prop
Type
youtube_add_to_playlist
Add a video to a playlist
Prop
Type
youtube_create_playlist
Create a new playlist
Prop
Type
youtube_delete_playlist
Permanently delete a playlist
Prop
Type
youtube_get_captions
List available caption tracks for a video
Prop
Type
youtube_get_channel
Get details for any channel by ID
Prop
Type
youtube_get_my_channel
Get the authenticated user's own channel
No parameters.
youtube_get_playlist
Get details for a specific playlist
Prop
Type
youtube_get_video
Get full details for a specific video
Prop
Type
youtube_get_video_rating
Get the authenticated user's rating for one or more videos
Prop
Type
youtube_list_comment_replies
List replies to a specific comment thread
Prop
Type
youtube_list_comments
List top-level comment threads on a video
Prop
Type
youtube_list_my_videos
List videos uploaded by the authenticated user
Prop
Type
youtube_list_playlist_items
List videos in a playlist
Prop
Type
youtube_list_playlists
List playlists for the authenticated user or a specific channel
Prop
Type
youtube_list_subscriptions
List channels the authenticated user is subscribed to
Prop
Type
youtube_rate_video
Like, dislike, or remove a rating from a video
Prop
Type
youtube_remove_from_playlist
Remove an item from a playlist
Prop
Type
youtube_reply_to_comment
Reply to an existing comment thread
Prop
Type
youtube_search
Search for videos, channels, or playlists
Prop
Type
youtube_subscribe
Subscribe to a channel
Prop
Type
youtube_unsubscribe
Unsubscribe from a channel
Prop
Type
youtube_update_playlist
Update a playlist's metadata
Prop
Type
youtube_update_video
Update a video's metadata
Prop
Type
Notes
- Category: Entertainment
- Authentication mode: OAuth