How to integrate Youtube MCP with Antigravity

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Youtube logo
Antigravity logo
divider

How to integrate Youtube MCP with Antigravity

Antigravity IDE is Google's agentic IDE, built on a VS Code-style editor and powered by models like Gemini 3.5 Flash, Gemini 3.1 Pro, Opus 4.6, and more. It treats the AI agent as a first-class teammate, planning, coding, and validating work through an Agent Manager dashboard with deep browser connectivity.

In this guide, I will explain the easiest and most secure way to connect your Youtube account to Antigravity IDE via Composio Connect, so it can list your most recent uploaded videos, get subscriber count for your channel, search YouTube for trending tutorials, and more without ever putting your account credentials at risk.

Also integrate Youtube with

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 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 Antigravity

Antigravity does not ship with one-click custom MCP install links yet, so configuration goes through the IDE's raw config file. The process takes under a minute.

1. Open the MCP Config

Go to Antigravity Settings, open the Customizations tab, then click Open MCP Config to open mcp_config.json in the editor.

Antigravity Customizations settings with Open MCP Config button

2. Get your API key

Go to the Composio Dashboard and copy your API key.

Composio Dashboard showing where to get the API key

3. Add Composio to mcp_config.json

Paste the following configuration into the file:

bash
{
  "mcpServers": {
    "remote-composio": {
      "serverUrl": "https://connect.composio.dev/mcp",
      "headers": {
        "x-consumer-api-key": "your-composio-api-key"
      }
    }
  }
}

Note: Antigravity uses serverUrl, not url, for remote HTTP-based MCP servers. This differs from the url key used in Cursor and VS Code configs.

Save the file and click refresh in the Installed MCP Servers section.

Antigravity showing Composio tools after MCP setup

Connect your Youtube account

Back in the Antigravity agent panel, ask the agent to connect to Youtube or give it any Youtube-related task.

For example, ask it to:

  • "List your most recent uploaded videos"
  • "Get subscriber count for your channel"
  • "Search YouTube for trending tutorials"

It will prompt you to authenticate and authorize access to Youtube.

That is it. Composio tools are now available in Antigravity, and your Youtube account is ready to use.

Supported Tools & Triggers

Tools
Triggers
Add Video to PlaylistTool to add a video to a playlist by inserting a playlist item.
Insert Channel SectionTool to create a new channel section for the authenticated user's YouTube channel.
Insert Comment ReplyTool to create a reply to an existing YouTube comment.
Create PlaylistTool to create a new YouTube playlist on the authenticated user's channel.
Delete Channel SectionTool to delete a YouTube channel section.
Delete CommentTool to delete a YouTube comment owned by the authenticated user or channel.
Delete PlaylistTool to delete a YouTube playlist owned by the authenticated user/channel.
Delete Playlist ItemTool to delete a playlist item (remove a video from a playlist).
Delete VideoTool to delete a YouTube video owned by the authenticated user/channel.
Get Channel ActivitiesGets recent activities from a YouTube channel including video uploads, playlist additions, likes, and other channel events.
Get channel ID by handleRetrieves the YouTube Channel ID for a specific YouTube channel handle.
Get Channel StatisticsGets detailed statistics for YouTube channels including subscriber counts, view counts, and video counts.
Video Details BatchRetrieves multiple YouTube video resource parts in a single batch call.
Get Video RatingRetrieves the ratings that the authorized user gave to a list of specified videos.
List captionsRetrieves a list of caption tracks for a YouTube video.
List Channel SectionsTool to retrieve channel sections from YouTube.
List channel videosLists videos from a specified YouTube channel.
List CommentsList individual comments from YouTube videos.
List Comment ThreadsTool to retrieve comment threads from YouTube videos or channels matching API request parameters.
List I18n LanguagesReturns a list of application languages that the YouTube website supports.
List I18n RegionsTool to retrieve a list of content regions that the YouTube website supports.
List Live Chat MessagesTool to list live chat messages for a specific chat.
List Playlist ImagesTool to retrieve playlist images associated with a specific playlist.
List Playlist ItemsTool to list videos in a playlist, with pagination support.
List Super Chat EventsLists Super Chat events for a channel, showing supporter purchases during live streams.
List user playlistsRetrieves playlists owned by the authenticated user, implicitly using mine=True.
List user subscriptionsRetrieves the authenticated user's YouTube channel subscriptions, allowing specification of response parts and pagination.
List Video Abuse Report ReasonsTool to retrieve a list of abuse report reasons that can be used to report abusive videos on YouTube.
List Video CategoriesTool to list YouTube video categories that can be associated with videos.
Download YouTube caption trackDownloads a specific YouTube caption track, which must be owned by the authenticated user, and returns its content as text.
Multipart upload videoUploads a video to YouTube using multipart upload in a single request.
Post Comment on VideoTool to post a new top-level comment on a YouTube video.
Rate VideoTool to add a like or dislike rating to a YouTube video, or remove an existing rating.
Report Video for AbuseTool to report a YouTube video for containing abusive content.
Search YouTubeSearches YouTube for videos, channels, or playlists using a query term, returning the raw API response.
Set Comment Moderation StatusTool to set the moderation status of one or more YouTube comments.
Subscribe to channelSubscribes the authenticated user to a specified YouTube channel, identified by its unique `channelId` which must be valid and existing.
Unsubscribe from channelTool to unsubscribe the authenticated user from a YouTube channel by deleting a subscription.
Update caption trackUpdates a YouTube caption track's metadata such as name, language, or draft status.
Update channelUpdates a channel's metadata including branding settings and localizations.
Update Channel SectionTool to update an existing YouTube channel section by ID.
Update CommentTool to modify the text of an existing YouTube comment.
Update PlaylistTool to modify an existing YouTube playlist's metadata (title, description, privacy status).
Update Playlist ItemTool to modify a playlist item's properties such as position or note.
Update thumbnailSets the custom thumbnail for a YouTube video using an image from a URL.
Update videoUpdates metadata for a YouTube video identified by videoId, which must exist; an empty list for tags removes all existing tags.
Upload videoUploads a video from a local file path to a YouTube channel; the video file must be in a YouTube-supported format.

Conclusion

You have successfully connected Youtube to Antigravity using Composio Connect. Your agent can now use Youtube securely without exposing credentials in prompts or local scripts.

How to build Youtube MCP Agent with another framework

FAQ

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 Antigravity?

Yes, you can. Antigravity 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.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.