Used for storing and loading API credentials required for accessing the NijiVoice API service
Provides testing capabilities for the MCP server implementation, including coverage reporting
NijiVoice MCP
FastMCPを使用したにじボイスAPIのMCPサーバー実装です。
概要
このMCPサーバーは、にじボイスAPIを利用して音声合成を行うための機能を提供します。主な機能は以下の通りです:
- 利用可能な声優(Voice Actor)の一覧取得
- テキストから音声ファイルを生成
- クレジット残高の確認
前提条件
インストール方法
- リポジトリをクローンします:
- uv を使用して仮想環境を作成して依存関係をインストールします:
.env
ファイルを作成し、にじボイスAPIのキーを設定します:
使い方
MCPサーバーの起動
開発モードでサーバーを起動するには:
本番モードでサーバーを起動するには:
インストールして使用
MCPサーバーをインストールして使用するには:
機能
以下の機能が利用可能です:
ツール(Tools)
get_voice_actors()
: 利用可能な声優の一覧を取得generate_voice(script, actor_id, speed, emotional_level, sound_duration, format)
: 音声を生成get_credit_balance()
: クレジット残高を取得
リソース(Resources)
voice-actors://list
: 声優一覧リソースvoice-actors://{actor_id}
: 特定の声優の情報を取得credit://balance
: クレジット残高リソース
プロンプト(Prompt)
voice_generation_prompt()
: 音声生成に関するプロンプトを提供
音声生成パラメータ
音声生成時に以下のパラメータを指定できます:
script
: 読み上げるテキスト(最大3,000文字)(必須)actor_id
: 使用する声優のID(省略時は最初の声優を使用)speed
: 読み上げスピード(0.4~3.0、デフォルト: 1.0)emotional_level
: 感情レベル(0.0~1.5、デフォルト: -1.0 = 声優のデフォルト設定を使用)sound_duration
: 音素発音の長さ(0.0~1.7、デフォルト: -1.0 = 声優のデフォルト設定を使用)format
: 音声フォーマット("mp3"または"wav"、デフォルト: "mp3")
レスポンス形式
音声生成時のレスポンス形式は以下の通りです:
テスト
テストを実行するには:
詳細なテスト結果を表示するには:
カバレッジレポートを生成するには:
ライセンス
謝辞
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that enables LLMs to access the NijiVoice API for text-to-speech generation, supporting features like fetching available voice actors and checking credit balance.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.Last updated -3276594TypeScriptMIT License
- AsecurityAlicenseAqualityA MCP server that enables transcription of audio files using OpenAI's Speech-to-Text API, with support for multiple languages and file saving options.Last updated -107JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that enables LLMs to generate spoken audio from text using OpenAI's Text-to-Speech API, supporting various voices, models, and audio formats.Last updated -01JavaScriptMIT License
- -securityFlicense-qualityAn MCP server that downloads videos/extracts audio from various platforms like YouTube, Bilibili, and TikTok, then transcribes them to text using OpenAI's Whisper model.Last updated -5Python