Voice Transcriber MCP Server

io.github.fgasparetto由 GitHub 账号 fgasparetto 发布v2.0.1更新于 Oct 24, 2026

MCP server for transcribing Google Chat voice messages using Groq Whisper API

已验证STDIO仅桌面沟通与协作媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,借助 Groq Whisper API 将 Google Chat 语音消息和本地音频文件转写为文字。

可以做什么
  • 按消息链接转写 Google Chat 语音消息,使用 Google Chat OAuth2 凭据获取消息并下载音频附件
  • 转写本地音频文件,支持 mp3、m4a、wav、ogg、flac、webm、aac 等格式
  • 调用云端 whisper-large-v3 模型返回转写文本,可附带语言提示
适用场景
适合在 Claude Code 中处理 Google Chat 时,把语音消息变成可读文字而无需逐条收听;也适合在没有本地 GPU 的情况下快速转写本地音频文件。
运行要求
以 stdio 本地进程运行,需用 uv(Python 包管理器)从克隆的仓库启动。需要 GROQ_API_KEY 中的 Groq API 密钥,以及 Google Chat OAuth2 的 token.json,路径可通过 GCHAT_TOKEN_PATH 指定;该令牌需具备 chat.messages.readonly 与 chat.spaces.readonly 权限范围。需能访问 Google Chat 与 Groq 网络服务。
安装前请注意
服务器会持有 Groq API 密钥和 Google Chat OAuth2 令牌,需妥善保管。音频内容会上传到 Groq 云端接口进行转写,并通过你的账号读取 Google Chat 消息与附件。README 说明遇到音频附件时会自动转写、不请求确认。Groq 限制单个文件不超过 25MB。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Voice Transcriber MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Voice Transcriber MCP Server

MCP server that automatically transcribes Google Chat voice messages using Groq Whisper API (whisper-large-v3). No local GPU needed.

When Claude Code encounters an audio attachment in a Google Chat message, this server transcribes it immediately without asking for confirmation.

Features

  • Transcribe Google Chat voice messages by URL (automatic)
  • Transcribe local audio files (mp3, m4a, wav, ogg, flac, webm, aac)
  • Uses Groq Whisper API (free tier, fast, cloud-based)
  • Reuses Google Chat OAuth2 credentials (no separate Google auth needed)

Prerequisites

1. Groq API Key (free)

  1. Go to console.groq.com/keys
  2. Create a free account
  3. Generate an API key
  4. You'll set this as GROQ_API_KEY in your MCP config (see below)

2. Google Chat OAuth2 Token

This server needs a valid Google Chat OAuth2 token (token.json) to fetch messages and download audio attachments.

If you already use a Google Chat MCP server (e.g. multi-chat-mcp-server), the token is already available. Default path:

~/tools/multi-chat-mcp-server/src/providers/google_chat/token.json

If your token is in a different location, set the GCHAT_TOKEN_PATH environment variable.

If you don't have a Google Chat token yet, you need to:

  1. Create a Google Cloud project with Chat API enabled
  2. Create OAuth2 credentials (Desktop app)
  3. Run the OAuth flow to generate token.json with scopes:
    • https://www.googleapis.com/auth/chat.messages.readonly
    • https://www.googleapis.com/auth/chat.spaces.readonly

3. uv (Python package manager)

OSCommand
Linux / macOS / WSLcurl -LsSf https://astral.sh/uv/install.sh | sh
Windowspowershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Verify: uv --version

Installation

bash
git clone https://github.com/fgasparetto/voice-transcriber-mcp.gitcd voice-transcriber-mcpuv sync

Configuration

Add to your Claude Code MCP config (.mcp.json or ~/.claude.json):

json
{  "mcpServers": {    "voice-transcriber": {      "type": "stdio",      "command": "uv",      "args": [        "--directory", "/path/to/voice-transcriber-mcp",        "run", "python", "server.py"      ],      "env": {        "GROQ_API_KEY": "gsk_your_groq_api_key_here"      }    }  }}

Replace:

  • /path/to/voice-transcriber-mcp with the actual clone directory
  • gsk_your_groq_api_key_here with your Groq API key

Environment Variables

VariableRequiredDefaultDescription
GROQ_API_KEYYes—Groq API key (get one free)
GCHAT_TOKEN_PATHNo~/tools/multi-chat-mcp-server/src/providers/google_chat/token.jsonPath to Google Chat OAuth2 token

Tools

transcribe_voice_message

Transcribe a voice message from Google Chat. Called automatically by Claude when it encounters an audio attachment.

transcribe_voice_message(  message_url="https://chat.google.com/dm/SPACE/THREAD/MSG",  language="it")

transcribe_audio_file

Transcribe a local audio file.

transcribe_audio_file(  file_path="/tmp/recording.m4a",  language="it")

Platform Notes

Linux

No additional steps. Ensure uv is in your PATH.

macOS

  • If uv not found after install: export PATH="$HOME/.local/bin:$PATH"

Windows (WSL)

Claude Code runs inside WSL. All paths must be Linux-style:

  • Token path: /home/USER/tools/... (NOT /mnt/c/...)
  • If uv not found: source ~/.bashrc or add ~/.local/bin to PATH

Troubleshooting

ProblemSolution
GROQ_API_KEY not setAdd it to the env section in your MCP config
Google Chat token not foundSet GCHAT_TOKEN_PATH or authenticate your Google Chat MCP
Groq API error 413Audio file too large (Groq limit: 25MB)
uv: command not foundInstall uv (see Prerequisites)

How It Works

Claude Code → MCP tool call → server.py  1. Parse Google Chat URL  2. Fetch message via Google Chat API (OAuth2 token)  3. Download audio attachment via media API  4. Send to Groq Whisper API (whisper-large-v3)  5. Return transcribed text

License

MIT

来源:README.md,提交 da30b55

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分