Skip to main content
Glama
README.md
# transcriptyt-mcp

An [MCP](https://modelcontextprotocol.io) server for the [Transcriptyt](https://transcriptyt.com) 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](https://transcriptyt.com), then
create an API key in your dashboard. Every tool call is one API request against your plan; see
[transcriptyt.com/pricing](https://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):

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

Restart Claude Desktop.

### Claude Code

```bash
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):

```json
{
  "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:

```json
{
  "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

| Variable               | Required | Default                        | Purpose                                  |
| ---------------------- | -------- | ------------------------------ | ---------------------------------------- |
| `TRANSCRIPTYT_API_KEY` | yes      |                                | Your API key                             |
| `TRANSCRIPTYT_API_URL` | no       | `https://api.transcriptyt.com` | API 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.

| Parameter             | Default   | Description                                                                                                   |
| --------------------- | --------- | ------------------------------------------------------------------------------------------------------------- |
| `video`               | required  | 11-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                             |
| `type`                | `any`     | `manual` (human-made), `generated` (auto-generated) or `any` (manual first)                                   |
| `format`              | `text`    | `text`, `json`, `srt` or `webvtt`                                                                              |
| `preserve_formatting` | `false`   | Keep `<i>`/`<b>` tags in caption text                                                                          |
| `max_characters`      | `100000`  | Output longer than this is cut at a whole line, with a note (1,000 to 2,000,000)                               |
| `start_seconds`       | `0`       | Only 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

```bash
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

TDQS

A4.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct resource and action: fetching captions, enumerating caption languages, video metadata, and channel metadata. The descriptions explicitly cross-reference each other (e.g., get_video_metadata says it does not include the transcript; get_channel_metadata says it does not list videos), eliminating selection ambiguity.

Naming Consistency5/5

All four names follow a clean verb_noun snake_case pattern: get_transcript, list_transcripts, get_video_metadata, get_channel_metadata. The get/list distinction maps predictably onto fetch-vs-enumerate semantics.

Tool Count5/5

Four tools is well-scoped for a focused YouTube transcript server: one acquire-transcript tool, one discovery/fallback lister, and two metadata tools. Nothing appears redundant or missing at the structural level, and each tool clearly earns its place.

Completeness4/5

The transcript workflow is closed-loop: list_transcripts covers language discovery and get_transcript supports pagination via start_seconds and multiple output formats. The only real gap is that channel metadata cannot enumerate a channel's videos, leaving no way to discover video IDs from within the server, though that is a minor workaround.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues