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.

Quick Start

Claude Code

claude mcp add tubemcp -- uvx tubemcp

Claude Desktop

Add to your claude_desktop_config.json:

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

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.2.tar.gz (13.8 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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tubemcp-0.1.2.tar.gz
  • Upload date:
  • Size: 13.8 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.2.tar.gz
Algorithm Hash digest
SHA256 0118c3145700a91977668526fd502357f2c08196a1096c8b1e2cb7f5fbf9f2a0
MD5 07aab5b7dd905ed4d9b4b435df66765e
BLAKE2b-256 a127d1b062532978f2f480a5d543664e6fc26e864bdc74b7e3f36009793caea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tubemcp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed72ea438d01503b65546f830cb9ab1c2dadb8624a8f705f95b3ba593e08b2ea
MD5 e18e37f215bdd372b005b187c8eaedf6
BLAKE2b-256 3de5e36c2377067af68c5c582035bc4b1b0873aff406f27eaad71e7dec64abd1

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