MCP server for audio transcription via faster-whisper (local) or OpenAI Whisper API
Project description
whisper-transcribe-mcp
MCP server for audio transcription using faster-whisper (local, free, offline) or OpenAI Whisper API (cloud, requires API key). Works with Claude Desktop and Claude Code on macOS, Windows, and Linux.
Prerequisites
macOS
Option A — uv (recommended):
brew install uv
# or
curl -LsSf https://astral.sh/uv/install.sh | sh
Option B — Python:
Python 3.10+ is included in macOS 12.3+. You can also install it with brew install python.
Windows
Option A — uv (recommended):
winget install astral-sh.uv
Or download the installer from astral.sh/uv.
Option B — Python: Download Python 3.10+ from python.org. During installation, check "Add Python to PATH".
No need to install ffmpeg or any compiler — everything is bundled in the package.
Linux
Option A — uv (recommended):
curl -LsSf https://astral.sh/uv/install.sh | sh
Option B — Python:
# Debian/Ubuntu
sudo apt install python3.12 python3.12-venv
# Fedora
sudo dnf install python3.12
# Arch
sudo pacman -S python
No additional system dependencies required.
Installation
Option A — uvx (recommended, no permanent install)
uvx automatically downloads and installs the package in an isolated environment. Only requires uv to be installed.
# Local backend:
uvx "whisper-transcribe-mcp[local]"
# OpenAI backend:
uvx "whisper-transcribe-mcp[openai]"
# Both backends:
uvx "whisper-transcribe-mcp[all]"
Option B — pip
# Local backend:
pip install "whisper-transcribe-mcp[local]"
# OpenAI backend:
pip install "whisper-transcribe-mcp[openai]"
# Both backends:
pip install "whisper-transcribe-mcp[all]"
Use Cases
Case 1 — Local backend only (free, works offline)
Uses faster-whisper to transcribe locally. The model is downloaded from HuggingFace on first use (~74MB for base) and cached.
Install:
pip install "whisper-transcribe-mcp[local]"
Environment variables:
WHISPER_MODEL=base # or tiny, small, medium, large-v3
Case 2 — OpenAI backend only (best accuracy, requires API key)
Uses OpenAI's whisper-1 model. Requires an API key and internet connection. No local model downloads.
Install:
pip install "whisper-transcribe-mcp[openai]"
Environment variables:
OPENAI_API_KEY=sk-...
Case 3 — Both backends (OpenAI if key present, local as fallback)
If OPENAI_API_KEY is set, OpenAI is used automatically. Otherwise falls back to local faster-whisper.
Install:
pip install "whisper-transcribe-mcp[all]"
Configuration
Claude Desktop
Config file location by operating system:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Add the entry inside "mcpServers":
Windows note: Claude Desktop runs in a restricted environment and may not have
uvxin its PATH, and it may use a Python version (e.g. 3.14) for whichctranslate2(a dependency offaster-whisper) does not yet have prebuilt wheels. Two fixes are required:
- Use the full path to
uvx.exeinstead of justuvx. Runwhere.exe uvxin PowerShell to find it (usuallyC:\Users\<YourUser>\.local\bin\uvx.exe).- Force Python 3.12 via the
--python 3.12flag so that a compatible wheel is used.
Case 1 — Local:
macOS / Linux:
{
"mcpServers": {
"whisper-transcribe": {
"command": "uvx",
"args": ["whisper-transcribe-mcp[local]"],
"env": {
"WHISPER_MODEL": "base"
}
}
}
}
Windows:
{
"mcpServers": {
"whisper-transcribe": {
"command": "C:\\Users\\<YourUser>\\.local\\bin\\uvx.exe",
"args": ["--python", "3.12", "whisper-transcribe-mcp[local]"],
"env": {
"WHISPER_MODEL": "base"
}
}
}
}
Case 2 — OpenAI:
macOS / Linux:
{
"mcpServers": {
"whisper-transcribe": {
"command": "uvx",
"args": ["whisper-transcribe-mcp[openai]"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}
Windows:
{
"mcpServers": {
"whisper-transcribe": {
"command": "C:\\Users\\<YourUser>\\.local\\bin\\uvx.exe",
"args": ["--python", "3.12", "whisper-transcribe-mcp[openai]"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}
Case 3 — Both (OpenAI takes priority if key is set):
macOS / Linux:
{
"mcpServers": {
"whisper-transcribe": {
"command": "uvx",
"args": ["whisper-transcribe-mcp[all]"],
"env": {
"OPENAI_API_KEY": "sk-...",
"WHISPER_MODEL": "base"
}
}
}
}
Windows:
{
"mcpServers": {
"whisper-transcribe": {
"command": "C:\\Users\\<YourUser>\\.local\\bin\\uvx.exe",
"args": ["--python", "3.12", "whisper-transcribe-mcp[all]"],
"env": {
"OPENAI_API_KEY": "sk-...",
"WHISPER_MODEL": "base"
}
}
}
}
Restart Claude Desktop after editing the file.
Claude Code
Works the same on macOS, Windows, and Linux. Requires uv installed.
Claude Code config file location:
| OS | Global | Per project |
|---|---|---|
| macOS / Linux | ~/.claude.json |
.claude/settings.json (project root) |
| Windows | C:\Users\<user>\.claude.json |
.claude\settings.json (project root) |
The easiest way to add the server is via the Claude Code CLI, which updates the config file automatically:
# Case 1 — Local:
claude mcp add whisper-transcribe uvx -- "whisper-transcribe-mcp[local]"
# Case 2 — OpenAI:
claude mcp add whisper-transcribe uvx --env OPENAI_API_KEY=sk-... -- "whisper-transcribe-mcp[openai]"
# Case 3 — Both (OpenAI with local fallback):
claude mcp add whisper-transcribe uvx --env OPENAI_API_KEY=sk-... --env WHISPER_MODEL=base -- "whisper-transcribe-mcp[all]"
Windows +
[all]: Add--python 3.12before the package name to avoidctranslate2wheel issues. Edit~/.claude.jsondirectly and use"args": ["--python", "3.12", "whisper-transcribe-mcp[all]"].
To add it globally (available in all projects), use --scope user:
claude mcp add --scope user whisper-transcribe uvx -- "whisper-transcribe-mcp[local]"
Or edit ~/.claude.json directly and add inside "mcpServers":
{
"mcpServers": {
"whisper-transcribe": {
"command": "uvx",
"args": ["whisper-transcribe-mcp[local]"],
"env": {
"WHISPER_MODEL": "base"
}
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
WHISPER_MODEL |
base |
Local model size: tiny, base, small, medium, large-v3 |
OPENAI_API_KEY |
— | If set, activates the OpenAI backend instead of local |
Backend selection and fallback ([all] only)
When installed with [all], the backend is chosen at startup:
OPENAI_API_KEYset → OpenAI is used. If the API call fails at runtime (network error, invalid key, quota exceeded), the server automatically falls back to localfaster-whisperand includes a"fallback_reason"field in the response.OPENAI_API_KEYnot set → localfaster-whisperis used directly, no fallback attempted.
Available Tools
transcribe_file
Transcribes an audio file by path (mp3, wav, m4a, ogg, flac, webm, etc.).
Parameters:
file_path(required): Absolute path to the audio filelanguage(optional): Language code (es,en,fr, etc.). Auto-detected if not provided.model_size(optional): Local model size. Ignored with the OpenAI backend.post_process(optional, defaultfalse): Iftrue, passes the transcription through GPT-4.1 to fix spelling, grammar, and punctuation. Requires theopenaipackage ([openai]or[all]).post_process_prompt(optional): Custom system prompt for GPT post-processing. Use it to provide domain-specific context, proper nouns, or product names that Whisper may have misspelled. Falls back to a generic correction prompt if not provided.
Response (without post-processing):
{
"text": "Full transcription...",
"language": "en",
"language_probability": 0.99,
"segments": [
{ "start": 0.0, "end": 4.2, "text": "First segment..." }
],
"backend": "local",
"model": "base"
}
Response (with post_process: true):
{
"text": "Corrected transcription...",
"raw_text": "Original transcription from Whisper...",
"post_process_model": "gpt-4.1",
"language": "en",
"language_probability": 0.99,
"segments": [...],
"backend": "local",
"model": "base"
}
If post-processing fails, text retains the original transcription and a post_process_error field is added.
transcribe_base64
Transcribes audio provided as a base64-encoded string. Useful for programmatic integrations.
Parameters:
audio_base64(required): Base64-encoded audio dataextension(optional, defaultmp3): File extension (mp3,wav,ogg, etc.)language(optional): Language codemodel_size(optional): Local model sizepost_process(optional, defaultfalse): Same as intranscribe_file.post_process_prompt(optional): Same as intranscribe_file.
list_models
Shows the active backend configuration, available local models, and the GPT model used for post-processing.
Local Model Sizes
| Model | Size | Relative Speed | Notes |
|---|---|---|---|
tiny |
39 MB | ~32x | Fastest, least accurate |
base |
74 MB | ~16x | Good balance (default) |
small |
244 MB | ~6x | Better accuracy |
medium |
769 MB | ~2x | High accuracy |
large-v3 |
1.5 GB | ~1x | Best accuracy, slowest |
Models are downloaded automatically from HuggingFace on first use and cached locally.
Troubleshooting
MCP not loading in Claude Desktop on Windows
Symptom: The server fails to start with a dependency resolution error like:
ctranslate2>=4.6.1 has no wheels with a matching platform tag (e.g., `win32`)
hint: You require CPython 3.14 (`cp314`), but we only found wheels for `ctranslate2` with: `cp39`, `cp310`, `cp311`, `cp312`, `cp313`
Cause: Two issues combined:
- Claude Desktop does not include the user's local
binin its PATH, souvxmust be referenced by full path. - Claude Desktop's
uvxmay pick a Python version (e.g. 3.14) for whichctranslate2— a native dependency offaster-whisper— does not yet have prebuilt wheels for Windows.
Fix: Use the full path to uvx.exe and force Python 3.12 explicitly:
"whisper-transcribe": {
"command": "C:\\Users\\<YourUser>\\.local\\bin\\uvx.exe",
"args": ["--python", "3.12", "whisper-transcribe-mcp[local]"],
"env": { "WHISPER_MODEL": "base" }
}
To find your exact uvx.exe path, run in PowerShell:
where.exe uvx
Transcribing audio files in Claude Desktop
Symptom: Claude Desktop fails to transcribe an uploaded audio file. It may attempt to read the file as base64 and pass it to transcribe_base64, which then fails or hangs for files larger than ~50 KB.
Cause: Claude Desktop runs in a sandboxed Linux container. When you upload a file using the attachment button, it is stored at a path like /mnt/user-data/uploads/audio.mp3 — inside the container. The MCP server runs on your Windows machine and has no access to that container path. Claude's fallback of base64-encoding the file and passing it to transcribe_base64 fails in practice because even a small audio file produces hundreds of kilobytes of base64 text, which overflows the context window before the tool call can be made.
Fix: Do not use the attachment button to upload audio files. Instead, place the file anywhere on your Windows filesystem and reference its path directly in the message:
"Transcribe the file at
C:\Users\YourUser\Downloads\audio.mp3"
The MCP server will read the file directly from Windows and send it to the transcription backend. This works for files of any size within the Whisper API limit (25 MB).
License
MIT — see LICENSE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whisper_transcribe_mcp-1.1.1.tar.gz.
File metadata
- Download URL: whisper_transcribe_mcp-1.1.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
370630b32ade0253a0a7e20aa4e01a999d09b3302ecf7741dac28581ef599b5b
|
|
| MD5 |
14ad83e675e72c447451dae7db7b6d85
|
|
| BLAKE2b-256 |
5f5ac836f049fb1dbfcf772b91350f791dccd75ade715b951f6fbf41769fcf7c
|
Provenance
The following attestation bundles were made for whisper_transcribe_mcp-1.1.1.tar.gz:
Publisher:
publish.yml on ZahiriNatZuke/whisper-transcribe-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whisper_transcribe_mcp-1.1.1.tar.gz -
Subject digest:
370630b32ade0253a0a7e20aa4e01a999d09b3302ecf7741dac28581ef599b5b - Sigstore transparency entry: 1552068351
- Sigstore integration time:
-
Permalink:
ZahiriNatZuke/whisper-transcribe-mcp@dc1b2347093d4da43ddc2372fc2511ec558e7d5f -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/ZahiriNatZuke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dc1b2347093d4da43ddc2372fc2511ec558e7d5f -
Trigger Event:
release
-
Statement type:
File details
Details for the file whisper_transcribe_mcp-1.1.1-py3-none-any.whl.
File metadata
- Download URL: whisper_transcribe_mcp-1.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cd27361219666f35ad86760c430fc118d6f7fb9d212aa99dcc712f78aa06f4f
|
|
| MD5 |
9f992de3e43b419429fa21cf186cad09
|
|
| BLAKE2b-256 |
e66d9eecb247a7356b629a0e88676b972175243cfba1474f5c7921172d97fb94
|
Provenance
The following attestation bundles were made for whisper_transcribe_mcp-1.1.1-py3-none-any.whl:
Publisher:
publish.yml on ZahiriNatZuke/whisper-transcribe-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whisper_transcribe_mcp-1.1.1-py3-none-any.whl -
Subject digest:
3cd27361219666f35ad86760c430fc118d6f7fb9d212aa99dcc712f78aa06f4f - Sigstore transparency entry: 1552068415
- Sigstore integration time:
-
Permalink:
ZahiriNatZuke/whisper-transcribe-mcp@dc1b2347093d4da43ddc2372fc2511ec558e7d5f -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/ZahiriNatZuke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dc1b2347093d4da43ddc2372fc2511ec558e7d5f -
Trigger Event:
release
-
Statement type: