
claudio-audiobook
io.github.restante由 GitHub 帳號 restante 發布v0.2.0更新於 Oct 24, 2026
Make audiobooks locally with Kokoro voices from your AI assistant. Nothing leaves your computer.
概覽
一個本機 MCP 伺服器,讓助手在你自己的電腦上用 Kokoro 聲音撰寫並產生有聲書,不需雲端語音合成。
- 可以做什麼
- 製作有聲書:助手撰寫適合朗讀的文字並轉成有聲書檔案,可含章節、標籤與封面,以後台工作執行,重新啟動後仍會繼續,中斷後保留已完成的章節。查看進度與檢查環境:查詢轉檔工作狀態並確認安裝是否就緒。列出並選擇聲音:瀏覽可用的 Kokoro 聲音與語言,選擇單一聲音或混合兩種聲音,並設定語速、停頓與輸出格式。轉換現有文字:把 markdown 檔案轉成有聲書,轉檔前預覽章節與預估長度,也可選用第二個 Pocket TTS 引擎,支援更多語言與聲音複製。
- 適用情境
- 適合需要從零產生,或把自己的筆記、文章、文件變成可聆聽音訊的情況,並希望在本機離線完成,不按字元計費、不需要帳號。適合複習筆記、長篇文章、語言練習,或把新人訓練文件做成音訊。
- 執行需求
- 以 PyPI 套件形式透過 stdio 在本機執行,通常用 uvx 啟動或以 uv 安裝;Claude Code 方式需要 uv。語音模型(約 330 MB)首次使用時下載一次,選用的 Pocket 引擎還會下載 PyTorch 與約 1 GB 的模型。不需要帳號、API 金鑰或 GPU,僅用 CPU。可透過 CLAUDIO_AUDIOBOOK_* 環境變數設定預設值,例如 VOICE、SPEED、FORMAT、OUTPUT 與 AUTHOR。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 claudio-audiobook,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🎧 claudio-audiobook
An MCP server that lets your AI assistant make audiobooks
Say "create a python course audiobook". The AI writes it, a local voice reads it. Free, private, offline.
Works with Claude Desktop · Claude Code · Cursor · VS Code (Copilot) · Gemini CLI · Codex CLI · any MCP client
[CI] [License: MIT] [Release] [MCP server] [Python 3.10+] [Runs locally]
What it is
claudio-audiobook is a Model Context Protocol (MCP) server. You add it to an AI assistant, and the assistant gains the ability to turn text into an audiobook on your computer. It is built and tested first for Claude (Desktop and Code, as a one-click extension and a plugin), and it works with other MCP-capable tools too. It also has a plain command line for use without any AI.
Not supported: web chat apps that cannot run local MCP servers (the ChatGPT and Gemini websites).
Why
Text-to-speech APIs charge per character and send your text to someone else's server. Audiobook apps only play books that already exist. claudio-audiobook closes the gap: you describe the audiobook you want, Claude writes it as spoken prose, and an 82M-parameter Kokoro voice reads it on your own machine.
Hear it
Real output, no editing. Voice bf_emma, from the text in docs/samples/python-intro.md:
▶ python-intro-bf_emma.mp3 (18 seconds, 109 KB)
That sample rendered in about 6 seconds on the author's Mac (CPU only). A real 11-chapter, 36-minute exam course took about 3 minutes.
Install in 60 seconds
You need uv for Claude Code (install it:
macOS brew install uv, Windows winget install --id=astral-sh.uv -e). Everything else, including ffmpeg, is
installed for you. The voice model (about 330 MB, once) downloads on first use.
Claude Code
Prefer just the MCP server, without the skill?
Claude Desktop
- Download
claudio-audiobook-<version>.mcpbfrom Releases. - Open it with Claude Desktop (Settings → Extensions).
- Optional: set your default voice, speed and folder in the extension's settings.
Desktop installs the dependencies itself.
Want the Pocket TTS engine in Desktop? Install claudio-audiobook-pocket-<version>.mcpb from the same Releases page
instead of the standard one (install one or the other). It adds Pocket TTS (7 languages, voice cloning) and a "Default
engine" setting. Its first launch downloads PyTorch and the voice engine, about 1 GB: under a minute on a fast connection
in testing, longer on a slow one, and Claude may show the extension as failed until it finishes (wait, then reconnect).
Other AI tools
It is a standard MCP server (stdio), so it is not tied to Claude. Install it once, then point your tool at it:
Installing first matters: the first run of uvx has to download and install everything, which can
exceed a client's start-up timeout. If your tool cannot find the command, use its full path (which claudio-audiobook-mcp).
Cursor · ~/.cursor/mcp.json or .cursor/mcp.json
VS Code (GitHub Copilot) · .vscode/mcp.json or run MCP: Open User Configuration
Use agent mode so Copilot can call tools.
Gemini CLI · ~/.gemini/settings.json
or gemini mcp add --scope user claudio-audiobook claudio-audiobook-mcp. Check with /mcp.
Codex CLI (OpenAI) · ~/.codex/config.toml
or codex mcp add claudio-audiobook -- claudio-audiobook-mcp. Codex waits only 10 seconds for a server to start
by default, so raise startup_timeout_sec as above. Check with codex mcp list.
Set defaults (voice, speed, folder) with CLAUDIO_AUDIOBOOK_* environment variables in the same config, for example
"env": { "CLAUDIO_AUDIOBOOK_VOICE": "bf_emma" }. Any agent that can run a shell can also use the
command line directly.
Status: the server was checked with a generic MCP stdio client (handshake, tool list, a dry run), and the tool schemas are tested to avoid constructs that Cursor and Gemini mishandle. The configs above follow each tool's current documentation but have not yet been run inside those tools. If one doesn't work for you, please open an issue.
Examples
Just ask. Claude agrees the scope, writes the text, shows the chapter list and length, renders in the background and tells you where the file is.
A course from nothing
create a python course audiobook, for beginners, about an hour, in a calm British voice
Your own text
Turn ~/notes/book.md into an audiobook.
Steer it in plain English
slower · a different voice · mix af_heart and bf_emma 60/40 · longer pauses between sentences · make it mp3
Ideas people can do with it
- 🎓 Revision notes or an exam course you can listen to on the commute
- 📰 A long article or paper, read aloud while you cook
- 🧒 A bedtime story, in a voice you picked
- 🌍 Language practice: an Italian text read by
if_sara, or an English text read with a French accent - 💼 Onboarding docs or a team handbook as a podcast-style audio file
What you get
[Cover, tags and chapter list read from a finished .m4b]
Command line
A real run (from docs/samples/python-intro.md): three chapters in, one .m4b
with chapter marks out.
[Terminal: claudio-audiobook builds an m4b with three chapters]
No Claude needed for text you already have:
Preview before rendering. This is real output:
Chapters start at # headings (or lines like Chapter 3); a file without headings is cut into parts.
Interrupted? Run it again: finished chapters are kept, and only chapters whose text or settings changed are redone.
Play it anywhere: chapters, tags and cover art
The default output is an M4B, the standard audiobook file: AAC audio with chapter marks, the tags players use to file it under Audiobooks (title, author, narrator, genre "Audiobook"), and a cover.
[A generated title cover]- Cover art is made for you, locally. Ask the AI for a look ("a dark green cover"): it picks the colours and
passes them as
cover_colors. Or give your own picture: "use ~/Pictures/cover.png" (--cover). Acover.jpgorcover.pngyou drop in the book's folder is used too.--cover noneskips it. - Author and narrator come from the chat ("by Ada Lovelace") or the
--authorflag. Set a default author once in the Desktop extension settings. - The generated cover uses the built-in Latin font: titles in Chinese, Japanese or Korean show empty boxes, so give those books their own cover image.
Import it into:
Choose --format mp3 for players that don't read M4B (some car stereos). Audible and Kindle use closed formats
and cannot import it.
Optional second engine: Pocket TTS
Pocket TTS (Kyutai, 100M parameters) is an optional second voice engine. In the author's small blind listening test (one listener) it was preferred for neutral English and its Italian was judged good. It is as fast as Kokoro on a laptop CPU (about 4x real time on an Apple M1), speaks English, Italian, French, German, Portuguese, Spanish and Dutch, has 27 built-in voices, and can clone a voice from a short clip. Kokoro stays the default.
Ask for it in chat: "use the pocket engine, in Italian". Differences from Kokoro, so nothing is silently ignored:
- No
speed,clause_pauseortrimsettings (asking for another speed is an error). The sentence and chapter pauses work. voiceis a catalogue name (alba,giovanni, ...) or the path of a clean 5 to 30 second clip to clone. Only clone a voice you have the right to use. Leave it out and each language gets its default voice (Italian:giovanni).- In Claude Desktop, use the separate
claudio-audiobook-pocketextension (see Install). The standard extension installs only the default dependencies and does not include Pocket TTS. - Each language's model (about 400 MB) downloads once from Hugging Face the first time that language is used.
- Pocket TTS weights are © Kyutai, licensed CC BY 4.0; the code is MIT.
54 voices, 9 languages
Blend two voices into a new one: --voice af_heart:0.6,bf_emma:0.4. List them all with claudio-audiobook voices.
Every setting
Available as MCP tool arguments, CLI flags, and (for the first five, and the author) defaults in the Desktop settings or the
CLAUDIO_AUDIOBOOK_* environment variables.
--dry-run shows the chapters and the estimated length without rendering. --force redoes everything.
claudio-audiobook doctor checks the install.
How it works
Four MCP tools (make_audiobook, audiobook_status, list_voices, setup_check), a write_audiobook prompt
and an audiobook skill. Works with any MCP client that can run a local stdio server.
Privacy
claudio-audiobook runs on your machine. Your text and audio are never uploaded, and there is no telemetry, no account and no API key.
It uses the network in two ways only: installing the package and its dependencies from PyPI (done by uv or
pip), and a one-time download of the voice model: Kokoro from its GitHub release, checked against a SHA-256
sum, or, if you choose the optional Pocket engine, its model and voices from Hugging Face. It starts only its own programs: the bundled ffmpeg, a start-up check of the speech engine, and a
background worker of this same package. It does not read or send credentials. Its settings are
CLAUDIO_AUDIOBOOK_* environment variables, and only the home folder (~, $HOME) is ever expanded in a path.
FAQ
Does it cost anything? No. Claude itself is whatever plan you already have; the voice is free and local.
How good is the voice? Judge for yourself: listen to the sample. Kokoro is among the best small open TTS models, but it is not a human narrator. Expect clean, natural reading with occasional odd stress on unusual names.
Does it need a GPU? No. It runs on CPU.
Windows / Linux? The code is cross-platform and CI runs the tests. macOS is the tested path for Claude Desktop; Windows is not yet tested end to end. Reports welcome.
Can I use a different voice model? Point CLAUDIO_AUDIOBOOK_MODEL_FILE and CLAUDIO_AUDIOBOOK_VOICES_FILE at
your own copy of the Kokoro files.
Contributing
Issues and PRs welcome, especially: Windows testing, new languages, and sample audiobooks. See
CLAUDE.md for architecture and rules.
If this saved you a subscription, a ⭐ helps others find it.
MIT. Voices by Kokoro via kokoro-onnx.
來源:README.md,提交 ff5832c
工具
0版本歷史
3- v0.2.0最新Oct 17, 2026
- v0.1.4Oct 17, 2026
- v0.1.3Oct 15, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分