Skip to content

How do I connect TubeTranscript to AI agents with the Model Context Protocol?

By TubeTranscript · Content updated

View as Markdown

TubeTranscript runs a stateless remote MCP server over Streamable HTTP. /api/mcp serves every tool: it fetches transcripts and turns them into hooks, mindmaps and blog drafts, and /api/mcp/tools is an alias of the same server. Claude, Claude Code, Cursor and VS Code connect free with a sign-in (OAuth, see How do I connect TubeTranscript in Claude?); a free account needs a verified email. Windsurf, n8n and scripts use a Pro plan API key, which also works in the other clients. Captioned videos return in seconds via the Tier-1 Fast Path; videos without captions are transcribed from audio.

To fetch transcripts from scripts or n8n HTTP nodes instead of an agent, use the REST API with the same key. A shorter overview of these servers is on YouTube Transcript MCP Server.

Server URL Tools
Transcript https://tubetranscript.io/api/mcp get_transcript, transcribe_url
AI tools https://tubetranscript.io/api/mcp/tools extract_hooks, create_mindmap, generate_brand_voice_blog and the six creator tools below

Which MCP tools does TubeTranscript expose?

get_transcript fetches a video and stores its transcript as a job owned by your Pro team, then returns the transcript and that job's job_id. The AI tools take that job_id, read the job's transcript and generate output with Google Gemini. They never fetch or transcribe videos themselves.

Tool Server Input Output (structuredContent)
get_transcript /api/mcp video_url or video_id { "video_id", "status", "job_id", "transcript" }
transcribe_url /api/mcp url (YouTube, TikTok, Instagram or Facebook link) { "video_id", "status", "job_id", "transcript", "platform" }
extract_hooks /api/mcp/tools job_id { "hooks": [{ "start_time", "end_time", "hook_title", "summary" }] }, max 10
create_mindmap /api/mcp/tools job_id { "mermaid": "<Mermaid mindmap source>" }
generate_brand_voice_blog /api/mcp/tools job_id, brand_voice_id (UUID) { "blog": "<Markdown>" }
generate_chapters /api/mcp/tools job_id, style, count { "chapters": [{ "start", "clock", "title" }], "text" }
generate_description /api/mcp/tools job_id, tone, cta, chapters { "description", "tags", "hashtags", "chars" }
find_moments /api/mcp/tools job_id, length { "moments": [{ "start", "end", "hook", "reason", "quote" }] }
analyze_hook /api/mcp/tools job_id, topic { "opening", "hookType", "parts", "pace", "rewrites" }
translate_subtitles /api/mcp/tools job_id, target_languages, format, glossary { "outputs": [{ "language", "text" }], "failed" }
summarize_video /api/mcp/tools job_id { "text": "<Markdown summary>" }

The six creator tools (generate_chapters to summarize_video) take the same options as the REST creator endpoint and follow its limits: one AI run each from your team's shared allowance (Pro 15 AI runs a day, up to 10 an hour; Enterprise 60 a day, up to 30 an hour), charged only when a result is returned. translate_subtitles counts one run per language per 60,000 characters of transcript. extract_hooks, create_mindmap and generate_brand_voice_blog also count one run each when they create a new result; a result already stored for the job is returned free.

The typical agent workflow takes two or three calls:

  1. Call get_transcript with the video URL or ID.
  2. If status is "processing", wait about 60 seconds and call get_transcript again with the same video until status is "completed".
  3. Pass the returned job_id to any AI tool, such as extract_hooks, generate_chapters or translate_subtitles.

What does get_transcript return?

get_transcript accepts video_url (any YouTube URL, max 2,048 characters) or video_id (the 11-character YouTube ID), or both if they match. It returns structuredContent with four fields, plus text content blocks for clients without structured-content support: the transcript as clean plain text (one paragraph per caption chunk, no timestamps, normalized for RAG), then a job_id: … line. For timed chunks, call the REST endpoint POST /api/v1/extract instead, or the plain-HTTP form of this tool, GET /api/mcp/transcript?video_id=…&chunks=1, which adds chunks (start, duration, text), language and video_title to the same answer and counts the same way.

{ "name": "get_transcript", "arguments": { "video_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" } }
{
  "video_id": "jNQXAC9IVRw",
  "status": "completed",
  "job_id": "71d2b675-3bc5-48a8-8b10-7e2b7f7f0011",
  "transcript": "First paragraph of the transcript…

Second paragraph…"
}
Field Type Description
video_id string The 11-character YouTube ID.
status string completed, or processing while a video without captions is transcribed from audio.
job_id string | null Team job holding the transcript; input for the AI tools. null only if storing the job failed.
transcript string Plain-text transcript; empty while status is processing.

What does transcribe_url do?

transcribe_url (Pro and above) takes any supported link in one url argument. A YouTube link works exactly like get_transcript. A TikTok, Instagram or Facebook link (Pro and above) is transcribed from speech and uses one AI transcription from your team's daily allowance; it first returns status: "processing" and a job_id, so call transcribe_url again with the same link after about 60 seconds. Calling it again for a link already transcribed, or still running, does not count toward the daily limit. Over the AI allowance the tool returns an error.

What happens when I call get_transcript for the same video again?

Repeat calls are cheap and safe. TubeTranscript resolves the video in this order:

Situation status job_id
Your team already has a completed job for the video completed That job; the same job_id on every call
Another account already has a free or guest transcript completed A new private copy in your team
Your team's audio transcription is still running processing That job, so no second transcription is started
The video has captions completed A new job holding the captions
The video has no captions processing A new audio transcription job

Two calls for the same new video that arrive at the same time fetch the captions once but each store their own job, so they return different job_ids with the same transcript; without captions they share one audio job. If an audio transcription fails, the next call starts a new one. A worker outage returns isError: true with a plain-text message; retry later.

When can I call the AI tools?

Call them with a job_id whose status was "completed": one returned by get_transcript, or the ID of a job created in the web app, or a non-null data.job_id from POST /api/v1/extract. The job must belong to the API key's team; a video ID or URL in place of job_id is rejected as an invalid argument. Each result is stored per job: calling a tool again with the same job_id returns the stored result without calling the model (a blog is regenerated when another Brand Voice profile is used or the profile text changed). Outputs are returned as structuredContent plus a JSON text block.

Tool Behavior on thin source material
extract_hooks Empty hooks array (not an error).
create_mindmap Root node states that the source information is insufficient.
generate_brand_voice_blog Empty blog string.

How are invalid arguments and server errors reported?

Both servers validate tools/call arguments before any quota is spent. A call with missing, mistyped or unknown arguments, or an unknown tool name, returns HTTP 400 with JSON-RPC error -32602; error.data.issues lists each problem (path and message) so an agent can correct the call and retry.

{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "Invalid arguments for tool extract_hooks: job_id: Required", "data": { "code": "INVALID_ARGUMENTS", "tool": "extract_hooks", "issues": [{ "code": "invalid_type", "expected": "string", "received": "undefined", "path": ["job_id"], "message": "Required" }], "formErrors": [], "fieldErrors": { "job_id": ["Required"] } } } }

A tool that runs but cannot complete returns HTTP 200 with result.isError: true and a JSON text block { "error": "<CODE>", "message": "…" }, so always check isError:

error Meaning
JOB_NOT_FOUND Unknown job_id, or a job of another team.
JOB_NOT_READY Still being transcribed; call get_transcript again until status is completed.
INVALID_TRANSCRIPT The job has no usable timed transcript, or it is too long.
BRAND_VOICE_NOT_FOUND brand_voice_id is not a saved profile of your team.
INVALID_BRAND_VOICE The profile text is empty or longer than 20,000 characters.
AI_TIMEOUT and other AI_* codes Model or validation failure; retry later and do not use partial output.

An unexpected server failure returns HTTP 500 with a fixed JSON body and is safe to retry later.

{ "error": true, "message": "Internal Server Error", "code": "MCP_CRASH" }

How do I read YouTube comments and channel videos?

Two read-only tools return YouTube data through the official YouTube Data API: get_video_comments and get_channel_videos. They are being rolled out: they are available only when your server's tools/list includes them. If it does not, they are not live yet. Both work on every plan with a sign-in (a free connection needs a verified email); larger plans get more per call: get_video_comments returns up to 100 comments per call on Free, 300 on Pro and 500 on Creator and Agency, and get_channel_videos up to 50 videos on Free, 100 on Pro and 200 on Creator and Agency. Each call counts as one request against your team's daily allowance, like get_transcript.

Tool Input Output (structuredContent)
get_video_comments video_url or video_id; limit 1-500 (default 100, capped by your plan); order relevance (default) or time { "video_id", "comments_disabled", "total_returned", "limit_applied", "comments": [{ "id", "text", "author", "like_count", "reply_count", "published_at" }] }
get_channel_videos channel (channel URL, @handle or UC… id); limit 1-200 (default 50, capped by your plan); published_after (YYYY-MM-DD) { "channel", "limit_applied", "videos": [{ "video_id", "title", "published_at", "duration_s" }] }
  • Comments are top-level comments only, without replies. relevance puts the top comments first and time the newest. A video with comments turned off returns comments_disabled: true and no comments. Commenters' channel IDs, links and avatars are never returned. The same video and order are served from a cache for up to 24 hours.
  • Channel videos are the channel's most recent public uploads, newest first. Pass a video_id from the result to get_transcript or get_video_comments to go further.
  • An unknown or private video or channel, or a YouTube quota problem, returns a tool result with isError: true and a message, for example That video was not found, or it is private.. Input that is not a YouTube link, handle or ID is rejected before YouTube is called.
{ "name": "get_video_comments", "arguments": { "video_id": "jNQXAC9IVRw", "limit": 20 } }

How do I connect TubeTranscript in Claude?

In Claude (claude.ai or the desktop app), open Settings, then Connectors, add a custom connector and paste https://tubetranscript.io/api/mcp. Claude then walks you through four steps:

  1. Connect: Claude opens TubeTranscript's authorization page.
  2. Sign in to TubeTranscript, or create a free account. A free team needs a verified email: if the page asks, send yourself the link, open it in the same browser, and the connection continues. A Google sign-in is already verified.
  3. Choose your team. The connector only reads and writes that team's transcripts. On a free team only the owner can connect; on a Pro team any member can.
  4. Allow Claude to use TubeTranscript.

No API key is needed. The access lasts until you disconnect Claude under Security Settings in the dashboard, which ends it immediately. API keys (Authorization: Bearer tt_live_…) keep working on the same URL for every other client.

Plan Tools in Claude Allowance
Free get_transcript 15 transcripts per 24 hours, 3 of them AI-transcribed (YouTube videos without captions)
Pro The two above, plus extract_hooks, create_mindmap, generate_brand_voice_blog, generate_chapters, generate_description, find_moments, analyze_hook, translate_subtitles and summarize_video See How are MCP requests authenticated and rate limited?

A free team that calls a Pro tool gets a normal tool result with isError: true and { "error": "PLAN_UPGRADE_REQUIRED", "message", "upgrade_url" }; a team over its allowance gets RATE_LIMIT_EXCEEDED with resets_at; a free connection whose account email is not verified gets EMAIL_VERIFICATION_REQUIRED with verify_url, and works again once the email is verified. One inbox gets one free connection (name+tag@ counts as name@), and a free team can have up to 3 connected apps. Connections made through Claude never receive HTTP 402. Over OAuth, get_transcript and transcribe_url return at most 60,000 characters per result with total_chars and next_offset; call again with offset for the rest. Bulk transcription is available with API keys only, not through Claude.

Try: "Summarize this video and pull the 5 best clip moments: <link>", "Get the transcript of <link> and turn it into a mindmap", or "Transcribe this TikTok and draft a blog post in my brand voice". Support: support@tubetranscript.io. See the privacy policy and terms.

How do I add TubeTranscript to Claude Code?

Register the server with the Claude Code CLI using claude mcp add --transport http and the server URL. Claude Code can connect in two ways: with a sign-in (OAuth, free account), or with an Authorization header carrying your Pro API key. One server gives you every tool. Run claude mcp list afterwards to confirm it connects. Tools are loaded when a session starts, so open a new Claude Code session after adding the server.

  1. For the API-key route, export your key as TUBETRANSCRIPT_API_KEY (see Quickstart). For the sign-in route no key is needed.
  2. Run one of the claude mcp add commands below to register tubetranscript.
  3. Run claude mcp list.
  4. Confirm that the server is listed as connected.
  5. Start a new session so the agent can see get_transcript and the AI tools.

Sign in with OAuth (no key; run /mcp in Claude Code and choose Authenticate):

claude mcp add --transport http tubetranscript https://tubetranscript.io/api/mcp

Or with a Pro API key:

claude mcp add --transport http tubetranscript https://tubetranscript.io/api/mcp \
  --header "Authorization: Bearer $TUBETRANSCRIPT_API_KEY"

How do I add TubeTranscript to Cursor?

Add the server to ~/.cursor/mcp.json for every project, or .cursor/mcp.json in the project, under mcpServers. With only a url, Cursor signs you in (OAuth, free account): click Connect next to the server in Cursor's MCP settings, then sign in and allow in the browser. The consent page notes that Cursor does not send you back to Claude; that is expected. Cursor detects the Streamable HTTP transport from the URL.

{ "mcpServers": { "tubetranscript": { "url": "https://tubetranscript.io/api/mcp" } } }

With a Pro API key instead, add a headers object with Authorization: Bearer <API_KEY> and keep the file out of version control:

  1. Create .cursor/mcp.json in the project root (or ~/.cursor/mcp.json for all projects).
  2. Paste the JSON below into the file.
  3. Replace the tt_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX placeholder with your API key.
  4. Save the file.
  5. Add .cursor/mcp.json to .gitignore.
  6. Confirm that tubetranscript appears in Cursor's MCP settings.
{
  "mcpServers": {
    "tubetranscript": {
      "url": "https://tubetranscript.io/api/mcp",
      "headers": { "Authorization": "Bearer tt_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }
    }
  }
}

How do I add TubeTranscript to VS Code?

Add the server to .vscode/mcp.json in the workspace (or your user mcp.json) under servers, with type: "http". In Copilot agent mode, Start the server: VS Code opens TubeTranscript in the browser to sign in (OAuth, free account). Choose your team and allow; the tools then appear in the agent's tool list.

{ "servers": { "tubetranscript": { "type": "http", "url": "https://tubetranscript.io/api/mcp" } } }

With a Pro API key instead, add "headers": { "Authorization": "Bearer tt_live_…" } to the entry, or better an input variable, and keep the key out of version control.


How do I add TubeTranscript to Windsurf?

Add the server to ~/.codeium/windsurf/mcp_config.json under mcpServers. Windsurf uses serverUrl for remote servers and a headers object for the Authorization: Bearer <API_KEY> header. After saving the file, refresh the MCP server list in Cascade so the get_transcript and AI tools appear before prompting the agent.

  1. Open ~/.codeium/windsurf/mcp_config.json.
  2. Paste the JSON below into the file.
  3. Replace the tt_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX placeholder with your API key.
  4. Save the file.
  5. Refresh the MCP server list in Cascade.
  6. Confirm that get_transcript and the AI tools appear in the tool list.
{
  "mcpServers": {
    "tubetranscript": {
      "serverUrl": "https://tubetranscript.io/api/mcp",
      "headers": { "Authorization": "Bearer tt_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }
    }
  }
}

How do I use TubeTranscript in n8n?

Add an MCP Client Tool node to an AI Agent workflow. Set the endpoint to https://tubetranscript.io/api/mcp, the server transport to HTTP Streamable, and authentication to Bearer Auth with your Pro API key as the token. For single-step automations without an agent, call POST /api/v1/extract from an HTTP Request node.

  1. Open a workflow that contains an AI Agent node.
  2. Add an MCP Client Tool node to the agent's tool input.
  3. Set Endpoint to https://tubetranscript.io/api/mcp.
  4. Set Server Transport to HTTP Streamable.
  5. Set Authentication to Bearer Auth.
  6. Create a Bearer credential whose token is your tt_live_… API key.
  7. Save the workflow.
  8. One node is enough: the same endpoint serves the AI tools, which take the job_id that get_transcript returns.
n8n field Value
Endpoint https://tubetranscript.io/api/mcp (or /api/mcp/tools)
Server Transport HTTP Streamable
Authentication Bearer Auth
Credential token Your tt_live_… API key

How are MCP requests authenticated and rate limited?

A request is authenticated either by an OAuth access token (Claude, Claude Code, Cursor or VS Code, after the sign-in above) or by Authorization: Bearer <API_KEY> from a Pro team. With neither, the server answers 401 with a WWW-Authenticate header that points to its OAuth metadata, so Claude can start the sign-in. An API-key request with an unknown or revoked key, or from a team without Pro, or one that is over its quota, still gets 402 Payment Required with a machine-readable invoice. Protocol handshakes (initialize, tools/list, ping) are free. Each tools/call counts once against the team's allowance (100 requests per 24 hours on Pro, 1,000 on Enterprise), shared with the REST API and all the team's keys, including a get_transcript call that returns processing. The guest limit of 5 transcripts per network does not apply to the MCP servers. At most 30 of the 100 may be transcribed from audio (Whisper) when a video has no captions. Details: Security & Rate Limits.

Condition Response
GET or DELETE on the server URL 405 METHOD_NOT_ALLOWED (stateless, no SSE stream)
No credentials 401 with WWW-Authenticate; the client starts the OAuth sign-in
Unknown or revoked key 402, reason: INVALID_API_KEY
Team not on Pro 402, reason: PLAN_UPGRADE_REQUIRED
Limit exceeded on tools/call 402, reason: RATE_LIMIT_EXCEEDED, Retry-After
Quota store unreachable on tools/call 503 RATE_LIMIT_UNAVAILABLE with Retry-After: 60

The 402 body differs by the reason field and the invoice. An API-key caller whose key is unknown, revoked or not on Pro is invoiced the Pro plan (shown below). A Pro team that used up its daily quota is invoiced the Enterprise plan instead (amount: 19, payment_url ending in ?source=mcp_quota). An Enterprise team that used up its quota gets 429 RATE_LIMIT_EXCEEDED, since no bigger plan exists. An exhausted quota frees up on its own after Retry-After seconds. A JSON-RPC batch may hold at most one tools/call (otherwise 400, code -32600).

{
  "error": "Payment Required",
  "code": "M2M_INSUFFICIENT_FUNDS",
  "message": "Your agent has exhausted its quota or requires a Pro API key to execute this tool.",
  "reason": "INVALID_API_KEY",
  "payment_protocols_supported": ["stripe_checkout"],
  "invoice": {
    "amount": 4.99,
    "currency": "USD",
    "description": "TubeTranscript Pro - 100 requests per 24 hours per team",
    "payment_url": "https://tubetranscript.io/pricing"
  }
}
MCP method Counts against quota
initialize No
tools/list No
ping No
tools/call Yes, once per call