Skip to content

MCP (Model Context Protocol)

Use TranscriptAPI seamlessly with AI assistants through the Model Context Protocol (MCP).

Model Context Protocol (MCP) is a standardized framework that enables AI assistants like Claude and ChatGPT to connect directly with external tools and data sources. With TranscriptAPI’s MCP integration, your AI can fetch YouTube transcripts on-demand without manual copy-pasting or switching between applications.

Key Benefits:

  • Direct integration into your AI workflow
  • No manual transcript fetching needed
  • Consistent, structured data format
  • Works with any MCP-compatible platform

TranscriptAPI offers unique advantages for YouTube Transcript MCP integration:

TranscriptAPI works with any platform that supports MCP. Whether your platform uses OAuth for seamless authentication (like Claude and ChatGPT) or requires manual API key configuration (like OpenAI Agent Builder), we provide both options to ensure maximum compatibility.

  • Battle-tested with major AI platforms
  • Consistent performance across all authentication methods
  • Same powerful transcript extraction engine as our REST API
  • Flexible authentication options (OAuth or API Key) based on your platform’s requirements

Before setting up TranscriptAPI with MCP, ensure you have:

  • A TranscriptAPI account (sign up free)
  • An AI assistant or platform that supports MCP
  • For OAuth: A web browser for the initial authorization
  • For API Key: An active API key from your dashboard

Get your MCP configuration details from the MCP dashboard or use these settings:

PropertyValue
Server NameTranscript API
Server URLhttps://transcriptapi.com/mcp
DescriptionUse TranscriptAPI to fetch YouTube video transcript automatically
IconDownload Icon

TranscriptAPI supports two authentication methods to work with different MCP platforms:

OAuth provides automatic, secure authentication without manual key management. Supported by:

  • Claude (Dynamic Client Registration - optional credentials)
  • ChatGPT (Static Client Registration - requires Client ID/Secret)
  • Any MCP client supporting OAuth 2.1

Two Registration Methods:

TranscriptAPI supports both Dynamic Client Registration (DCR) and Static Client Registration to work with different platforms:

1. Dynamic Client Registration (Claude, optional)

  • Claude and other clients that support DCR can automatically register
  • No Client ID/Secret needed - just add the MCP server URL
  • The client automatically discovers OAuth endpoints and registers itself
  • You’ll be redirected to authorize access (one-time)

2. Static Client Registration (ChatGPT, required)

  • ChatGPT requires Client ID and Client Secret upfront
  • Get your credentials from the MCP Integration dashboard
  • Select “OAuth (Recommended)” and click “Generate Credentials”
  • Copy your Client ID and Client Secret
  • Add them to your ChatGPT MCP connector configuration

How it works:

  1. Add the MCP server URL to your client
  2. For ChatGPT: Add Client ID and Client Secret
  3. For Claude: Credentials are optional (DCR supported)
  4. The client automatically discovers our OAuth endpoints
  5. You’ll be redirected to authorize access (one-time)
  6. Tokens are managed automatically with refresh support

Technical Details:

  • Uses OAuth 2.1 with both Dynamic Client Registration (RFC 7591) and Static Registration
  • Authorization server metadata: /.well-known/oauth-authorization-server
  • Protected resource metadata: /.well-known/oauth-protected-resource
  • Required scope: mcp:access
  • Access tokens prefixed with oat_

Benefits:

  • No manual key management (for DCR clients)
  • Automatic token refresh
  • Secure, time-limited access
  • Revocable permissions
  • Platform-specific support (ChatGPT and Claude)

Extract transcripts from any YouTube video with full control over the output format.

Parameters:

ParameterTypeDefaultDescription
video_urlstringrequiredYouTube video URL or 11-character video ID
send_metadatabooleantrueInclude video title, author, and thumbnail
formatstring"text"Output format: "text" (markdown) or "json" (structured)
include_timestampbooleantrueInclude timestamps with each segment

Accepted URL Formats:

  • Full URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ
  • Short URL: https://youtu.be/dQw4w9WgXcQ
  • Video ID only: dQw4w9WgXcQ

Example Usage:

// Get transcript as markdown with metadata (default)
get_youtube_transcript({
video_url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
})
// Returns:
{
"content": "# Metadata\n## Title: Rick Astley - Never Gonna Give You Up\n## Author: RickAstleyVEVO\n## Author URL: https://www.youtube.com/@RickAstley\n## Thumbnail: https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg\n\n# Transcript\n[0.0s] Never gonna give you up\n[4.12s] Never gonna let you down..."
}
// Get JSON format without metadata
get_youtube_transcript({
video_url: "dQw4w9WgXcQ",
format: "json",
send_metadata: false
})
// Returns:
{
"content": {
"transcript": [
{
"text": "Never gonna give you up",
"start": 0.0,
"duration": 4.12
},
{
"text": "Never gonna let you down",
"start": 4.12,
"duration": 3.85
}
]
}
}
// Get plain text without timestamps
get_youtube_transcript({
video_url: "dQw4w9WgXcQ",
format: "text",
include_timestamp: false,
send_metadata: false
})
// Returns:
{
"content": "# Transcript\nNever gonna give you up Never gonna let you down Never gonna run around and desert you..."
}

Output Formats:

Returns markdown-formatted text with optional metadata header and timestamped transcript lines.

# Metadata
## Title: Video Title Here
## Author: Channel Name
## Author URL: https://www.youtube.com/@ChannelName
## Thumbnail: https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg
# Transcript
[0.0s] First line of transcript
[3.5s] Second line of transcript
[7.2s] Third line of transcript

TranscriptAPI MCP works with any platform that supports the Model Context Protocol. Here are guides for popular platforms:

TranscriptAPI works with any tool, framework, or custom implementation that supports MCP:

  • OAuth-enabled platforms: Automatic authentication and token management
  • API key platforms: Manual configuration with your TranscriptAPI key
  • Custom implementations: Choose the authentication method that fits your needs

MCP requests consume credits and are subject to rate limits just like REST API calls:

  • 1 credit per successful transcript request
  • Only charged on HTTP 200 responses
  • Failed requests (4xx, 5xx) don’t consume credits
  • Cached responses still consume 1 credit
  • 200 requests per minute per API key/OAuth token
  • 2 concurrent requests maximum
  • Rate limits apply across all API usage (REST + MCP combined)

See API Rate Limits for detailed information and best practices.

The YouTube Transcript MCP tool returns user-friendly error messages that AI assistants can understand and communicate:

Error CodeDescriptionSolution
401Invalid authenticationCheck your API key or re-authorize OAuth
402Insufficient creditsPurchase more credits or upgrade plan
404Transcript not availableVideo may not have captions or be private
422Invalid YouTube URLProvide a valid YouTube URL or video ID
429Rate limit exceededWait before retrying (see Retry-After header)
500Server errorTemporary issue, retry after a few moments

Errors are returned in a format that AI assistants can easily interpret:

{
"content": "Unable to fetch transcript: Payment required. You have no credits remaining. Please purchase more credits at https://transcriptapi.com/dashboard/billing"
}

The AI assistant will communicate these errors naturally to the user.

  • OAuth platforms: Let the platform handle token storage and refresh
  • API key platforms: Store keys in environment variables, never in code
  • Rotate API keys regularly for enhanced security
  • Monitor usage through the dashboard to detect anomalies
  • Batch requests when possible to stay within rate limits
  • Cache transcripts locally if you need them multiple times
  • Handle 402 errors gracefully—inform users about credit status
  • Implement exponential backoff for retries on 429/500 errors
  • Test with common videos first to ensure configuration works
  • Provide context to the AI about video content for better responses
  • Use metadata to give AI information about video source and author
  • Choose the right format: JSON for structured processing, text for natural language
  • “Authorization failed”: Clear browser cookies and try again
  • “Invalid redirect”: Ensure you’re using the latest MCP client version
  • Token expiration: OAuth tokens auto-refresh; if issues persist, re-authorize
  • “Invalid API key”: Verify key starts with sk_ and is active in dashboard
  • “No credits”: Check credit balance at /dashboard/billing
  • Key not working: Ensure no extra spaces when copying the key
  • No transcript returned: Video might not have captions available
  • Slow responses: Check if video is very long (>2 hours)
  • Connection errors: Verify your internet connection and firewall settings

Ready to get started? Here’s what to do next:

  1. Get your credentials: Sign up and get an API key or prepare for OAuth
  2. Choose your platform: Select from our platform-specific guides
  3. Configure MCP: Follow the configuration examples above
  4. Test it out: Try fetching a transcript from a YouTube video
  5. Explore the API: Check our REST API Reference for advanced usage

Need live testing? Try our Swagger UI to experiment with the API directly.