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.0.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.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tubemcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b0838bec85198daa89133fa9748c9cc76a334d700822a939b1e1e02c50535cf0
MD5 f047743f5fc6fa4e6400d85980f00feb
BLAKE2b-256 a419ef8a4b23cb263f5d9af28549701b12aeb215b0d1252f69d860e0a2c46dbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tubemcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f43f1448162ae97c5644f745edd4a3ac1390880843d509e4e7249a89f5b5d8a5
MD5 dde8d2313838ee0d191f91692c9ae9a8
BLAKE2b-256 dfb57ea36a5df4362e071d9455a76bdc46706cd28521fcb45e2eef386c019d9d

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