About
Douyin Video Text Extractor downloads watermark-free videos from Douyin and converts video audio into text using AI speech recognition. It processes Douyin share links to extract content and transcribe spoken dialogue with configurable transcription services. Key features: - Download watermark-free videos from Douyin share links - Extract audio and transcribe to text using AI speech recognition APIs - Support for custom transcription endpoints (defaults to SiliconFlow API with SenseVoiceSmall model) - Parse video metadata and information without downloading full video - Automatic cleanup of temporary processing files to save disk space - Compatible with FunAudioLLM/SenseVoiceSmall and other OpenAI-compatible transcription models
README
抖音无水印视频文本提取 MCP 服务器
[](https://badge.fury.io/py/douyin-mcp-server) [](https://pypi.org/project/douyin-mcp-server/)
一个基于 Model Context Protocol (MCP) 的服务器,可以从抖音分享链接下载无水印视频,提取音频并转换为文本。
功能特性
安装
使用 uvx 安装(推荐)
uvx douyin-mcp-server
使用 pip 安装
pip install douyin-mcp-server
使用方法
1. 启动服务器
douyin-mcp-server
2. 在Claude Desktop中配置
在你的 claude_desktop_config.json 中添加:
{
"mcpServers": {
"douyin-mcp": {
"command": "uvx",
"args": ["douyin-mcp-server"],
"env": {
"DOUYIN_API_KEY": "your-api-key-here"
}
}
}
}
3. 使用MCP工具
#### 获取无水印下载链接
使用 get_douyin_download_link 工具:
# 在Claude中使用,无需API密钥
get_douyin_download_link("https://v.douyin.com/xxx")
#### 提取视频文本
使用 extract_douyin_text 工具(需要设置环境变量 DOUYIN_API_KEY):
# 在Claude中使用
extract_douyin_text("https://v.douyin.com/xxx")
#### 解析视频信息
使用 parse_douyin_video_info 工具:
parse_douyin_video_info("https://v.douyin.com/xxx")
API 配置
默认配置
服务器默认使用 SiliconFlow API:
https://api.siliconflow.cn/v1/audio/transcriptionsFunAudioLLM/SenseVoiceSmall自定义配置
你可以自定义API配置:
extract_douyin_text(
share_link="your-douyin-link",
api_base_url="https://your-custom-api.com/transcriptions",
model="your-custom-model"
)
环境变量配置
在Claude Desktop的配置文件中设置环境变量:
{
"mcpServers": {
"douyin-mcp": {
"command": "uvx",
"args": ["douyin-mcp-server"],
"env": {
"DOUYIN_API_KEY": "sk-your-api-key-here"
}
}
}
}
工具说明
get_douyin_download_link
获取抖音视频的无水印下载链接,无需API密钥。
参数:
share_link: 抖音分享链接或包含链接的文本返回:
extract_douyin_text
完整的文本提取工具,执行以下步骤: 1. 解析抖音分享链接 2. 下载无水印视频 3. 提取音频 4. 转换音频为文本 5. 清理临时文件
参数:
share_link: 抖音分享链接或包含链接的文本api_base_url: API基础URL(可选)model: 语音识别模型(可选)环境变量:
DOUYIN_API_KEY: 语音识别API密钥(必需)parse_douyin_video_info
仅解析视频基本信息,不下载视频。
参数:
share_link: 抖音分享链接资源访问
douyin://video/{video_id}: 通过视频ID获取详细信息依赖要求
安装 ffmpeg
macOS
brew install ffmpeg
Ubuntu/Debian
sudo apt update
sudo apt install ffmpeg
Windows
下载并安装 ffmpeg开发
本地开发
git clone https://github.com/yzfly/douyin-mcp-server.git
cd douyin-mcp-server
pip install -e .
运行测试
python -m douyin_mcp_server.server
注意事项
DOUYIN_API_KEY⚠️ 免责声明
在使用本项目的代码和功能之前,请您认真考虑并接受以上免责声明。如果您对上述声明有任何疑问或不同意,请不要使用本项目的代码和功能。如果您使用了本项目的代码和功能,则视为您已完全理解并接受上述免责声明,并自愿承担使用本项目的一切风险和后果。
许可证
MIT License
作者
贡献
欢迎提交 Issue 和 Pull Request!
更新日志
v1.0.0
v1.1.0
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support