Skip to main content
Glama
media-transcript-mcp

media-transcript-mcp

by onlsol
README.md
# media-transcript-mcp

MCP server that lets Claude Code and any other MCP-compatible host fetch,
search and cite YouTube captions and podcast transcripts. It runs on your
machine as a stdio server and uses the hosted service at
[media-transcript.remotify.run](https://media-transcript.remotify.run).

Search results come back as passages with timestamps and a link to the exact
moment in the source. It works with captions and transcripts that already
exist; it does not transcribe audio.

It exposes five tools: `media_transcript_retrieve_youtube`,
`media_transcript_retrieve_feed`, `media_transcript_register_file`,
`media_transcript_search` and `media_transcript_read_page`.

## Install

Most users don't install; the MCP hosts below all launch it via `npx`
(Node.js 20 or later):

```bash
npx -y media-transcript-mcp@latest
```

## Wire it into your MCP host

Every host below launches the same command; only the config file differs. If a
host does not pick the server up, check its own docs for where it reads MCP
config from.

### Claude Code

```bash
claude mcp add -s user media-transcript -- npx -y media-transcript-mcp@latest
```

`-s user` registers it for every working directory instead of only the one you
ran the command in. `/mcp` inside a session shows the live status and the
exposed tools.

### Cursor

`~/.cursor/mcp.json`:

```json
{ "mcpServers": { "media-transcript": { "command": "npx", "args": ["-y", "media-transcript-mcp@latest"] } } }
```

### Codex CLI

`~/.codex/config.toml`:

```toml
[mcp_servers.media-transcript]
command = "npx"
args    = ["-y", "media-transcript-mcp@latest"]
required = true
startup_timeout_sec = 60
```

### OpenCode V2

```bash
opencode mcp add media-transcript --global -- npx -y media-transcript-mcp@latest
```

Omit `--global` to add it to the current project only. `opencode mcp list`
shows whether it connected.

### Gemini CLI

`~/.gemini/settings.json`:

```json
{ "mcpServers": { "media-transcript": { "command": "npx", "args": ["-y", "media-transcript-mcp@latest"] } } }
```

### Anything else

Windsurf, Continue, Cline, Zed, VS Code's built-in MCP, agent frameworks and
MCP SDK scripts take the same `command` plus `args` pair:

```json
{ "command": "npx", "args": ["-y", "media-transcript-mcp@latest"] }
```

## API key (optional)

Anonymous access works without a key. To use a key, set
`MEDIA_TRANSCRIPT_API_KEY` in the server's environment; the server sends it as
`Authorization: Bearer <key>` when it opens its session and never writes it to
disk.

| Host | How |
|---|---|
| Claude Code | add `-e MEDIA_TRANSCRIPT_API_KEY=<key>` to `claude mcp add` |
| Codex CLI | add `env = { MEDIA_TRANSCRIPT_API_KEY = "<key>" }` to `[mcp_servers.media-transcript]` |
| JSON configs | add `"env": { "MEDIA_TRANSCRIPT_API_KEY": "<key>" }` next to `command` and `args` |

## Tools exposed

- `media_transcript_retrieve_youtube({item_id, language?})` - loads an
  existing caption track of one YouTube video, including auto-generated
  tracks, and returns a handle.
- `media_transcript_retrieve_feed({feed_url, episode, language?})` - loads the
  transcript a podcast publisher links from its feed for one episode.
- `media_transcript_register_file({path})` - loads one of your own SRT, VTT or
  JSON transcript files.
- `media_transcript_search({handle, phrase, limit?})` - finds an exact phrase
  in a loaded transcript, across cue boundaries, and returns timestamped
  passages with a citation link.
- `media_transcript_read_page({handle, cursor?, page_size?})` - reads a loaded
  transcript page by page.

## Typical first-run flow

1. Your MCP host launches this server via `npx`.
2. Ask it to search the captions of `youtube.com/watch?v=kCc8FmEb1nY` for
   "using matrix multiplication".
3. The assistant loads the captions, searches them and answers with the
   passage at 47:14 and a link to that moment.

Podcasts work the same way with a feed URL and an episode.

## Security model

- Read-only tools. They are marked read-only and change nothing on your
  machine.
- Local files on request only. A file is read only when you pass its path to
  `media_transcript_register_file`, and only SRT, VTT and JSON are accepted.
  The path itself is not sent anywhere.
- One local credential. The server keeps
  `~/.media-transcript/credentials.json` in a directory readable only by your
  user. To remove everything, unregister the server in your MCP host and
  delete `~/.media-transcript/`.
- Transcript text is untrusted. Captions and transcripts are returned
  verbatim as source data; treat them like any other web content.

## License

Apache-2.0. See [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE).