Labsco
kajidog logo

MCP TTS VOICEVOX

โ˜… 15

from kajidog

A Text-to-Speech server that integrates with an external VOICEVOX engine.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

VOICEVOX TTS MCP

English | ๆ—ฅๆœฌ่ชž

A text-to-speech MCP server using VOICEVOX

๐ŸŽฎ Try the Browser Demo โ€” Test VoicevoxClient directly in your browser

What You Can Do

  • Make your AI assistant speak โ€” Text-to-speech from MCP clients like Claude Desktop
  • UI Audio Player (MCP Apps) โ€” Play audio directly in the chat with an interactive player (ChatGPT / Claude Desktop / Claude Web etc.)
  • Multi-character conversations โ€” Switch speakers per segment in a single call
  • Smooth playback โ€” Queue management, immediate playback, prefetching, streaming
  • Cross-platform โ€” Works on Windows, macOS, Linux (including WSL)

UI Audio Player (MCP Apps)

UI Audio Player

The voicevox_speak_player tool uses MCP Apps to render an interactive audio player directly inside the chat. Unlike the standard voicevox_speak tool which plays audio on the server, audio is played on the client side (in the browser/app) โ€” no audio device needed on the server.

Features

  • Client-side playback โ€” Audio plays in Claude Desktop's chat, not on the server. Works even over remote connections.
  • Play/Pause controls โ€” Full playback controls embedded in the conversation
  • Multi-speaker dialogue โ€” Sequential playback of multiple speakers in one player with track navigation
  • Speaker switching โ€” Change the voice of any segment directly from the player UI
  • Segment editing โ€” Adjust speed, volume, intonation, pause length, and pre/post silence per segment
  • Accent phrase editing โ€” Edit accent positions and mora pitch directly in the UI
  • Add / delete / reorder segments โ€” Drag-and-drop track reordering; add new segments inline
  • WAV export โ€” Save all tracks as numbered WAV files and open the output folder automatically
  • User dictionary manager โ€” Add, edit, and delete VOICEVOX user dictionary words with preview playback
  • Cross-session state restore โ€” Player state is persisted on the server; reopening the chat restores previous tracks

Export behavior by environment:

  • Save and open always exports WAV files. If opening the file explorer is not supported, export still succeeds and the save path is shown in the UI.
  • Choose output folder uses a native directory picker on Windows/macOS. On unsupported environments, this action falls back to the default export directory.
Multi-speaker playbackTrack listSegment editing
Multi-speaker playerTrack listSegment editing
Speaker selectionDictionary managerWAV export
Speaker selectionDictionary managerWAV export

Supported Clients

ClientConnectionNotes
ChatGPTHTTP (remote)Requires VOICEVOX_PLAYER_DOMAIN
Claude Desktopstdio (local)Works out of the box
Claude DesktopHTTP (via mcp-remote)Do not set VOICEVOX_PLAYER_DOMAIN

Note: speak_player requires a host that supports MCP Apps. In hosts without MCP Apps support, the tool is not available and speak (server-side playback) can be used instead.

Player MCP Tools

ToolDescription
speak_playerCreate a new player session and display the UI. Returns viewUUID.
resynthesize_playerUpdate all segments for an existing player (new viewUUID each call).
get_player_stateRead the current player state (paginated) for AI tuning.
open_dictionary_uiOpen the user dictionary manager UI.

MCP Tools

voicevox_speak โ€” Text-to-Speech

The main feature callable from Claude.

ParameterDescriptionDefault
textText to speak (multiple segments separated by newlines)Required
speakerSpeaker ID1
speedScalePlayback speed1.0
immediateImmediate playback (clears queue)true
waitForEndWait for playback completionfalse

Examples:

// Simple text
{ "text": "Hello" }

// Specify speaker
{ "text": "Hello", "speaker": 3 }

// Different speakers per segment
{ "text": "1:Hello\n3:Nice weather today" }

// Wait for completion (synchronous processing)
{ "text": "Wait for this to finish before continuing", "waitForEnd": true }
<details> <summary>Other Tools</summary>
ToolDescription
voicevox_speak_playerSpeak with UI audio player (disable with --disable-tools)
voicevox_pingCheck VOICEVOX Engine connection
voicevox_get_speakersGet list of available speakers
voicevox_stop_speakerStop playback and clear queue
voicevox_synthesize_fileGenerate audio file
</details>

Package Structure

PackageDescription
@kajidog/mcp-tts-voicevoxMCP server
@kajidog/voicevox-clientGeneral-purpose VOICEVOX client library (can be used independently)
@kajidog/player-uiReact-based audio player UI for browser playback

<details> <summary><b>Developer Information</b></summary>

Setup

git clone https://github.com/kajidog/mcp-tts-voicevox.git
cd mcp-tts-voicevox
pnpm install

Commands

CommandDescription
pnpm buildBuild all packages
pnpm testRun tests
pnpm lintRun lint
pnpm devStart dev server
pnpm dev:stdioDev with stdio mode
pnpm dev:bunStart dev server with Bun
pnpm dev:bun:httpStart HTTP dev server with Bun
</details>