MCP TTS VOICEVOX 标志

MCP TTS VOICEVOX

社区
kajidog

VOICEVOX MCP Server (MCP Apps対応)

发布者kajidog
代码仓库mcp-tts-voicevox
语言TypeScript
复刻数
6
星标数
16
可用工具
6
传输类型stdio, streamable-http
分类
许可协议ISC
链接
  • 将工具接入 AI 工作流

    MCP TTS VOICEVOX 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 6 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 16 个星标和 6 个复刻。

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
voicevox_speak_playerCreate a new player session and display the UI. Returns viewUUID.
voicevox_resynthesize_playerUpdate all segments for an existing player (new viewUUID each call).
voicevox_get_player_stateRead the current player state (paginated) for AI tuning.
voicevox_open_dictionary_uiOpen the user dictionary manager UI.

Quick Start

Requirements

  • Node.js 20.0.0 or higher (or Bun) or Docker
  • VOICEVOX Engine (must be running; included in Docker Compose)
  • ffplay (optional, recommended — not needed with Docker)

Installing FFplay

ffplay is a lightweight player included with FFmpeg that supports playback from stdin. When available, it automatically enables low-latency streaming playback.

💡 FFplay is optional. Without it, playback falls back to temp file-based playback (Windows: PowerShell, macOS: afplay, Linux: aplay, etc.).

  • Easy setup: One-liner installation for each OS (see steps below)
  • Required: ffplay must be in PATH (restart terminal/apps after installation)

Installation examples:

  • Windows (any of these)

  • macOS

    • Homebrew: brew install ffmpeg
  • Linux

    • Debian/Ubuntu: sudo apt-get update && sudo apt-get install -y ffmpeg
    • Fedora: sudo dnf install -y ffmpeg
    • Arch: sudo pacman -S ffmpeg

PATH Setup:

  • Windows: Add ...\ffmpeg\bin to environment variables, then restart PowerShell/terminal and editor (Claude/VS Code, etc.)
    • Verify: powershell -c "$env:Path" should include the ffmpeg path
  • macOS/Linux: Usually auto-detected. Check with echo $PATH if needed, restart shell.
  • MCP clients (Claude Desktop/Code): Restart the app to reload PATH.

Verification:

bash
ffplay -version

If version info is displayed, installation is complete. CLI/MCP will automatically detect ffplay and use stdin streaming playback.

3 Steps to Get Started

1. Start VOICEVOX Engine

2. Add to Claude Desktop config file

Config file location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "tts-mcp": {
      "command": "npx",
      "args": ["-y", "@kajidog/mcp-tts-voicevox"]
    }
  }
}

💡 If using Bun, just replace npx with bunx:

json
"command": "bunx", "args": ["@kajidog/mcp-tts-voicevox"]

3. Restart Claude Desktop

That's it! Ask Claude to "say hello" and it will speak!

Quick Start with Docker

You can run both the MCP server and VOICEVOX Engine with a single command using Docker Compose. No Node.js or VOICEVOX installation required.

1. Start the containers

bash
docker compose up -d

This starts the VOICEVOX Engine and the MCP server (HTTP mode on port 3000).

2. Add to Claude Desktop config file (using mcp-remote)

json
{
  "mcpServers": {
    "tts-mcp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:3000/mcp"]
    }
  }
}

3. Restart Claude Desktop

Security (Docker): docker-compose.yml publishes port 3000 without authentication. MCP_ALLOWED_HOSTS is not a defense here — non-browser clients can send any Host header they like — so anyone who can reach the port can use the server. Set MCP_API_KEY (and send it as X-API-Key), or keep the port bound to a trusted network / localhost only. Consider also setting VOICEVOX_ALLOWED_OUTPUT_DIRS to limit where file-writing tools may write.

Limitations (Docker): The Docker container has no audio device, so the voicevox_speak tool (server-side playback) is disabled by default. Use voicevox_speak_player instead — it plays audio on the client side (in Claude Desktop) and works without any audio device on the server. See UI Audio Player for details.


MCP Tools

voicevox_speak — Text-to-Speech

The main feature callable from Claude.

ParameterDescriptionDefault
textText to speak (multiple segments separated by newlines)Required
phrasesInline accent notation (takes priority over text)(unset)
speakerSpeaker ID1
speedScalePlayback speed1.0
immediateImmediate playback (clears queue)true
waitForStartWait for playback to startfalse
waitForEndWait for playback completionfalse

immediate / waitForStart / waitForEnd disappear from the tool schema when the matching --restrict-* option is set.

Examples:

javascript
// 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 }

// Control the accent with inline notation (`,` separates phrases, `[` marks the accent)
{ "text": "こんにちは世界", "phrases": "コン[ニ]チワ,セ[カ]イ" }

Inline Accent Notation

phrases (and the pronunciation field of the user dictionary tools) accepts katakana with an inline accent marker:

  • , separates accent phrases — コン[ニ]チワ,セ[カ]イ
  • [ marks where the pitch drops after; コン[ニ]チワ means the accent falls on ニ
  • Omitting the brackets for a phrase keeps VOICEVOX's own accent estimation for it

text stays required even when phrases is given — pass the plain text there and the notation is what gets spoken.

voicevox_get_accent_phrases returns the same notation for a given text, so you can read the estimated accent, tweak the bracket, and feed it back into phrases.

ToolDescription
voicevox_speak_playerSpeak with UI audio player (see Player MCP 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

User dictionary tools (group dictionary):

ToolDescription
voicevox_get_accent_phrasesGet reading and accent positions of a text as inline notation
voicevox_get_user_dictionaryList user dictionary words (filter + pagination)
voicevox_add_user_dictionary_wordAdd a word (pronunciation accepts inline accent notation)
voicevox_update_user_dictionary_wordUpdate a word (omitted fields keep their value)
voicevox_delete_user_dictionary_wordDelete a word by UUID
voicevox_add_user_dictionary_wordsAdd multiple words at once
voicevox_update_user_dictionary_wordsUpdate multiple words at once

Any tool can be turned off individually with --disable-tools / VOICEVOX_DISABLED_TOOLS, or by group with --disable-groups / VOICEVOX_DISABLED_GROUPS.


Configuration

VOICEVOX Settings

VariableDescriptionDefault
VOICEVOX_URLEngine URLhttp://localhost:50021
VOICEVOX_DEFAULT_SPEAKERDefault speaker ID1
VOICEVOX_DEFAULT_SPEED_SCALEPlayback speed1.0
VOICEVOX_RETRY_COUNTRetries for failed API requests (0 disables)2
VOICEVOX_RETRY_DELAY_MSInitial retry delay in ms (exponential backoff)250
VOICEVOX_TIMEOUT_MSTimeout for a single VOICEVOX API request in ms. Raise it for long text or a slow engine30000

Playback Options

VariableDescriptionDefault
VOICEVOX_USE_STREAMINGStreaming playback (requires ffplay)false
VOICEVOX_DEFAULT_POST_PHONEME_LENGTHTrailing silence per segment in seconds. Increase for a longer pause between queued segments (also protects the end of speech from being cut off with streaming playback)engine default
VOICEVOX_DEFAULT_IMMEDIATEImmediate playbacktrue
VOICEVOX_DEFAULT_WAIT_FOR_STARTWait for playback startfalse
VOICEVOX_DEFAULT_WAIT_FOR_ENDWait for playback endfalse

Restriction Settings

Restrict AI from specifying certain options.

VariableDescription
VOICEVOX_RESTRICT_IMMEDIATERestrict immediate option
VOICEVOX_RESTRICT_WAIT_FOR_STARTRestrict waitForStart option
VOICEVOX_RESTRICT_WAIT_FOR_ENDRestrict waitForEnd option

Disable Tools

bash
# Disable individual tools
export VOICEVOX_DISABLED_TOOLS=speak_player,synthesize_file

# Disable a built-in group of tools
export VOICEVOX_DISABLED_GROUPS=player

# Combine groups and individual tools
export VOICEVOX_DISABLED_GROUPS=dictionary
export VOICEVOX_DISABLED_TOOLS=synthesize_file

Built-in groups for VOICEVOX_DISABLED_GROUPS / --disable-groups:

GroupTools
playerspeak_player, resynthesize_player, get_player_state, open_dictionary_ui
dictionaryget_accent_phrases, get_user_dictionary, add_user_dictionary_word, update_user_dictionary_word, delete_user_dictionary_word, add_user_dictionary_words, update_user_dictionary_words
filesynthesize_file
appsspeak_player, resynthesize_player, open_dictionary_ui (MCP App UI tools)

UI Player Settings

VariableDescriptionDefault
VOICEVOX_PLAYER_DOMAINWidget domain for UI player (required for ChatGPT, e.g. https://your-app.onrender.com)(unset)
VOICEVOX_AUTO_PLAYAuto-play audio in UI playertrue
VOICEVOX_PLAYER_EXPORT_ENABLEDEnable track export(download) from UI player (false to disable)true
VOICEVOX_PLAYER_EXPORT_DIRDefault output directory for exported tracks (also used as fallback when folder picker is unavailable)./voicevox-player-exports
VOICEVOX_PLAYER_CACHE_DIRDirectory for player cache files (*.txt) and default player state file./.voicevox-player-cache
VOICEVOX_PLAYER_AUDIO_CACHE_ENABLEDEnable persistent audio cache on disk (false disables disk cache writes/reads)true
VOICEVOX_PLAYER_AUDIO_CACHE_TTL_DAYSAudio cache retention in days (0: disable disk cache, -1: no TTL cleanup)30
VOICEVOX_PLAYER_AUDIO_CACHE_MAX_MBAudio cache size cap in MB (0: disable disk cache, -1: unlimited)512
VOICEVOX_PLAYER_STATE_FILEPath of persisted player state JSON<VOICEVOX_PLAYER_CACHE_DIR>/player-state.json

File Output Settings

VariableDescriptionDefault
VOICEVOX_ALLOWED_OUTPUT_DIRSComma-separated directories that file-writing tools (voicevox_synthesize_file, player track export) may write into. Paths outside them are rejected with an error. Unset means no restriction — recommended to set when the server is exposed over HTTP(unset)

Server Settings

VariableDescriptionDefault
MCP_HTTP_MODEEnable HTTP modefalse
MCP_HTTP_PORTHTTP port3000
MCP_HTTP_HOSTHTTP host0.0.0.0
MCP_ALLOWED_HOSTSAllowed hosts (comma-separated)localhost,127.0.0.1,[::1]
MCP_ALLOWED_ORIGINSAllowed origins (comma-separated)http://localhost,http://127.0.0.1,...
MCP_API_KEYRequired API key for /mcp (sent via X-API-Key or Authorization: Bearer)(unset)

Command line arguments take priority over environment variables. The complete, up-to-date list of options is always available via npx @kajidog/mcp-tts-voicevox --help.

bash
# Basic settings
npx @kajidog/mcp-tts-voicevox --url http://192.168.1.100:50021 --speaker 3 --speed 1.2

# HTTP mode
npx @kajidog/mcp-tts-voicevox --http --port 8080

# With restrictions
npx @kajidog/mcp-tts-voicevox --restrict-immediate --restrict-wait-for-end

# Disable individual tools
npx @kajidog/mcp-tts-voicevox --disable-tools speak_player,synthesize_file

# Disable a tool group
npx @kajidog/mcp-tts-voicevox --disable-groups player
ArgumentDescription
--help, -hShow help
--version, -vShow version
--initGenerate .voicevoxrc.json with default settings
--config <path>Path to config file
--url <value>VOICEVOX Engine URL
--speaker <value>Default speaker ID
--speed <value>Playback speed
--use-streaming / --no-use-streamingStreaming playback
--post-phoneme-length <sec>Trailing silence per segment (pause between queued segments)
--immediate / --no-immediateImmediate playback
--wait-for-start / --no-wait-for-startWait for start
--wait-for-end / --no-wait-for-endWait for end
--restrict-immediateRestrict immediate
--restrict-wait-for-startRestrict waitForStart
--restrict-wait-for-endRestrict waitForEnd
--allowed-output-dirs <dirs>Directories that file-writing tools may write into (comma-separated; unset = no restriction)
--disable-tools <tools>Disable tools (comma-separated tool names)
--disable-groups <groups>Disable tool groups: player, dictionary, file, apps
--auto-play / --no-auto-playAuto-play in UI player
--player-export / --no-player-exportEnable/disable track export(download) in UI player
--player-export-dir <dir>Default output directory for exported tracks
--player-cache-dir <dir>Player cache directory
--player-state-file <path>Persisted player state file path
--player-audio-cache / --no-player-audio-cacheEnable/disable disk audio cache for player
--player-audio-cache-ttl-days <days>Audio cache retention days (0: disable, -1: no TTL cleanup)
--player-audio-cache-max-mb <mb>Audio cache size cap in MB (0: disable, -1: unlimited)
--httpHTTP mode
--port <value>HTTP port
--host <value>HTTP host
--allowed-hosts <hosts>Allowed hosts (comma-separated)
--allowed-origins <origins>Allowed origins (comma-separated)
--api-key <key>Required API key for /mcp

You can use a JSON config file instead of (or in addition to) environment variables and CLI arguments. This is useful when you have many settings to configure.

Priority order: CLI args > Environment variables > Config file > Defaults

Generate a config file

bash
npx @kajidog/mcp-tts-voicevox --init

This creates .voicevoxrc.json in the current directory with all default settings. Edit it as needed.

Use a custom config file path

bash
npx @kajidog/mcp-tts-voicevox --config ./my-config.json

Or via environment variable:

bash
VOICEVOX_CONFIG=./my-config.json npx @kajidog/mcp-tts-voicevox

Example .voicevoxrc.json

json
{
  "url": "http://192.168.1.50:50021",
  "speaker": 3,
  "speed": 1.2,
  "http": true,
  "port": 8080,
  "disable-tools": ["synthesize_file"],
  "disable-groups": ["dictionary"]
}

Keys can be written in kebab-case (use-streaming), camelCase (useStreaming), or internal key names (defaultSpeaker). If .voicevoxrc.json exists in the current directory, it is loaded automatically.

For remote connections:

Start Server:

bash
# Linux/macOS
MCP_HTTP_MODE=true MCP_HTTP_PORT=3000 npx @kajidog/mcp-tts-voicevox

# Windows PowerShell
$env:MCP_HTTP_MODE='true'; $env:MCP_HTTP_PORT='3000'; npx @kajidog/mcp-tts-voicevox

Claude Desktop Config (using mcp-remote):

json
{
  "mcpServers": {
    "tts-mcp-proxy": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:3000/mcp"]
    }
  }
}

Per-Project Speaker Settings

With Claude Code, you can configure different default speakers per project using custom headers in .mcp.json:

HeaderDescription
X-Voicevox-SpeakerDefault speaker ID for this project
X-API-KeyAPI key when MCP_API_KEY is configured

Example .mcp.json:

json
{
  "mcpServers": {
    "tts": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "X-Voicevox-Speaker": "113",
        "X-API-Key": "your-api-key"
      }
    }
  }
}

This allows each project to use a different voice character automatically.

Priority order:

  1. Explicit speaker parameter in tool call (highest)
  2. Project default from X-Voicevox-Speaker header
  3. Global VOICEVOX_DEFAULT_SPEAKER setting (lowest)

Connecting from WSL to an MCP server running on Windows:

1. Get Windows Host IP from WSL

bash
# Method 1: From default gateway
ip route show | grep -oP 'default via \K[\d.]+'
# Usually in the format 172.x.x.1

# Method 2: From /etc/resolv.conf (WSL2)
cat /etc/resolv.conf | grep nameserver | awk '{print $2}'

2. Start Server on Windows

Add the WSL gateway IP to MCP_ALLOWED_HOSTS to allow access from WSL:

powershell
$env:MCP_HTTP_MODE='true'
$env:MCP_ALLOWED_HOSTS='localhost,127.0.0.1,172.29.176.1'
npx @kajidog/mcp-tts-voicevox

Or with CLI arguments:

powershell
npx @kajidog/mcp-tts-voicevox --http --allowed-hosts "localhost,127.0.0.1,172.29.176.1"

3. WSL Configuration (.mcp.json)

json
{
  "mcpServers": {
    "tts": {
      "type": "http",
      "url": "http://172.29.176.1:3000/mcp"
    }
  }
}

⚠️ Within WSL, localhost refers to WSL itself. Use the WSL gateway IP to access the Windows host.

To use with ChatGPT, deploy the MCP server in HTTP mode to the cloud with access to a VOICEVOX Engine.

1. Deploy to the Cloud

Deploy with Docker to Render, Railway, etc. (Dockerfile included).

2. Set Up VOICEVOX Engine

Run VOICEVOX Engine locally and expose it via ngrok, or deploy it alongside the MCP server.

3. Configure Environment Variables

VariableExampleDescription
VOICEVOX_URLhttps://xxxx.ngrok-free.appVOICEVOX Engine URL
MCP_HTTP_MODEtrueEnable HTTP mode
MCP_ALLOWED_HOSTSyour-app.onrender.comDeployed hostname
VOICEVOX_PLAYER_DOMAINhttps://your-app.onrender.comWidget domain for UI player (required for ChatGPT)
VOICEVOX_DISABLED_TOOLSspeakDisable server-side playback (no audio device)
VOICEVOX_PLAYER_EXPORT_ENABLEDfalseDisable export feature (files cannot be downloaded from cloud)

4. Add Connector in ChatGPT

Go to ChatGPT Settings → Connectors → Add MCP server URL (https://your-app.onrender.com/mcp).

The basic steps are the same as ChatGPT, but the VOICEVOX_PLAYER_DOMAIN value is different.

Claude Web requires ui.domain to be a hash-based dedicated domain. Compute it with the following command:

bash
node -e "console.log(require('crypto').createHash('sha256').update('Your MCP server URL').digest('hex').slice(0,32)+'.claudemcpcontent.com')"

Example: If your MCP server URL is https://your-app.onrender.com/mcp:

bash
node -e "console.log(require('crypto').createHash('sha256').update('https://your-app.onrender.com/mcp').digest('hex').slice(0,32)+'.claudemcpcontent.com')"
# Example output: 48fb73a6...claudemcpcontent.com

Set this output value as VOICEVOX_PLAYER_DOMAIN.

Note: Since ChatGPT and Claude Web require different VOICEVOX_PLAYER_DOMAIN values, a single instance cannot serve both clients simultaneously. Deploy separate instances for each, or switch the environment variable depending on your target client.


Troubleshooting

1. Check if VOICEVOX Engine is running

bash
curl http://localhost:50021/speakers

2. Check platform-specific playback tools

OSRequired Tool
LinuxOne of aplay, paplay, play, ffplay
macOSafplay (pre-installed)
WindowsPowerShell (pre-installed)
  • Check package installation: npm list -g @kajidog/mcp-tts-voicevox
  • Verify JSON syntax in config file
  • Restart the client

Package Structure

PackageDescription
@kajidog/mcp-tts-voicevoxMCP server (apps/mcp-tts)
@kajidog/voicevox-clientGeneral-purpose VOICEVOX client library (can be used independently)
@kajidog/mcp-coreShared MCP infrastructure (config schema, HTTP/stdio launcher). Not published — bundled into the server
@kajidog/player-uiReact-based audio player UI, bundled into a single HTML file. Not published

Setup

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

Commands

The package manager is pnpm (npm / yarn are not supported).

CommandDescription
pnpm buildBuild all packages
pnpm testRun tests
pnpm lintRun lint (single Biome pass over the whole workspace)
pnpm typecheckType-check every package
pnpm changesetAdd a changeset for a user-facing change

Dev servers live in the server package, so run them with a filter:

CommandDescription
pnpm --filter @kajidog/mcp-tts-voicevox devStart dev server (stdio)
pnpm --filter @kajidog/mcp-tts-voicevox dev:httpStart dev server in HTTP mode
pnpm --filter @kajidog/mcp-tts-voicevox dev:bunStart dev server with Bun
pnpm --filter @kajidog/mcp-tts-voicevox dev:bun:httpStart HTTP dev server with Bun

License

ISC

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "kajidog-mcp-tts-voicevox": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tts-voicevox"
      ]
    }
  }
}

可用工具

  • speak

    Convert text to speech and play it

  • generate_query

    Generate a query for voice synthesis

  • synthesize_file

    Generate an audio file and return its absolute path

  • stop_speaker

    Stop the current speaker

  • get_speakers

    Get a list of available speakers

  • get_speaker_detail

    Get detail of a speaker by id

将 MCP TTS VOICEVOX MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MCP TTS VOICEVOX 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 您可以在自己的设备上本地运行 MCP,也可以通过 URL 连接远程 MCP 服务器。

方式 1:使用本地连接器

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 MCP TTS VOICEVOX 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 MCP TTS VOICEVOX MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "kajidog-mcp-tts-voicevox": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tts-voicevox"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 MCP TTS VOICEVOX MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 MCP TTS VOICEVOX MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCP TTS VOICEVOX 帮我完成这项任务吗?
MCP TTS VOICEVOX
当然,我看过了。
以下是我使用 MCP TTS VOICEVOX 得到的结果。

方式 2:添加 MCP 服务器 URL

如果 MCP TTS VOICEVOX 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 您的服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 您的服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 MCP TTS VOICEVOX 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 MCP TTS VOICEVOX 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 MCP TTS VOICEVOX 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 MCP TTS VOICEVOX 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCP TTS VOICEVOX 帮我完成这项任务吗?
MCP TTS VOICEVOX
当然,我看过了。
以下是我使用 MCP TTS VOICEVOX 得到的结果。

常见问题

MCP TTS VOICEVOX MCP 服务器有什么用途?

MCP TTS VOICEVOX 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MCP TTS VOICEVOX MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 MCP TTS VOICEVOX。

为什么在 TypingMind 中使用 MCP TTS VOICEVOX MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 MCP TTS VOICEVOX 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MCP TTS VOICEVOX MCP 连接到 TypingMind?

在 TypingMind 中,您可以使用本地 MCP 连接器或添加远程 MCP 服务器的 URL 来连接 MCP TTS VOICEVOX。当服务器需要访问您设备上的文件、应用或私有资源时,请使用本地连接器;如果 MCP 服务器部署在远端,请使用服务器 URL。

MCP TTS VOICEVOX MCP 在 TypingMind 中提供哪些工具?

MCP TTS VOICEVOX 提供 6 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MCP TTS VOICEVOX MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 MCP TTS VOICEVOX 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇