Repository avatar
Monitoring
v0.1.0
active

transcriptyt

io.github.frederic11/transcriptyt

YouTube transcripts, captions (text, JSON, SRT, WebVTT), video and channel metadata.

Documentation

transcriptyt-mcp

frederic11/transcriptyt-mcp MCP server

An MCP server for the Transcriptyt API. It lets Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and other MCP clients fetch YouTube transcripts, captions, video metadata and channel metadata as tools.

  • Transcripts in plain text (compact, the default), JSON with timestamps, SRT or WebVTT
  • Language priority (["de", "en"]) and manual vs auto-generated selection
  • Long videos are cut at a whole line with a note saying how to read on, so a 3-hour video doesn't flood the context
  • Video and channel metadata without a Google Cloud project or YouTube Data API quota
  • Read-only, runs locally over stdio, depends only on the official MCP SDK and zod

Get an API key

Transcriptyt is a hosted, paid API with a free plan. Sign up at transcriptyt.com, then create an API key in your dashboard. Every tool call is one API request against your plan; see transcriptyt.com/pricing for plans and limits.

Install

Requires Node.js 20 or newer (node --version). Replace <your key> with your API key.

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "transcriptyt": {
      "command": "npx",
      "args": ["-y", "transcriptyt-mcp"],
      "env": {
        "TRANSCRIPTYT_API_KEY": "<your key>"
      }
    }
  }
}

Restart Claude Desktop.

Claude Code

claude mcp add transcriptyt --env TRANSCRIPTYT_API_KEY=<your key> -- npx -y transcriptyt-mcp

Add --scope user to make it available in every project.

Cursor

.cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "transcriptyt": {
      "command": "npx",
      "args": ["-y", "transcriptyt-mcp"],
      "env": {
        "TRANSCRIPTYT_API_KEY": "<your key>"
      }
    }
  }
}

VS Code

.vscode/mcp.json in your workspace. This prompts for the key once and stores it securely instead of writing it in the file:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "transcriptyt-api-key",
      "description": "Transcriptyt API key",
      "password": true
    }
  ],
  "servers": {
    "transcriptyt": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "transcriptyt-mcp"],
      "env": {
        "TRANSCRIPTYT_API_KEY": "${input:transcriptyt-api-key}"
      }
    }
  }
}

Windsurf and other clients

Any client that runs stdio servers works with the same command, npx -y transcriptyt-mcp, and the TRANSCRIPTYT_API_KEY environment variable. For Windsurf, add the Claude Desktop block above to ~/.codeium/windsurf/mcp_config.json.

Configuration

VariableRequiredDefaultPurpose
TRANSCRIPTYT_API_KEYyesYour API key
TRANSCRIPTYT_API_URLnohttps://api.transcriptyt.comAPI base URL (only change it for testing)

Without a key the server still starts and lists its tools; each tool call then returns instructions for setting the key.

Tools

All tools are read-only.

get_transcript

The transcript of a video, with timestamps.

ParameterDefaultDescription
videorequired11-character video ID or a YouTube URL (watch?v=, youtu.be/, shorts/, embed/, live/, m., music.)
languages["en"]Language codes in priority order, at most 10. The first available one is returned
typeanymanual (human-made), generated (auto-generated) or any (manual first)
formattexttext, json, srt or webvtt
preserve_formattingfalseKeep <i>/<b> tags in caption text
max_characters100000Output longer than this is cut at a whole line, with a note (1,000 to 2,000,000)
start_seconds0Only captions starting at or after this time (text and json only); used to continue after a cut

text output is a header line (video ID, language, language code, manual or auto-generated) followed by one [HH:MM:SS.mmm] text line per caption. It is rendered locally from the API's JSON response, in exactly the API's own text format, so the header costs no extra request. json returns the API's JSON response unchanged (compact). srt and webvtt are returned exactly as the API formats them, without a header.

Every call fetches the whole transcript from the API and counts as one request, including calls with start_seconds; the cutting happens locally.

list_transcripts

video: the transcript languages available for a video, whether each is manual or auto-generated, and whether it is translatable.

get_video_metadata

video (ID or URL, as above): title, channel, length, views, publish date, keywords and description (cut at 2,000 characters).

get_channel_metadata

channel: a channel ID (UC...), an @handle, or a channel URL (youtube.com/@handle, youtube.com/channel/UC...). Returns name, handle, channel ID, subscriber count as YouTube displays it, video count, country, keywords and description. Legacy /c/ and /user/ URLs are not supported.

Errors

API errors come back as tool errors the model can act on: an invalid key (401) says how to fix the key; no transcript in the requested languages (404) points to list_transcripts; disabled transcripts (403) and age-restricted videos (451) say so; rate limits (429) include the Retry-After wait and the upgrade link; temporary outages (503/504) include Retry-After. Requests time out after 90 seconds (uncached transcripts can take up to 75 seconds on the API side). The API key never appears in tool output or logs; the server logs only to stderr.

Development

npm ci
npm run typecheck
npm test        # builds, then runs unit tests and a stdio integration test against a local mock API

Try it with the MCP Inspector: npx @modelcontextprotocol/inspector node dist/index.js.

License

MIT

NPM
transcriptyt-mcp
Install Command
npm install transcriptyt-mcp
Runtime: npx