Skip to main content
Glama

Kokoro TTS MCP Server

by giannisanni

Kokoro TTS MCP サーバー

Kokoro TTSエンジンを用いたテキスト読み上げ機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。このサーバーはMCPツールを通じてTTS機能を公開するため、アプリケーションへの音声合成の統合が容易になります。

前提条件

  • Python 3.10以上

  • uvパッケージマネージャー

インストール

  1. まず、 uvパッケージ マネージャーをインストールします。

curl -LsSf https://astral.sh/uv/install.sh | sh
  1. このリポジトリをクローンし、依存関係をインストールします。

uv venv source .venv/bin/activate # On Windows, use: .venv\Scripts\activate uv pip install .

特徴

  • カスタマイズ可能な音声によるテキスト音声合成

  • 音声速度を調整可能

  • オーディオをファイルに保存したり直接再生したりできるサポート

  • クロスプラットフォームのオーディオ再生サポート (Windows、macOS、Linux)

使用法

サーバーは、次のパラメータを持つ単一の MCP ツールgenerate_speech提供します。

  • text (必須): 音声に変換するテキスト

  • voice (オプション): 合成に使用する音声 (デフォルト: "af_heart")

  • speed (オプション):音声速度の乗数(デフォルト:1.0)

  • save_path (オプション): オーディオファイルを保存するディレクトリ

  • play_audio (オプション): オーディオをすぐに再生するかどうか (デフォルト: False)

使用例

from mcp.client import Client async with Client() as client: await client.connect("kokoro-tts") # Generate and play speech result = await client.call_tool( "generate_speech", { "text": "Hello, world!", "voice": "af_heart", "speed": 1.0, "play_audio": True } )

依存関係

  • ココロ >= 0.8.4

  • mcp[cli] >= 1.3.0

  • サウンドファイル >= 0.13.1

プラットフォームサポート

オーディオ再生は以下でサポートされています:

  • Windows ( startを使用)

  • macOS ( afplayを使用)

  • Linux ( aplayを使用)

MCP構成

MCP 設定ファイルに次の構成を追加します。

{ "mcpServers": { "kokoro-tts": { "command": "/Users/giannisan/pinokio/bin/miniconda/bin/uv", "args": [ "--directory", "/Users/giannisan/Documents/Cline/MCP/kokoro-tts-mcp", "run", "tts-mcp.py" ] } } }

ライセンス

[ここにライセンス情報を追加してください]

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

モデル コンテキスト プロトコルを通じてテキスト読み上げ機能を提供し、カスタマイズ可能な音声、調整可能な音声速度、クロスプラットフォームのオーディオ再生サポートを備えた音声合成をアプリケーションで簡単に統合できるようにします。

  1. 前提条件
    1. インストール
      1. 特徴
        1. 使用法
          1. 使用例
        2. 依存関係
          1. プラットフォームサポート
            1. MCP構成
              1. ライセンス

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that integrates high-quality text-to-speech capabilities with Claude Desktop and other MCP-compatible clients, supporting multiple voice options and audio formats.
                  Last updated -
                  0
                  1
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  Enables seamless integration with Typecast API through the Model Context Protocol, allowing clients to manage voices, convert text to speech, and play audio in a standardized way.
                  Last updated -
                  2
                • Gladia MCPofficial

                  -
                  security
                  A
                  license
                  -
                  quality
                  Official Model Context Protocol server that enables interaction with powerful Speech-to-Text and Audio Intelligence APIs, allowing clients like Claude Desktop to transcribe audio, analyze speech, translate content, and more.
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that enables developers to integrate advanced text-to-speech and video translation capabilities into their applications through simple API calls.

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/giannisanni/kokoro-tts-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server