YouTube Tools MCP Server

MCP数据服务

提供方 n3s-online

数据服务 未标注 API Key 官方维护

Enables AI assistants to search YouTube videos using the official YouTube Data API v3, extract full video transcripts in multiple languages, and store/retrieve video summaries using a local database.

一句话选型结论

按资料字段整理

YouTube Tools MCP Server 属于数据服务类 MCP 服务器,传输方式未标注,API Key,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类数据服务 传输方式未标注 鉴权API Key 部署方式未标注
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 官方维护 核验等级 仅资料核对

工具与能力

数据服务
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

未标注 API Key
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
数据库查询

用自然语言查库、取数,不用手写 SQL。

数据同步与清洗

把多来源数据拉到一处做整理。

报表取数

按口径快速拉出统计结果。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按官方文档接入试跑。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
YouTube Tools MCP Server当前 未标注 未标注 未标注 无 2026-05-17
Memory 9d25f64e 9 未标注 未标注 无 2026-05-17
Getzep MCP 9 stdio · 本地进程 本地部署 有 2026-05-17
anything-llm 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Prisma MCP Server 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Astr Bot 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

数据服务
字段来自项目仓库与公开索引,中文说明由本站标注
提供方n3s-online上游标注的维护方 n3s-online
分类数据服务本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式API Key远程服务建议用最小权限凭据
维护方官方维护核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

11.5 KB
来自项目仓库与上游目录的原文,未做删改

YouTube Tools MCP Server

A powerful Model Context Protocol (MCP) server that enables AI assistants to search YouTube and extract video transcripts. Built with TypeScript and designed for seamless integration with Claude Desktop and other MCP-compatible clients.

🎯 What is this?

This MCP server bridges the gap between AI assistants and YouTube content by providing comprehensive YouTube integration capabilities. It allows you to:

  • Search YouTube videos using the official YouTube Data API v3
  • Extract full transcripts from any YouTube video (when available)
  • Store and retrieve video summaries using a local libsql database
  • Filter search results by date, duration, quality, and more
  • Get timestamped transcript segments for precise referencing
  • Support multiple languages for international content
  • Handle various YouTube URL formats automatically

Perfect for content discovery, analysis, research, accessibility, and AI-powered video content workflows.

✨ Features

  • 🔍 YouTube Video Search: Search YouTube using the official YouTube Data API v3
  • 🎬 YouTube Transcript Extraction: Get complete transcripts from YouTube videos using RapidAPI
  • 💾 Video Summary Storage: Store and retrieve video summaries using local libsql database
  • 🎯 Advanced Search Filters: Filter by date, duration, quality, view count, and more
  • 🔗 Flexible Input Formats: Supports video IDs, full URLs, short URLs, and embed URLs
  • ⚡ Smart Error Handling: Comprehensive error handling with clear, actionable messages
  • 🛠️ MCP Protocol Compliant: Built with the official MCP SDK for maximum compatibility
  • 🔑 Official API Integration: Uses YouTube Data API v3 and RapidAPI for reliable service
  • 💻 CLI Tool Included: Command-line interface for direct transcript extraction

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • Claude Desktop (for usage)
  • YouTube Data API v3 Key (for search functionality)
  • RapidAPI Account (for transcript extraction)

Installation

  1. Clone and install dependencies:bash git clone <repository-url> cd youtube-tools-mcp pnpm install

  2. Set up API Keys:

YouTube Data API v3 (for search):
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable the YouTube Data API v3
- Create credentials (API key)
- Copy your YouTube API key

RapidAPI (for transcripts):
- Go to RapidAPI YouTube Transcripts
- Subscribe to the API (free tier available)
- Copy your RapidAPI key

  1. Configure environment:```bash
    # Create .env file and add your API keys:
    YOUTUBE_API_KEY=your_youtube_api_key_here
    RAPIDAPI_KEY=your_rapidapi_key_here

# Optional: Specify custom database path for video summaries
DATABASE_PATH=./video_summaries.db
```

  1. Build the project:bash pnpm run build

  2. Test your setup:bash node temp/test-rapidapi.js

  3. Configure Claude Desktop:

Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json):json { "mcpServers": { "youtube-tools": { "command": "node", "args": ["/absolute/path/to/youtube-tools-mcp/build/index.js"], "env": { "YOUTUBE_API_KEY": "your_youtube_api_key_here", "RAPIDAPI_KEY": "your_rapidapi_key_here", "DATABASE_PATH": "/absolute/path/to/youtube-tools-mcp/video_summaries.db" } } } }

Important:
- Replace /absolute/path/to/youtube-tools-mcp with your actual project path
- Replace the API keys with your actual keys
- The DATABASE_PATH is optional - if omitted, it defaults to video_summaries.db in the project root

  1. Restart Claude Desktop completely.

  2. Test it out! Try asking Claude:"Get the transcript for this YouTube video: https://www.youtube.com/watch?v=2nkiHeoPTqQ"

💻 CLI Usage

You can also use the included command-line tool:```bash

Basic usage

node cli.js 2nkiHeoPTqQ

With full URL

node cli.js "https://www.youtube.com/watch?v=2nkiHeoPTqQ"

Specify language

node cli.js 2nkiHeoPTqQ --language es

Save to file

node cli.js 2nkiHeoPTqQ --output transcript.txt

JSON format

node cli.js 2nkiHeoPTqQ --json

Hide timestamps

node cli.js 2nkiHeoPTqQ --no-timestamps

Show help

node cli.js --help


## 📖 Usage Examples

Once configured with Claude Desktop, you can use natural language to interact with YouTube:

### Search Examples

**Basic search:**```
"Search YouTube for 'javascript tutorial' videos"

Search with filters:```
"Find recent React tutorials from the last month, ordered by view count"


**Search for specific content:**```
"Search for Python programming videos that are medium length and high definition"

Transcript Examples

Get transcript from URL:```
"Get the transcript for this YouTube video: https://www.youtube.com/watch?v=2nkiHeoPTqQ"


**Use just the video ID:**```
"Extract transcript from YouTube video ID 2nkiHeoPTqQ"

Specify language:```
"Get the Spanish transcript for this video: https://www.youtube.com/watch?v=example"


**Works with different URL formats:**
- Full URL: `https://www.youtube.com/watch?v=dQw4w9WgXcQ`
- Short URL: `https://youtu.be/dQw4w9WgXcQ`
- Embed URL: `https://www.youtube.com/embed/dQw4w9WgXcQ`
- Video ID: `dQw4w9WgXcQ`

### Video Summary Examples

**Store a video summary:**```
"Store this summary for video dQw4w9WgXcQ: This is a classic music video featuring Rick Astley's hit song Never Gonna Give You Up."

Retrieve a stored summary:```
"Get the stored summary for video ID dQw4w9WgXcQ"


**Check if a summary exists:**```
"Do we have a summary stored for this YouTube video: https://www.youtube.com/watch?v=dQw4w9WgXcQ"

🔧 Available Tools

search_youtube

Search for YouTube videos using the official YouTube Data API v3.

Parameters:
- query (required): Search query for YouTube videos
- maxResults (optional): Maximum number of results to return (1-50, default: 10)
- order (optional): Order of results - "relevance", "date", "rating", "viewCount", "title" (default: "relevance")
- publishedAfter (optional): Return videos published after this date (RFC 3339 format)
- publishedBefore (optional): Return videos published before this date (RFC 3339 format)
- videoDuration (optional): Filter by duration - "any", "short", "medium", "long" (default: "any")
- videoDefinition (optional): Filter by definition - "any", "high", "standard" (default: "any")

Sample Output:```
YouTube Search Results for: "javascript tutorial"
📊 Total Results Available: 1000000
📋 Results Returned: 3
🔄 Ordered by: relevance

--- SEARCH RESULTS ---
1. JavaScript Tutorial for Beginners
📺 Channel: Programming with Mosh
📅 Published: 1/15/2023
🔗 URL: https://www.youtube.com/watch?v=W6NZfCO5SIk
📝 Video ID: W6NZfCO5SIk
📄 Description: Learn JavaScript fundamentals in this comprehensive tutorial...

  1. Modern JavaScript Course
    📺 Channel: The Net Ninja
    📅 Published: 3/22/2023
    🔗 URL: https://www.youtube.com/watch?v=iWOYAxlnaww
    📝 Video ID: iWOYAxlnaww
    📄 Description: Master modern JavaScript with this complete course...

### `get_youtube_transcript`

Extract complete transcripts from YouTube videos using RapidAPI.

**Parameters:**
- `videoId` (required): YouTube video ID or any YouTube URL format
- `language` (optional): Language code for transcript (e.g., "en", "es", "fr", default: "en")

**Sample Output:**```
YouTube Transcript for Video ID: W6NZfCO5SIk
📊 Total Segments: 245
⏱️ Duration: 1:23:45

--- TRANSCRIPT ---
[0:00] Welcome to this JavaScript tutorial for beginners
[0:05] In this video we're going to learn the fundamentals
[0:12] Let's start with variables and data types
...

storeVideoSummary

Store or update a video summary in the local database.

Parameters:
- videoId (required): YouTube video ID
- summary (required): Video summary text to store

Sample Output:```
Successfully stored summary for video ID: W6NZfCO5SIk


### `fetchExistingVideoSummary`

Fetch an existing video summary from the local database.

**Parameters:**
- `videoId` (required): YouTube video ID

**Sample Output:**```
Summary for video ID: W6NZfCO5SIk

This is a comprehensive JavaScript tutorial covering fundamentals like variables, functions, and DOM manipulation. Perfect for beginners looking to learn modern JavaScript development.

Note: Returns "No summary found" if no summary exists for the given video ID.

🛠️ Development

Available Scripts

  • pnpm run build - Compile TypeScript to JavaScript
  • pnpm run dev - Watch mode for development (auto-rebuild on changes)
  • pnpm start - Run the compiled server directly
  • pnpm run test - Test YouTube transcript functionality
  • pnpm run test-mcp - Test MCP server functionality
  • pnpm run test-search - Test YouTube search API functionality
  • pnpm run test-mcp-search - Test MCP server with search functionality

Project Structure```

youtube-tools-mcp/
├── src/
│ ├── index.ts # Main MCP server implementation
│ └── database.ts # Database service for video summaries
├── build/ # Compiled JavaScript output
├── docs/ # Documentation and examples
├── temp/ # Test files and utilities
├── video_summaries.db # Local libsql database (auto-created)
├── package.json # Dependencies and scripts
├── .env.example # Environment variables template
└── README.md # This file


### Testing

Test the server functionality:```bash
# Test YouTube transcript extraction
pnpm run test

# Test YouTube search API
pnpm run test-search

# Test MCP server protocol
pnpm run test-mcp

# Test MCP server with search functionality
pnpm run test-mcp-search

# Test database functionality (video summary storage/retrieval)
node temp/test-database-functionality.js

# Manual server test (runs until Ctrl+C)
pnpm start

⚠️ Error Handling

The server provides clear error messages for common scenarios:

Error Cause Solution
"Transcript is disabled" Video creator disabled transcripts Try a different video
"No transcript found" No transcript in requested language Try "en" or check available languages
"Video unavailable" Private, deleted, or restricted video Verify the video is public and accessible
"Invalid video ID" Malformed URL or ID Check the YouTube URL format

🔧 Troubleshooting

Server not appearing in Claude Desktop?
1. Verify the absolute path in your config is correct
2. Ensure the project built successfully (pnpm run build)
3. Restart Claude Desktop completely
4. Check Claude's logs: ~/Library/Logs/Claude/mcp*.log

Tool calls failing?
1. Test the server manually: pnpm start
2. Verify the video has transcripts available
3. Try with a different video
4. Check the video is public and not region-restricted

📦 Dependencies

  • @modelcontextprotocol/sdk - Official MCP SDK for TypeScript
  • @libsql/client - libsql client for local database storage
  • axios - HTTP client for API requests

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

📄 License

MIT License - see LICENSE file for details.


Built with ❤️ using the Model Context Protocol

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
YouTube Tools MCP Server 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

YouTube Tools MCP Server 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

YouTube Tools MCP Server 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

YouTube Tools MCP Server 需要 API Key 吗?

资料标注需要API Key认证,使用前准备好对应凭据,并按最小权限配置。

YouTube Tools MCP Server 能提供哪些能力?

资料显示能力标签包括 API密钥、数据分析、API集成。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。