MCP服务:从抖音分享链接提取音频、进行语音识别并整理对话内容
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":"douyin-summary-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.
# 抖音语音识别MCP服务 这是一个MCP(Model Context Protocol)服务,用于从抖音分享链接中提取音频、进行语音识别,并使用AI大模型整理对话内容。 ## 功能特性 - 解析抖音分享文本,自动提取短链接 - 通过RapidAPI获取抖音视频的MP3音频地址 - 使用阿里云通义千问语音识别模型进行音频转文字 - 使用阿里千问大模型整理对话内容,识别说话人角色 - 支持异步任务处理和自动轮询 - 返回结构化的对话JSON数组 ## 项目结构 ``` douyin-summary-mcp/ ├── src/ │ ├── __init__.py │ ├── douyin_parser.py # 解析抖音分享文本,提取短链接 │ ├── rapidapi_client.py # RapidAPI客户端,获取MP3地址 │ ├── aliyun_asr.py # 阿里云语音识别客户端 │ ├── qwen_client.py # 阿里千问大模型客户端,整理对话内容 │ ├── mcp_server.py # 命令行入口(旧版) │ └── mcp_protocol_server.py # MCP协议服务器实现 ├── mcp_server.py # MCP服务器启动脚本(主入口) ├── requirements.txt # Python依赖 ├── config.py # 配置文件(API Keys) ├── claude_desktop_config.example.json # Claude Desktop配置示例 ├── MCP_SETUP.md # MCP服务配置指南 └── README.md # 项目说明文档 ``` ## 安装 ### 方式1:通过 pip 安装(推荐) ```bash pip install douyin-summary-mcp ``` 安装后,MCP服务器命令 `douyin-summary-mcp` 将可用。 ### 方式2:从源码安装 #### 1. 克隆项目 ```bash git clone <repository-url> cd douyin-summary-mcp ``` #### 2. 安装依赖 ```bash pip install -r requirements.txt ``` 或者直接安装为开发模式: ```bash pip install -e . ``` ### 3. 配置环境变量 创建 `.env` 文件(参考 `.env.example`): ```bash # RapidAPI配置 RAPIDAPI_KEY=your_rapidapi_key_here # 阿里云配置 DASHSCOPE_API_KEY=your_dashscope_api_key_here ``` **获取API Keys:** - **RapidAPI Key**: 访问 [RapidAPI Douyin API New](https://rapidapi.com/nguyenmanhict-MuTUtGWD7K/api/douyin-api-new),订阅服务并获取API Key - **阿里云DashScope API Key**: 访问 [阿里云DashScope](https://help.aliyun.com/zh/model-studio/get-api-key),获取API Key ## 使用方法 ### 命令行使用 ```bash python3 -m src.mcp_server "7.46 z@G.vs YZZ:/ 08/31 随机进家做菜:叔叔吃了我烧的肉,觉得之前老伴做的不香了!# 抖音美食推荐官 # 随机进家做菜 # 美食 # 红烧肉 # 排骨汤 https://v.douyin.com/ybL9NO9RjKA/ 复制此链接,打开Dou音搜索,直接观看视频!" ``` ### Python代码使用 ```python from src.mcp_server import process_douyin_share share_text = "7.46 z@G.vs YZZ:/ 08/31 随机进家做菜... https://v.douyin.com/ybL9NO9RjKA/ 复制此链接..." …
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.