Skip to main content

MCP server that fetches YouTube transcripts for AI agents

Project description

License: MIT Python 3.10+

TubeMCP

MCP server that fetches YouTube transcripts for AI agents. Zero config — just install and go.

What is MCP? Model Context Protocol lets AI assistants like Claude call external tools. TubeMCP gives your AI agent the ability to read any YouTube video's transcript — useful for summarization, Q&A, research, and content analysis.

Install

uvx tubemcp

or

pip install tubemcp

Add to Claude Code

claude mcp add tubemcp -- uvx tubemcp

Add to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "tubemcp": {
      "command": "uvx",
      "args": ["tubemcp"]
    }
  }
}

Add to Cursor

Add to your .cursor/mcp.json:

{
  "mcpServers": {
    "tubemcp": {
      "command": "uvx",
      "args": ["tubemcp"]
    }
  }
}

What you get

youtube_get_transcript

Fetch the English transcript and metadata for any YouTube video.

Input: A YouTube URL or video ID in any of these formats:

  • https://www.youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://www.youtube.com/embed/VIDEO_ID
  • https://www.youtube.com/v/VIDEO_ID
  • VIDEO_ID (bare 11-character ID)

Returns:

  • video_id — the video ID
  • title — video title
  • channel_name — channel name
  • thumbnail_url — thumbnail URL
  • duration_seconds — video duration
  • publish_date — publish date
  • transcript — full transcript text
  • from_cache — whether the result was served from cache

Caching

Transcripts are cached locally in ~/.tubemcp/cache.db (SQLite). Subsequent requests for the same video are served instantly from cache.

Requirements

  • Python 3.10+

Development

git clone https://github.com/BlockBenny/tubemcp.git
cd tubemcp
pip install -e ".[dev]"
pytest

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

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

tubemcp-0.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

tubemcp-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file tubemcp-0.1.1.tar.gz.

File metadata

  • Download URL: tubemcp-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for tubemcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 00187e0b4d3b00b606758fc7cb23b49152306068be85f1ecac71ad1878eab49b
MD5 35e036a470d698e1617c9967edad1e54
BLAKE2b-256 35cec4591b557e0b3738a4ec2d6fb169129583154a717f823b73af7e60dcaf0c

See more details on using hashes here.

File details

Details for the file tubemcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tubemcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for tubemcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7739704e6cc12db1f66536a30efff61f9a280073b210ad6ba1632a02ee94f560
MD5 255245e59533bffebd39bcc8c4c66988
BLAKE2b-256 312dd8da2b4eb2c159d7e16048495b76e5258e9216a054376ce3511d100535d2

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