YouTube Transcript MCP Integration for AI Agents | Composio
For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
YouTube Transcript MCP for AI Agents
Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with YouTube Transcript MCP or direct API to retrieve captions, store transcripts, check job status, and resolve playlist or channel video metadata through natural language.
Api Key
YouTube Transcript is a REST API for retrieving, storing, and reading YouTube video captions and transcript metadata. Use it to turn YouTube videos, playlists, and channels into searchable transcript data.
Try YouTube Transcript now
Type what you want done — sign in and watch it run live in the Tool Router playground.
Supported Tools
Every YouTube Transcript action and event your agent gets out of the box.
- Get Stored Transcript
- Get Video Transcript
- Get Video Transcript Job Status
- Get Video Transcripts Batch
- Get Video Transcripts Batch Status
- List Stored Transcripts
- List Transcript Languages
- Resolve Channel Videos
- Resolve Playlist Videos
Connect YouTube Transcript MCP Tool with your Agent
1. Install Composio
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
2. Initialize Client and Create Tool Router Session
import { Composio } from '@composio/core';
const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
3. Connect to AI Agent
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';
const client = await createMCPClient({
transport: {
type: 'http',
url: session.mcp.url,
headers: {
'x-api-key': 'your-composio-api-key',
},
},
});
const tools = await client.tools();
const { text } = await generateText({
model: openai('gpt-4o'),
tools,
messages: [{
role: 'user',
content: 'Retrieve and store the English transcript for YouTube video dQw4w9WgXcQ, then summarize the key points'
}],
maxSteps: 5,
});
console.log(`Agent: ${text}`);
Why Use Composio?
AI Native YouTube Transcript Integration
- Supports both YouTube Transcript MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable caption and transcript workflows
- Rich coverage for retrieving captions, storing transcripts, checking jobs, reading languages, and resolving playlist or channel video metadata
Managed Auth
- Secure API key handling without hard-coding YouTube Transcript credentials in your agent code
- Central place to manage, scope, and revoke YouTube Transcript access
- Per user and per environment credentials, so your dev, staging, and production agents stay cleanly separated
Agent Optimized Design
- Tools are designed so AI agents can clearly understand when to fetch captions, check batch status, or read stored transcripts
- Reliable schemas help reduce messy tool calls when agents work with video IDs, playlist IDs, channel metadata, and transcript languages
- Comprehensive execution logs so you always know what ran, when, and on whose behalf
Enterprise Grade Security
- Fine-grained RBAC so you control which agents and users can access YouTube Transcript
- Scoped, least privilege access to transcript retrieval and stored caption data
- Full audit trail of agent actions to support review, compliance, and debugging
Frequently asked questions
Do I need my own developer credentials to use YouTube Transcript with Composio?
Yes, YouTube Transcript requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.
Can I use multiple toolkits together?
Yes! Composio's Tool Router enables agents to use multiple toolkits.
Is Composio secure?
Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest.
What if the API changes?
Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.