yt-skill-mcp-server
# yt-skill-mcp 🎬 -> ðŸ§
[](https://github.com/zaynelovecraft/yt-skill-mcp/actions/workflows/ci.yml)
[](https://github.com/zaynelovecraft/yt-skill-mcp/releases)
[](LICENSE)
[](https://www.zaynelovecraft.com/work/yt-skill-mcp)
[](https://www.zaynelovecraft.com/articles/building-custom-mcp-servers-typescript-youtube-skills)
A Model Context Protocol (MCP) server and CLI that fetches timestamped YouTube transcripts (no API key needed) and turns technical talks into reusable Cursor / Claude Code `SKILL.md` files.
> 📖 **Engineering write-up:** [Building Custom MCP Servers in TypeScript for Cursor](https://www.zaynelovecraft.com/articles/building-custom-mcp-servers-typescript-youtube-skills)
## Requirements
- Node.js 18 or newer
- The video must have captions (auto-generated captions are fine)
## Quick start (CLI)
Print a timestamped transcript for any video. The first run downloads and compiles the package, which takes about 10 seconds.
```bash
npx -y github:zaynelovecraft/yt-skill-mcp "https://www.youtube.com/watch?v=mMP-BPWsNqA"
```
```text
# I cracked the tech job market (mMP-BPWsNqA)
[0s] So, yeah, basically what's creamy? I
[1s] wanted to talk about how I cheesed my
...
```
Pass a language code as a second argument to pick a caption track: `... <url> es`.
## Use it as an MCP server in Cursor
Add this to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):
```json
{
"mcpServers": {
"yt-skill": {
"command": "npx",
"args": ["-y", "-p", "github:zaynelovecraft/yt-skill-mcp", "yt-skill-mcp-server"]
}
}
}
```
Restart Cursor, then ask the agent something like:
> Pull the transcript for https://youtu.be/mMP-BPWsNqA and turn the main workflow into a skill in `.cursor/skills/`.
### Claude Desktop / Claude Code
The same `command` and `args` work in `claude_desktop_config.json`, or with Claude Code:
```bash
claude mcp add yt-skill -- npx -y -p github:zaynelovecraft/yt-skill-mcp yt-skill-mcp-server
```
## Tools
| Tool | Input | Output |
|------|-------|--------|
| `fetch_youtube_transcript` | `url` (watch URL, `youtu.be` link, or 11-char ID), optional `lang` | JSON with `videoId`, `title`, `segmentCount`, and the `[123s] ...` transcript |
| `compile_cursor_skill` | `skillName`, `description`, `videoId`, `title`, `steps[]` | A `SKILL.md` string with YAML frontmatter, ready to save to `.cursor/skills/<skillName>/SKILL.md` |
## Develop locally
```bash
git clone https://github.com/zaynelovecraft/yt-skill-mcp.git
cd yt-skill-mcp
npm install # also compiles to dist/
node dist/cli.js "https://youtu.be/mMP-BPWsNqA"
node dist/mcp.js # starts the MCP server on stdio
```
## Troubleshooting
- **`No captions available`**: the video has captions turned off. Try another video.
- **Transcript stops working**: YouTube changes its internal API from time to time. Open an issue with the video URL.
## License
MIT
TDQS
Scored across 2 tools
The two tools occupy completely different stages of a pipeline: one retrieves raw transcript data from YouTube, the other formats that data into a Cursor SKILL.md file. There is no overlap in input, action, or output, so an agent cannot mistake one for the other.
Both names follow the same snake_case verb_noun convention (fetch_youtube_transcript, compile_cursor_skill) and each name encodes its source and target format. No mixed casing or inconsistent verb styles.
Two tools is on the thin side, and the surface is essentially a single two-step pipeline with no room for partial operations. The scope is narrow enough that this is defensible, but it sits at the low edge of what feels like a complete toolset.
The core lifecycle (acquire transcript, emit skill file) is fully covered with no dead end between the steps. Minor gaps exist around video discovery/metadata (no listing, search, or playlist handling) and no way to validate or preview output before writing, but these are workarounds an agent can manage.