MCP server for downloading and extracting content from Bilibili videos
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"bilibili-video-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Bilibili Video MCP Server 一个用于从 Bilibili 视频中提取内容的 MCP (Model Context Protocol) 服务器。 ## 功能特性 - 🎬 **视频下载**: 使用 you-get 下载 Bilibili 视频 - 📝 **字幕提取**: 智能提取和处理视频弹幕字幕 - 🎙️ **音频转文本**: 使用 ASR API 从音频中提取文案 - 🤖 **智能分析**: 使用大模型进行内容分析和总结 - 🔄 **自动清理**: 自动清理临时文件 ## 安装 ### 从 PyPI 安装 ```bash pip install bilibili-video-mcp ``` ### 从源代码安装 ```bash git clone https://github.com/yzfly/bilibili-video-mcp.git cd bilibili-video-mcp pip install -e . ``` ## 系统依赖 确保系统已安装以下依赖: 1. **FFmpeg**: 用于音频处理 ```bash # macOS brew install ffmpeg # Ubuntu/Debian sudo apt update && sudo apt install ffmpeg # Windows # 下载 FFmpeg 并添加到 PATH ``` 2. **you-get**: 用于下载 Bilibili 视频 ```bash pip install you-get ``` ## 配置 ### 环境变量 设置以下环境变量: - `AI_API_KEY`: SiliconFlow API 密钥(用于 ASR 和大模型调用) ### Claude Desktop 配置 在 Claude Desktop 的配置文件中添加: ```json { "mcpServers": { "bilibili-video-mcp": { "command": "bilibili-video-mcp-server", "env": { "AI_API_KEY": "your-siliconflow-api-key-here" } } } } ``` 或者使用 uvx: ```json { "mcpServers": { "bilibili-video-mcp": { "command": "uvx", "args": ["bilibili-video-mcp"], "env": { "AI_API_KEY": "your-siliconflow-api-key-here" } } } } ``` ## 获取 API 密钥 1. 访问 [SiliconFlow](https://cloud.siliconflow.cn/i/TxUlXG3u) 2. 注册账号并获取 API 密钥 3. 将密钥设置为环境变量 `AI_API_KEY` ## 使用方法 ### 可用工具 1. **download_bilibili_video_info** - 下载视频并获取基本信息 - 参数:`video_url` (Bilibili 视频链接) 2. **extract_bilibili_subtitles** - 提取并智能处理字幕内容 - 参数:`video_url` (Bilibili 视频链接) 3. **extract_bilibili_audio_text** - 从音频提取文案 - 参数:`video_url`,可选参数:`asr_api_base_url`,`asr_model` 4. **extract_bilibili_complete_content** - 完整内容提取和分析(推荐) - 参数:`video_url`,可选参数:`asr_api_base_url`,`asr_model`,`llm_model` ### 使用示例 ```python # 完整内容提取 result = extract_bilibili_complete_content("https://www.bilibili.com/video/BV1xx411c7mu") # 仅提取字幕 subtitles = extract_bilibili_subtitles(…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.