Macwhisper Mcp Server

io.github.docdyhr由 GitHub 账号 docdyhr 发布v1.2.1更新于 Oct 24, 2026

MacWhisper transcription for Claude Desktop. Fully local, no cloud, audio stays on your Mac.

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,让 Claude Desktop 通过 MacWhisper 命令行在 Mac 上转写音频文件,全程不调用云端。

可以做什么
  • 转写允许目录中的音频文件,可选模型、语言、引擎以及是否写入 MacWhisper 历史
  • 列出已安装的转写模型以及服务器可读取的目录
  • 取消正在进行的转写
  • 监视某个文件夹并自动转写新增音频到 done 目录,再取回结果
适用场景
适用于 macOS 上希望让 Claude 把本地录音、语音备忘或会议音频转成文字、摘要或待办事项,而不把音频上传到任何地方的场景。适合已在使用 MacWhisper,或已配置 whisper.cpp 走完全开源路线的用户。
运行要求
仅限 macOS,需安装并授权 MacWhisper 且启用其命令行工具(或改用 whisper.cpp 二进制与 GGML 模型)。需要 Python 3.13(pyenv)或 Homebrew/pip 安装包、Claude Desktop,以及必填环境变量 MACWHISPER_ALLOWED_PATHS 指定可读目录;MACWHISPER_CLI 与 MACWHISPER_LOG_PATH 为可选项。
安装前请注意
服务器会读取 MACWHISPER_ALLOWED_PATHS 中列出的目录里的音频文件,建议把范围限制得尽量小。开启 persist 时转写结果会写入 MacWhisper 历史,文件夹监视功能会把转写写入 done 目录。音频必须已保存在本机磁盘上,直接上传到聊天窗口的文件无法访问。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

[CI] [CodeQL] [PyPI version] [License: MIT]


[Claude Desktop transcribing an audio file]


Requirements

  • macOS (MacWhisper is macOS-only)
  • MacWhisper — installed and licensed
  • MacWhisper CLI enabled: open MacWhisper → Settings → Advanced → Command-Line Tool → Install. This places mw at /usr/local/bin/mw.
  • Python 3.13.x via pyenv
  • Claude Desktop

Installing MacWhisper via Homebrew:

bash
brew install --cask macwhisper

After installation, enable the CLI in MacWhisper Settings as above. When you later run brew upgrade --cask macwhisper, the CLI symlink updates automatically — no re-install needed.


Install

Option A — Homebrew (recommended)

bash
brew tap docdyhr/tapbrew install docdyhr/tap/macwhisper-mcp-server

This installs the macwhisper-mcp binary into your Homebrew prefix. Upgrade later with brew upgrade docdyhr/tap/macwhisper-mcp-server.

Option B — pip / source

bash
pip install macwhisper-mcp-server

Or from source:

bash
git clone https://github.com/docdyhr/macwhisper-mcp-server.gitcd macwhisper-mcp-server
pyenv install 3.13.13   # skip if already installedpyenv local 3.13.13python -m venv .venvsource .venv/bin/activatepip install -e .

Verify the MacWhisper CLI is reachable:

bash
mw version

Configure Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json and add:

json
{  "mcpServers": {    "macwhisper": {      "command": "macwhisper-mcp",      "args": [],      "env": {        "MACWHISPER_ALLOWED_PATHS": "~/Desktop:~/Downloads",        "FASTMCP_CHECK_FOR_UPDATES": "off"      }    }  }}

Restart Claude Desktop.

Note: Audio files must be saved to your Mac's filesystem (Desktop, Downloads, or another allow-listed folder) before asking Claude to transcribe them. Files uploaded directly to the Claude chat window live in Claude's container and are not accessible to the local MacWhisper CLI.

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

ToolDescription
transcribe_audio(path, model?, language?, persist?, engine?)Transcribe an audio file and return the transcript as plain text. language is an ISO 639-1 code (e.g. da) or auto; overrides any per-directory default. persist=true saves to MacWhisper history (MacWhisper engine only). engine is "macwhisper" (default) or "whisper-cpp" — see Alternative engine below.
list_models()List transcription models installed in MacWhisper, plus whisper-cpp models if MACWHISPER_WHISPERCPP_MODEL_DIR is configured; active MacWhisper model is marked
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 varDefaultDescription
MACWHISPER_ALLOWED_PATHS~/DesktopColon-separated list of directories the server may read from
MACWHISPER_CLIauto-detectedPath 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.logLog file path (never stdout — that's reserved for MCP)
MACWHISPER_LANGUAGE_DEFAULTSnoneColon-separated dir=lang pairs (ISO 639-1, or auto) — files in a matching directory get --language automatically. Most specific directory wins; an explicit language argument always overrides.
MACWHISPER_WHISPERCPP_BINARYwhisper-cli on PATHPath to the whisper-cli binary, if not on PATH. Only used when engine="whisper-cpp".
MACWHISPER_WHISPERCPP_MODEL_DIRnoneDirectory containing your GGML .bin model files. Required to use engine="whisper-cpp" at all — see below.

Local development: copy .env.example to .env and adjust. With direnv, .envrc exports .env automatically. Without direnv: source .env.

Per-directory language defaults

If you regularly transcribe recordings in a specific language, map a subfolder to it instead of passing language on every call:

json
"MACWHISPER_LANGUAGE_DEFAULTS": "~/Desktop/DK=da:~/Desktop/DE=de"

Drop a file in ~/Desktop/DK/ and transcribe_audio passes --language da automatically. An explicit language argument on the tool call always wins over the directory default.

Alternative engine: whisper.cpp

transcribe_audio(..., engine="whisper-cpp") transcribes using a standalone whisper.cpp binary instead of MacWhisper — useful if you don't have a MacWhisper license, or want a fully open-source local path. It does not touch MacWhisper in any way.

Setup:

bash
brew install whisper-cpp

Homebrew installs the whisper-cli binary only — no models. Download a GGML model yourself (this server never downloads anything over the network) from huggingface.co/ggerganov/whisper.cpp, e.g. ggml-base.en.bin, into a directory of your choice, then point the server at it:

json
"MACWHISPER_WHISPERCPP_MODEL_DIR": "~/whisper-models"

Then call the tool with the model's filename (not a MacWhisper engine:model-id string):

Transcribe ~/Desktop/memo.wav using the whisper-cpp engine with model ggml-base.en.bin

Limitations (v1):

  • Input formats: .wav, .mp3, .flac only — not .m4a/.mp4/.mov/.aiff. This is whisper.cpp's own native format support; convert other formats first (e.g. with ffmpeg) or use the default MacWhisper engine, which handles all supported formats.
  • persist=true is not supported — whisper.cpp has no history mechanism.
  • Default language is English (en) if neither language nor a directory default is set — unlike MacWhisper, which defers to the app's own language selection.

Development

bash
source .venv/bin/activatepip install -e ".[dev]"
# Testspytest -q
# Lint + formatruff check .ruff format .
# Pre-commit hooks (one-time setup)pip install pre-commitpre-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

bash
tail -f ~/Library/Logs/macwhisper-mcp.log

Security

  • All file paths are resolved (symlinks followed) and checked against the MACWHISPER_ALLOWED_PATHS allow-list before anything reaches the CLI.
  • subprocess.run is always called with an argv list — never shell=True.
  • No network calls. Ever.

See PRD §7 for the full threat model.


Known limitations

  • Uploaded files: Files dragged into the Claude chat window live in Claude's container and are not accessible to the local MacWhisper CLI. Save the file to your Desktop or Downloads folder (or another allow-listed directory), then ask Claude to transcribe it from there.
  • 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.

来源:README.md,提交 1232879

工具

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

版本历史

2
  1. v1.2.1最新Oct 15, 2026
  2. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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