youtube-transcript-mcp

youtube-transcript-mcp

MCP server for YouTubeTranscript.dev — extract transcripts, manage history, and power AI assistants with YouTube content.

Category
访问服务器

README

<p align="center"> <img src="https://youtubetranscript.dev/logo.svg" alt="YouTubeTranscript.dev" width="80" /> </p>

<h1 align="center">YouTube Transcript MCP Server</h1>

<p align="center"> <strong>MCP server for YouTubeTranscript.dev — extract transcripts, manage history, and power AI assistants with YouTube content.</strong> </p>

<p align="center"> <a href="https://youtubetranscript.dev">Website</a> • <a href="https://mcp.youtubetranscript.dev">Hosted MCP</a> • <a href="https://youtubetranscript.dev/api-docs">API Docs</a> • <a href="https://youtubetranscript.dev/pricing">Pricing</a> • <a href="#quick-start">Quick Start</a> • <a href="#tools-reference">Tools</a> </p>

<p align="center"> <a href="https://youtubetranscript.dev"><img src="https://img.shields.io/badge/API-v2-brightgreen" alt="API Version" /></a> <a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License" /></a> </p>


Why This MCP Server?

Connect Claude, Cursor, Windsurf, or any MCP client to YouTubeTranscript.dev — no custom code. Your AI assistant gets tools to extract transcripts, list history, and manage content at scale.

  • Fast caption extraction — Manual or auto captions, returns in seconds
  • 📚 Transcript history — List, search, and paginate your transcripts
  • 🎯 Full control — Get stats, delete transcripts, fetch by video ID
  • 🔌 One config — Works with Claude, Cursor, Windsurf, VS Code, Cline
  • 🔒 User-owned keys — API key per connection, no server-side secrets

Get your free API key


Quick Start

1. Get Your API Key

Sign up at youtubetranscript.dev and grab your API key from the Dashboard.

2. Connect Your Client

Connect to https://mcp.youtubetranscript.dev with header x-api-token: YOUR_API_KEY. No local setup required.

See QUICK_TEST.md for step-by-step setup and testing.

Run locally (optional): npm install && npm run build && npm run start:http — then connect to http://localhost:8080.


MCP Connection Settings

Claude Code

claude mcp add --transport http ytscribe https://mcp.youtubetranscript.dev --header "x-api-token: YOUR_API_KEY"

Claude Desktop

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "ytscribe": {
      "url": "https://mcp.youtubetranscript.dev",
      "headers": { "x-api-token": "YOUR_API_KEY" }
    }
  }
}

Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "ytscribe": {
      "url": "https://mcp.youtubetranscript.dev",
      "headers": { "x-api-token": "YOUR_API_KEY" }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "ytscribe": {
      "serverUrl": "https://mcp.youtubetranscript.dev",
      "headers": { "x-api-token": "YOUR_API_KEY" }
    }
  }
}

VS Code + Copilot

settings.json:

{
  "mcp": {
    "servers": {
      "ytscribe": {
        "url": "https://mcp.youtubetranscript.dev",
        "headers": { "x-api-token": "YOUR_API_KEY" }
      }
    }
  }
}

Cline

Add to your Cline MCP config (format may vary by Cline version):

{
  "ytscribe": {
    "url": "https://mcp.youtubetranscript.dev",
    "headers": { "x-api-token": "YOUR_API_KEY" }
  }
}

Replace YOUR_API_KEY with your API key from youtubetranscript.dev/dashboard/account.


Configuration

Server Environment (for deployment)

Variable Description Default
YTSM_BASE_URL Base URL of the API https://youtubetranscript.dev
YTSM_TIMEOUT_MS Request timeout in ms 30000
PORT HTTP server port 8080
DEBUG Enable debug logging false (set true to enable)

Note: The API key is not set in server env for HTTP mode. Users provide it via x-api-token or Authorization: Bearer when connecting. For stdio mode, set YTSM_API_KEY in env.


Tools Reference

Tool Best for Returns
get_stats Credits, transcripts count, plan credits, transcripts_total, plan, rate_limit
transcribe_v2 Create/fetch transcript (fast) Transcript JSON
list_transcripts List user transcripts History list with pagination
get_transcript Get full transcript by video_id Transcript detail
delete_transcript Delete transcript(s) Delete result

get_stats

Credits left, transcripts created, plan, rate limit. No parameters.

transcribe_v2

Fast caption-based transcript (no ASR). Uses manual or auto captions only.

Parameter Required Description
video Yes YouTube URL or 11-character video ID
language No Language tag (e.g. en, en-US)
source No auto (default) or manual
format No { timestamp, paragraphs, words } booleans

list_transcripts

List transcript history for the authenticated user.

Parameter Required Description
search No Search by video id, title, or transcript text
limit No How many to return (default 10)
page No Page number (default 1)
status No all, queued, processing, succeeded, failed
language No Language filter (e.g. en)
include_segments No Include transcript segments in response

get_transcript

Get full transcript by video_id.

Parameter Required Description
video_id Yes YouTube video ID
id No Transcript record id for specific version
language No Language filter
source No auto, manual, or asr
include_timestamps No Include timestamps in response

delete_transcript

Delete transcript records.

Parameter Required Description
ids No* Array of transcript record ids to delete
video_id No* Convenience: delete by video id (resolves id)

*Provide at least one of ids or video_id.


Deployment (Optional)

For production, deploy to a service that supports long-lived connections (e.g. Cloud Run, Railway, Fly.io). Avoid serverless (Vercel, Lambda) for MCP — timeouts and concurrency limits cause issues.

docker build -f Dockerfile.cloudrun -t gcr.io/YOUR_PROJECT/youtube-transcript-mcp .
docker push gcr.io/YOUR_PROJECT/youtube-transcript-mcp
gcloud run deploy youtube-transcript-mcp --image gcr.io/YOUR_PROJECT/youtube-transcript-mcp ...

Stdio (Alternative)

Run as a subprocess instead of HTTP. Required: set YTSM_API_KEY in env (API key is not passed per-request for stdio).

{
  "mcpServers": {
    "ytscribe": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": { "YTSM_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Run from the project directory after npm run build. For globally installed package, use the path to dist/index.js in the package.


Development

npm install
npm run build
npm test
npm run start:http   # Local HTTP server (port 8080)

Quick test all tools (requires YTSM_API_KEY in env):

npm install && npm run build
export YTSM_API_KEY=your_key   # bash/mac
$env:YTSM_API_KEY="your_key"   # PowerShell
npm run test:all

See QUICK_TEST.md for full testing instructions.


Links


License

MIT License — see LICENSE for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选