mcp-youtube

mcp-youtube

Gives MCP clients access to YouTube video transcripts and metadata. It lets AI agents read and summarize video content from a URL.

Category
Visit Server

README

mcp-youtube

An MCP server that turns a YouTube link into something a model can read: the video's transcript, or its metadata. A link is not its contents — an agent handed a YouTube URL cannot summarise the video until the words are in hand. This closes that gap, and only that gap.

Keyless by default: it asks YouTube's own innertube player endpoint — the JSON the app itself boots from — and the caption endpoint it names. With a YOUTUBE_API_KEY set, get_video_info moves onto the official Data API v3 instead, which datacenter egress IPs are not bot-gated out of; transcripts cannot make that move (caption download needs OAuth and video ownership), so get_transcript always rides innertube.

Tools

Tool What it returns
get_transcript The captions as [m:ss] line rows under a small metadata header. Prefers a human-made track over the auto-generated one; language ('en', 'ko', …) narrows, and a miss lists the languages that exist. Bounded at 90,000 characters with the cut reported in the text.
get_video_info Title, channel, duration, publish date, view count, description (capped), and which transcript languages exist.

Both accept a url that is any usual link shape — watch?v=, youtu.be/, shorts/, embed/, live/ — or a bare 11-character video id.

Both wrap their output in an untrusted content header: transcripts and descriptions are third-party text from an address the model chose, and the provenance is stated at the point of use.

Outbound boundary

The server never fetches the caller's URL. It parses a video id out of it and talks only to youtube.com (and googleapis.com when a Data API key is set); even the caption URL — which arrives inside YouTube's own page — is refused if it points anywhere else.

Protocol

MCP over plain HTTP (POST /mcp, JSON-RPC 2.0): initialize, tools/list, tools/call, ping. Stateless — DELETE (session teardown) is a 204, and notifications are accepted and dropped. Implemented directly rather than through an SDK, the same choice mcp-url-fetch made: the surface is four methods, and an SDK whose schema generation shifts underneath is the only dependency that has actually broken a server like this.

GET /health answers 200 {"status":"ok"} for probes.

Configuration

Variable Default Meaning
PORT 3000 Listen port.
MCP_API_KEY unset When set, every call must present it as a bearer token. Unset answers any caller — safe only while nothing routes to the server from outside the cluster, and the startup log says loudly which mode is active.
YOUTUBE_API_KEY unset A YouTube Data API v3 key. When set, get_video_info is answered by the official API instead of innertube — immune to the LOGIN_REQUIRED bot gate datacenter IPs run into. Costs quota: 1 unit for the video, 50 for the caption-language listing, against the free 10,000/day. get_transcript is unaffected either way.

Develop

npm install
npm run dev        # tsx src/server.ts on :3000
npm test           # node --test via tsx
npm run typecheck

Try it:

curl -s localhost:3000/mcp -H 'content-type: application/json' -d '{
  "jsonrpc": "2.0", "id": 1, "method": "tools/call",
  "params": { "name": "get_transcript",
              "arguments": { "url": "https://youtu.be/dQw4w9WgXcQ" } }
}'

Deploy

The image is what ships (see Dockerfile). CI builds it on every pull request and push to main; a v* tag publishes it to ECR + GHCR and then dispatches the released version to the GitOps repository (opspresso/argocd-env-demo), which rolls out the deploy. The intended deployment is a Deployment behind a ClusterIP in the agent-mcps namespace, beside its siblings mcp-url-fetch and mcp-memory.

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