youtube-transcript-mcp

youtube-transcript-mcp

Local MCP server that extracts YouTube video transcripts via a get_transcript tool, no API key required.

Category
Visit Server

README

youtube-transcript-mcp

Servidor MCP local, em stdio, que expõe uma tool get_transcript(url, language?) para extrair a transcrição de um vídeo do YouTube — sem API key, sem depender de infraestrutura de terceiros.

Por que existe

Substitui o servidor remoto de terceiros listado em mcpmarket.com (ergut/youtube-transcript-mcp), cuja conexão via SSE falhava — o endpoint nunca envia o evento endpoint exigido pelo transporte SSE legado do MCP, só uma notificação solta (notifications/initialized), travando o cliente esperando. Este servidor roda inteiramente na sua máquina, sem cache de dados fora dela.

Contrato da tool

get_transcript(url: string, language?: string)
→ {
    videoId, title, channel, url,
    language, availableLanguages,
    transcript: { start: number, text: string }[]
    // start em segundos, precisão original do YouTube (não arredondado)
    // array, não dicionário por timestamp — evita reordenação de chave
    // inteira e colisão quando duas legendas caem no mesmo segundo
  }

Se language for pedido e não existir para aquele vídeo, retorna erro listando availableLanguages em vez de falhar silenciosamente. Aceita tanto o nome de exibição usado pelo YouTube (ex. "Portuguese", "English (auto-generated)") quanto o código ISO (ex. "pt", "en").

A tool só extrai e devolve texto/metadados — não grava nada em disco e não integra com nenhum sistema de memória. O que fazer com o resultado (salvar, processar, indexar) é responsabilidade de quem consome a tool.

Stack

Node + TypeScript, @modelcontextprotocol/sdk (transporte stdio) e youtubei.js para extração sem API key. Sem etapa de build — roda via npx tsx src/index.ts.

Risco conhecido: o endpoint interno de transcrição do YouTube já teve falhas HTTP 400 intermitentes reportadas na lib youtubei.js (LuanRT/YouTube.js#1102), e há discussão em aberto sobre exigência de PoToken para reduzir bloqueio por bot. Sem mitigação implementada por enquanto — se aparecer na prática, trate então (retry, PoToken, etc.).

Setup

git clone <url-deste-repo>
cd youtube-transcript-mcp
npm install

Registro no Claude Code (escopo local, só no projeto onde for usado):

claude mcp add --scope local youtube-transcript -- npx tsx /caminho/para/youtube-transcript-mcp/src/index.ts

Ajuste o caminho para onde você clonou o repositório.

Origem

Extraído de harness-engineering-scaffold — nasceu como parte de um projeto de harness engineering mais amplo, mas é uma ferramenta independente e genérica: qualquer projeto que precise extrair transcrições do YouTube pode usá-la sem depender do resto do scaffold.

Licença

MIT — ver LICENSE. Use, copie, modifique e redistribua livremente.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured