Transcribe and translate YouTube videos from Claude Code

yt2txt is an MCP server. Add it once, then paste a YouTube link in Claude Code, Claude Desktop, Cursor, VS Code or Codex and ask for the transcript, a summary or a translation. It works on videos with no subtitles, because it listens to the audio.

How it works

Get an API key

API access comes with the Pro and Max plans. Create a key from your dashboard.

Add the server

One command in Claude Code, or a few lines of settings in the other apps.

Ask in plain words

Paste a YouTube link and say what you want. The assistant starts the transcription, waits for it, and reads the result.

Set it up

Replace yttr_your_key with your own key in each example. The server is https://yt2txt.com/mcp and it reads the key from the X-API-Key header.

Claude Code

Run this once in a terminal. --scope user makes yt2txt available in every project; leave it out to add it to the current project only. Then run claude mcp list to check it is connected.

bash
claude mcp add --transport http --scope user yt2txt https://yt2txt.com/mcp \
  --header "X-API-Key: yttr_your_key"

Claude Desktop and claude.ai

Add yt2txt as a custom connector: open Connectors, choose Add custom connector, enter https://yt2txt.com/mcp as the URL, and add a request header named X-API-Key with your key as its value.

Cursor

Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one.

json
{
  "mcpServers": {
    "yt2txt": {
      "url": "https://yt2txt.com/mcp",
      "headers": {
        "X-API-Key": "yttr_your_key"
      }
    }
  }
}

VS Code

Add this to .vscode/mcp.json in your workspace. Keep that file out of version control while it holds your key.

json
{
  "servers": {
    "yt2txt": {
      "type": "http",
      "url": "https://yt2txt.com/mcp",
      "headers": {
        "X-API-Key": "yttr_your_key"
      }
    }
  }
}

Codex

Codex sends the key as a bearer token, which the server accepts too.

bash
export YT2TXT_API_KEY=yttr_your_key
codex mcp add yt2txt --url https://yt2txt.com/mcp \
  --bearer-token-env-var YT2TXT_API_KEY

Any other MCP client that can send a header to a remote server works the same way: streamable HTTP at https://yt2txt.com/mcp, with the key in X-API-Key or as Authorization: Bearer.

Things to ask

Once it is connected, ask the way you would ask a person.

Get the main points

“Transcribe https://youtu.be/… and give me the main points.”

Translate a talk

“Translate this talk into Spanish: https://youtu.be/…”

Make chapters

“Make chapters with timestamps for https://youtu.be/…”

Turn a tutorial into code

“Watch this tutorial and set up the same project here: https://youtu.be/…”

The five tools

The assistant picks these on its own. You never have to name them.

Tool Description
transcribe Start transcribing a YouTube video and return its job id.
get_job Report a job's status: pending, processing, completed, failed or cancelled.
get_transcript Read a completed job's transcript, at most 50,000 characters per call.
run_action Run an AI action on a completed transcript: summarize, translate, chapters, keywords or quiz.
get_balance Report the plan and the minutes and credits left on the key's account.

Questions

What does it cost?

A tool call costs exactly what the same request costs over the REST API and comes out of the same minutes. API keys come with the Pro and Max plans; see pricing.

Does it need subtitles?

No. yt2txt transcribes the audio itself, in over 90 languages, so it works on videos that have no captions at all.

How is this different from the API?

It is the same service with the same key. The MCP server lets the assistant call it for you, so nobody has to write code.

Where is the full reference?

The developer documentation covers every endpoint and error, and llms-full.txt has it all in one file for an AI to read.