Token导航 LogoToken导航TokenDH.com
MCP Audio Transcriber logo
音视频stdio官方级别未说明来源级核验

MCP Audio Transcriber

MCP Server

一个基于Docker的Python工具,通过AssemblyAI的API实现音频文件的JSON转录。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
音频处理命令行工具Python

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

ShreyasTembhare

提供方

ShreyasTembhare

最后核验

2026/5/17 20:22

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python app.py <input_audio> <output_json>

详细介绍

MCP音频收发器

一个Dockered Python工具,通过AssemblyAI的API实现模型上下文协议(MCP)。上传或指向音频文件,并接收结构化的JSON转录。

特性

  • 组装MCP:使用AssemblyAI的REST API的具体MCP实现
  • 命令行界面 (app.py):
  python app.py  
  • 流线型web UI (streamlit_app.py):

- 上传本地文件或粘贴URL - 单击转录 - 预览成绩单并下载JSON

  • Docker支持 实现环境一致性和可移植性

先决条件

  • Python 3.10+
  • AssemblyAI API密钥
  • ffmpeg(用于本地解码,如果使用本地文件)
  • (可选)Docker桌面/引擎
  • (可选)流光灯(pip install streamlit)

🔧 安装

  1. 克隆仓库
   git clone https://github.com/ShreyasTembhare/MCP---Audio-Transcriber.git
   cd MCP---Audio-Transcriber
  1. 创建一个 .env
   ASSEMBLYAI_API_KEY=your_assemblyai_api_key_here
  1. 确保 .gitignore 包含:
   .env
  1. 安装Python依赖项
   pip install --upgrade pip
   pip install -r requirements.txt
  1. 安装ffmpeg

- Ubuntu/Debian: sudo apt update && sudo apt install ffmpeg -y - Windows:从下载https://ffmpeg.org并添加其 bin/ 到你的路径

用法

1.CLI转录

python app.py  
  • ``:AssemblyAI支持的任何文件或URL
  • ``:生成JSON的路径

例子:

python app.py data/input.ogg data/output.json
cat data/output.json

2.流线型Web UI

streamlit run streamlit_app.py
  • 打开http://localhost:8501
  • 上传或输入音频URL
  • 单击转录
  • 下载JSON结果

3.Docker

塑造形象:

docker build -t mcp-transcriber .

运行它(装载数据/文件夹):

docker run --rm \
  -e ASSEMBLYAI_API_KEY="$ASSEMBLYAI_API_KEY" \
  -v "$(pwd)/data:/data" \
  mcp-transcriber:latest \
  /data/input.ogg /data/output.json

然后检查:

ls data/output.json
cat data/output.json

Windows PowerShell:

docker run --rm `
  -e ASSEMBLYAI_API_KEY=$env:ASSEMBLYAI_API_KEY `
  -v "${PWD}\data:/data" `
  mcp-transcriber:latest `
  /data/input.ogg /data/output.json

项目结构

MCP-Audio-Transcriber/
├── app.py               # CLI entrypoint (AssemblyMCP only)
├── mcp.py               # ModelContextProtocol + AssemblyMCP
├── streamlit_app.py     # Streamlit interface
├── requirements.txt     # assemblyai, python-dotenv, streamlit, etc.
├── Dockerfile           # builds the container
├── .gitignore           # ignores .env, __pycache__, etc.
├── LICENSE              # MIT license
└── data/                # sample input and output
    ├── input.ogg
    └── output.json

目录标签

目录标签

音频处理命令行工具Python本地部署JSON转录Docker工具Streamlit界面

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP