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)
- Go to console.groq.com/keys
- Create a free account
- Generate an API key
- You'll set this as
GROQ_API_KEYin 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:
- Create a Google Cloud project with Chat API enabled
- Create OAuth2 credentials (Desktop app)
- Run the OAuth flow to generate
token.jsonwith scopes:https://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.spaces.readonly
3. uv (Python package manager)
| OS | Command |
|---|---|
| Linux / macOS / WSL | curl -LsSf https://astral.sh/uv/install.sh | sh |
| Windows | powershell -c "irm https://astral.sh/uv/install.ps1 | iex" |
Verify: uv --version
Installation
git clone https://github.com/fgasparetto/voice-transcriber-mcp.git
cd voice-transcriber-mcp
uv sync
Configuration
Add to your Claude Code MCP config (.mcp.json or ~/.claude.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-mcpwith the actual clone directorygsk_your_groq_api_key_herewith your Groq API key
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GROQ_API_KEY |
Yes | — | Groq API key (get one free) |
GCHAT_TOKEN_PATH |
No | ~/tools/multi-chat-mcp-server/src/providers/google_chat/token.json |
Path 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
uvnot 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
uvnot found:source ~/.bashrcor add~/.local/binto PATH
Troubleshooting
| Problem | Solution |
|---|---|
GROQ_API_KEY not set |
Add it to the env section in your MCP config |
Google Chat token not found |
Set GCHAT_TOKEN_PATH or authenticate your Google Chat MCP |
Groq API error 413 |
Audio file too large (Groq limit: 25MB) |
uv: command not found |
Install 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
Metadata
Release files for voice-transcriber-mcp 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| voice_transcriber_mcp-2.1.0.tar.gz | 64.2 kB | Without provenance | Details for voice_transcriber_mcp-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| voice_transcriber_mcp-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for voice_transcriber_mcp-2.1.0-py3-none-any.whl |
Total release size: 135.5 kB
Release files / voice_transcriber_mcp-2.1.0.tar.gz
| Download URL | voice_transcriber_mcp-2.1.0.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d3cd688f12094469f5208893df89bbb27d2d6cd29a5c08cd94035c3ecca5c98
|
|
BLAKE2b-256 checksum How to use checksums |
c9453e8a248f804571b28ec3a87951559385624649f0799a62e0dad559e3c3fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / voice_transcriber_mcp-2.1.0-py3-none-any.whl
| Download URL | voice_transcriber_mcp-2.1.0-py3-none-any.whl |
|---|---|
| Size | 71.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ef75032b83be94e4707fbfc7f89bfa18c38be0cc40bc4c6c455dad1621b5a15
|
|
BLAKE2b-256 checksum How to use checksums |
40aa9458859404b10daa783139f966f91bc62a9195c7047fef70090a79216347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for voice-transcriber-mcp 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.