Local MCP server exposing MacWhisper transcription to Claude Desktop.
Project description
macwhisper-mcp-server
Local MCP server that connects MacWhisper to Claude Desktop.
What it does: Drop an audio file on your Desktop, then ask Claude to transcribe it, summarise it, or pull out action items — in one step. MacWhisper does the transcription on your Mac; Claude does the thinking. Nothing leaves your machine. No cloud APIs. No data ever leaves your Mac.
Audio file → MacWhisper CLI → MCP server → Claude Desktop
Requirements
- macOS (MacWhisper is macOS-only)
- MacWhisper — installed, licensed, CLI enabled in Settings
- Python 3.13.x via pyenv
- Claude Desktop
Install
git clone https://github.com/docdyhr/macwhisper-mcp-server.git
cd macwhisper-mcp-server
pyenv install 3.13.13 # skip if already installed
pyenv local 3.13.13
python -m venv .venv
source .venv/bin/activate
pip install -e .
Verify the MacWhisper CLI is reachable:
/Applications/MacWhisper.app/Contents/MacOS/mw --help
If you get "command not found": open MacWhisper → Settings → enable CLI.
Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json and add:
{
"mcpServers": {
"macwhisper": {
"command": "/Users/<you>/macwhisper-mcp-server/.venv/bin/macwhisper-mcp",
"args": [],
"env": {
"MACWHISPER_ALLOWED_PATHS": "/Users/<you>/Desktop:/Users/<you>/Downloads"
}
}
}
}
Replace <you> with your macOS username. Restart Claude Desktop.
Verify it works
In Claude Desktop, ask:
Transcribe ~/Desktop/memo.m4a
You should see a transcribe_audio tool call appear, followed by the transcript.
Available tools
| Tool | Description |
|---|---|
transcribe_audio(path, model?) |
Transcribe an audio file and return the transcript as plain text |
cancel_transcription() |
Cancel the currently running transcription |
list_allowed_paths() |
Return the directories the server is allowed to read from |
start_watch(folder) |
Watch a folder and auto-transcribe new audio files into ../done/ |
stop_watch() |
Stop the active folder watcher |
get_watch_results() |
Return completed watch-folder transcriptions and clear the queue |
Supported audio formats: .m4a .mp3 .mp4 .mov .wav .aiff .flac
Configuration
All configuration is via environment variables. Pass them through the env dict in claude_desktop_config.json (for Claude Desktop) or set them in .env for local development.
| Env var | Default | Description |
|---|---|---|
MACWHISPER_ALLOWED_PATHS |
~/Desktop |
Colon-separated list of directories the server may read from |
MACWHISPER_CLI |
auto-detected | Path to the mw binary. Defaults to /Applications/MacWhisper.app/Contents/MacOS/mw if that file exists, otherwise mw on PATH |
MACWHISPER_LOG_PATH |
~/Library/Logs/macwhisper-mcp.log |
Log file path (never stdout — that's reserved for MCP) |
Local development: copy .env.example to .env and adjust. With direnv, .envrc exports .env automatically. Without direnv: source .env.
Development
source .venv/bin/activate
pip install -e ".[dev]"
# Tests
pytest -q
# Lint + format
ruff check .
ruff format .
# Pre-commit hooks (one-time setup)
pip install pre-commit
pre-commit install
# Smoke-test against a real audio file (server must not be running in Claude Desktop)
python scripts/smoke_test.py ~/Downloads/Test.m4a
Logs
tail -f ~/Library/Logs/macwhisper-mcp.log
Security
- All file paths are resolved (symlinks followed) and checked against the
MACWHISPER_ALLOWED_PATHSallow-list before anything reaches the CLI. subprocess.runis always called with an argv list — nevershell=True.- No network calls. Ever.
See PRD §7 for the full threat model.
Known limitations
- Danish letter names: Whisper may phonetically approximate letter names (e.g. "Æ, Ø, Å" → "E, Y, U") when they are spoken in isolation. Letters inside words transcribe correctly. This is a Whisper engine limitation, not a bug in this wrapper. See PRD §12.
- Cold-start latency: First transcription after MacWhisper launches takes ~13s (model load). Subsequent calls are ~2s.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
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 macwhisper_mcp_server-1.0.1.tar.gz.
File metadata
- Download URL: macwhisper_mcp_server-1.0.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e0990158986c8cd24c1f0c092635758a6797ef6fcc72fa1cc78abc02e916732
|
|
| MD5 |
3c26d2b047102bed9f12661f290711a1
|
|
| BLAKE2b-256 |
afbaba30d0283c0196fd1a428db6b633dd228eb18437222ac8642a04f02de568
|
Provenance
The following attestation bundles were made for macwhisper_mcp_server-1.0.1.tar.gz:
Publisher:
publish.yml on docdyhr/macwhisper-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macwhisper_mcp_server-1.0.1.tar.gz -
Subject digest:
7e0990158986c8cd24c1f0c092635758a6797ef6fcc72fa1cc78abc02e916732 - Sigstore transparency entry: 1383200242
- Sigstore integration time:
-
Permalink:
docdyhr/macwhisper-mcp-server@9a60b93503fc9a221577a5a1bf1032f2732ba3de -
Branch / Tag:
refs/heads/master - Owner: https://github.com/docdyhr
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9a60b93503fc9a221577a5a1bf1032f2732ba3de -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file macwhisper_mcp_server-1.0.1-py3-none-any.whl.
File metadata
- Download URL: macwhisper_mcp_server-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 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 |
449761f8abf61768c1f2dd6368a8c6d2de2c090310e738f4f85137e9ee1b7570
|
|
| MD5 |
caae8f08a288f67b9c8b81ff2faba497
|
|
| BLAKE2b-256 |
228bc4a9d123eb97fa6ca433e094a04ddf5aa5c9e99efce4b29937b4e1bdb3a6
|
Provenance
The following attestation bundles were made for macwhisper_mcp_server-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on docdyhr/macwhisper-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macwhisper_mcp_server-1.0.1-py3-none-any.whl -
Subject digest:
449761f8abf61768c1f2dd6368a8c6d2de2c090310e738f4f85137e9ee1b7570 - Sigstore transparency entry: 1383200291
- Sigstore integration time:
-
Permalink:
docdyhr/macwhisper-mcp-server@9a60b93503fc9a221577a5a1bf1032f2732ba3de -
Branch / Tag:
refs/heads/master - Owner: https://github.com/docdyhr
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9a60b93503fc9a221577a5a1bf1032f2732ba3de -
Trigger Event:
workflow_dispatch
-
Statement type: