MetorialDocs

Set up YouTube in Metorial for Claude, ChatGPT and Cursor

Share YouTube with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 21 tools (10 read-only).

To give your team YouTube in Claude, ChatGPT, Cursor and other AI clients, an admin shares the YouTube integration in a Metorial portal, and each person signs in to YouTube with their own account. Agents can search and manage YouTube videos, channels, playlists, comments, captions, ratings, subscriptions, and related metadata through the YouTube Data API. The integration has 21 tools, 10 read-only, 10 write and 1 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares YouTube in a portal and how each person connects
  • The 7 OAuth scopes YouTube can request, and what each one allows
  • How to keep the 10 read-only tools and reject the other 11

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (default)OAuthSigns in to YouTube
API KeyAPI tokenapiKey

The portal and metorial setup use OAuth 2.0 unless someone picks another method.

OAuth 2.0

People sign in to YouTube and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
https://www.googleapis.com/auth/youtubeManage AccountManage your YouTube account
https://www.googleapis.com/auth/youtube.readonlyRead OnlyView your YouTube account
https://www.googleapis.com/auth/youtube.force-sslForce SSLSee, edit, and permanently delete your YouTube videos, ratings, comments, and captions
https://www.googleapis.com/auth/youtube.uploadUpload VideosManage your YouTube videos
https://www.googleapis.com/auth/youtube.channel-memberships.creatorMembershipsSee a list of your current active channel members, their current level, and when they became a member
https://www.googleapis.com/auth/youtubepartnerPartnerView and manage your assets and associated content on YouTube
https://www.googleapis.com/auth/youtubepartner-channel-auditPartner AuditView private information of your YouTube channel relevant during the audit process with a YouTube partner

API Key

To connect, a person enters:

  • apiKey: YouTube Data API v3 key from Google Cloud Console

Use your own YouTube OAuth app

With your own OAuth app, people see your company's name on the YouTube consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose YouTube and copy the Redirect URI.

Register the app

In the Google Cloud console, enable the API behind YouTube under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.

The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the YouTube integration.

Admin: share YouTube in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose YouTube. Under Auth Method, keep OAuth 2.0 or pick another. For how members connect, choose Each person connects, so everyone signs in to YouTube as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from YouTube.

Choose who gets it

Add the access groups that should see YouTube. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user YouTube integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search youtube

Employee: connect YouTube

In the portal

Open YouTube in the catalog

Sign in to your portal and open YouTube. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A YouTube sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search youtube
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your YouTube connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list youtube
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 10 read-only tools, such as get_video and get_channel, and lose the 10 write tools, such as rate_video or update_video, and the destructive tool delete_video.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list youtube
metorial tools <integration-id>
metorial call <integration-id> list_videos -d '{"source":"mostPopular"}'

metorial tools lists the 21 tools, minus any you rejected. list_videos needs source, so replace the placeholders. It lists YouTube videos from supported charts or the authenticated user's liked/disliked videos.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (10)

  • list_playlists: List YouTube playlists by ID, channel, or for the authenticated user.
  • list_comments: List comment threads on a YouTube video or channel.
  • get_video: Retrieve detailed information about one or more YouTube videos by ID. Needs videoId.
  • get_channel: Retrieve detailed information about YouTube channels.
  • search_content: Search for videos, channels, and playlists on YouTube.
  • list_activities: Retrieve activity feed for a YouTube channel or the authenticated user.
  • download_caption: Download an editable caption track as a downloadable file, optionally converting its format or translating its language.
  • list_videos: List YouTube videos from supported charts or the authenticated user's liked/disliked videos. Needs source.
  • get_video_rating: Retrieve the authenticated user's current rating for one or more YouTube videos.
  • list_metadata: List YouTube Data API metadata used by other tools, including upload video categories, supported content regions, and supported interface languages. Needs resource.

Write tools (10)

  • manage_subscriptions: List, create, or delete YouTube channel subscriptions. Needs action.
  • update_video: Update a YouTube video's metadata and/or status settings. Needs videoId.
  • update_channel: Update branding settings for a YouTube channel. Needs channelId.
  • list_captions: List all caption tracks for a YouTube video. Needs action.
  • manage_playlist: Create, update, or delete a YouTube playlist. Needs action.
  • manage_playlist_items: Add, reorder, or remove videos from a YouTube playlist. Needs action.
  • rate_video: Rate a YouTube video (like, dislike, or remove rating). Needs action and videoId.
  • manage_comments: Post, reply to, update, delete, or moderate comments on YouTube videos. Needs action.
  • upload_video: Upload a video with metadata through the YouTube Data API resumable protocol.
  • set_thumbnail: Upload and set a custom JPEG or PNG thumbnail for a video owned by the authenticated YouTube channel.

Destructive tools (1)

  • delete_video: Permanently delete a YouTube video. Needs videoId.

Triggers

YouTube has 1 trigger, which fire on events in YouTube:

  • new_video: Observes upload activities from the OAuth connection’s owned channels every 15 minutes.

Next steps