Skip to main content

MCP server that fetches YouTube transcripts for LLM chat apps.

Project description

youtube-transcript-mcp

Transcribe YouTube videos for LLM chat apps via MCP.

Example prompt: Summarize https://www.youtube.com/watch?v=uB9yZenVLzg

Install

Requires uv. Add this to your MCP client's config — works for any MCP-compatible app (Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Zed, …):

{
  "mcpServers": {
    "youtube-transcript": {
      "command": "uvx",
      "args": ["youtube-transcript-mcp-server"]
    }
  }
}

Equivalent one-liner if your client wants a single command:

uvx youtube-transcript-mcp-server

That's it — uvx fetches the package from PyPI on first run and caches it. Restart the client after editing its config.

Tool

  • transcribe(youtube_video_url: str) -> str — fetches the transcript (en/de/es/fr/ru) and prepends an ad-removal instruction for the LLM.

Develop locally

git clone https://github.com/SeanPedersen/youtube-transcript-mcp
cd youtube-transcript-mcp
uv venv && uv pip install -r pyproject.toml && source .venv/bin/activate
python mcp_server.py

Point your MCP client at the local checkout instead of PyPI:

{
  "command": "uv",
  "args": [
    "run", "--with", "fastmcp", "--with", "youtube-transcript-api",
    "fastmcp", "run", "/absolute/path/to/youtube-transcript-mcp/mcp_server.py"
  ]
}

Release

  1. Bump version in pyproject.toml.
  2. Copy .env.example to .env and add your PyPI token.
  3. ./scripts/release.sh — builds and publishes to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube_transcript_mcp_server-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file youtube_transcript_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for youtube_transcript_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83ab1295919cb849f57273a93e64bc9ee16b176827b4af98ce5189620afb894b
MD5 46d368c545f92687ab0d36f999019150
BLAKE2b-256 f78267c7c4dfcb4bd72873b6bfda5e4560fe1102ba2e5d74fd98552d61057313

See more details on using hashes here.

File details

Details for the file youtube_transcript_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for youtube_transcript_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b7723a8ac4bfd52aee653800ca86db085de50425a88c3524426fff83309f9e1
MD5 49b9d26455933580b44c99558d2c90a2
BLAKE2b-256 6d486d4786b7e834b3c5c00cf54da51e84d2c88f5f14e241d6874172c95cd8c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page