MCP server that fetches YouTube transcripts for AI agents
Project description
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_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_IDhttps://www.youtube.com/v/VIDEO_IDVIDEO_ID(bare 11-character ID)
Returns:
video_id— the video IDtitle— video titlechannel_name— channel namethumbnail_url— thumbnail URLduration_seconds— video durationpublish_date— publish datetranscript— full transcript textfrom_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00187e0b4d3b00b606758fc7cb23b49152306068be85f1ecac71ad1878eab49b
|
|
| MD5 |
35e036a470d698e1617c9967edad1e54
|
|
| BLAKE2b-256 |
35cec4591b557e0b3738a4ec2d6fb169129583154a717f823b73af7e60dcaf0c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7739704e6cc12db1f66536a30efff61f9a280073b210ad6ba1632a02ee94f560
|
|
| MD5 |
255245e59533bffebd39bcc8c4c66988
|
|
| BLAKE2b-256 |
312dd8da2b4eb2c159d7e16048495b76e5258e9216a054376ce3511d100535d2
|