NijiVoice-MCP
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
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NijiVoice-MCPgenerate a voice saying 'Welcome to our service' with actor ID 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NijiVoice MCP
FastMCPを使用したにじボイスAPIのMCPサーバー実装です。
概要
このMCPサーバーは、にじボイスAPIを利用して音声合成を行うための機能を提供します。主な機能は以下の通りです:
利用可能な声優(Voice Actor)の一覧取得
テキストから音声ファイルを生成
クレジット残高の確認
Related MCP server: VOICEVOX TTS MCP
前提条件
インストール方法
リポジトリをクローンします:
git clone https://github.com/ryoooo/nijivoice-mcp-beta.git cd nijivoice-mcp-betauv を使用して仮想環境を作成して依存関係をインストールします:
uv venv source .venv/bin/activate # Linux/Mac # または .venv\Scripts\activate # Windows uv pip install -e ..envファイルを作成し、にじボイスAPIのキーを設定します:NIJIVOICE_API_KEY=your_api_key_here
使い方
MCPサーバーの起動
開発モードでサーバーを起動するには:
uv run fastmcp dev server.py本番モードでサーバーを起動するには:
uv run fastmcp run server.pyインストールして使用
MCPサーバーをインストールして使用するには:
uv run fastmcp install server.py機能
以下の機能が利用可能です:
ツール(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")
レスポンス形式
音声生成時のレスポンス形式は以下の通りです:
{
"generatedVoice": {
"audioFileUrl": "音声再生用のURL",
"audioFileDownloadUrl": "音声ダウンロード用のURL",
"duration": 1312, // 音声の長さ(ミリ秒)
"remainingCredits": 3613 // 生成後の残りクレジット
}
}テスト
テストを実行するには:
uv run pytest詳細なテスト結果を表示するには:
uv run pytest -vカバレッジレポートを生成するには:
uv run pytest --cov=nijivoiceライセンス
謝辞
Available Tools
3 toolsgenerate_voiceA
音声を生成してその結果を返す
Args:
script: 読み上げるテキスト(最大3,000文字)(必須)
actor_id: 使用するVoice Actorの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")
Returns:
以下を含む音声生成レスポンス:
- audioFileUrl: 音声再生用のURL
- audioFileDownloadUrl: 音声ダウンロード用のURL
- duration: 音声の長さ(ミリ秒)
- remainingCredits: 生成後の残りクレジット
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| actor_id | No | ||
| speed | No | ||
| emotional_level | No | ||
| sound_duration | No | ||
| format | No | mp3 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal some behavioral traits: it mentions credit consumption (via remainingCredits in returns), default values for parameters, and that the tool generates downloadable audio files. However, it lacks critical information such as rate limits, authentication requirements, whether the generated files are stored permanently, error conditions, or performance characteristics. The description adds value but leaves significant gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections for Args and Returns, making it easy to parse. Each parameter explanation is concise yet informative. The opening statement is direct. While efficient, the Japanese text might require translation for some agents, and the Returns section could be slightly more detailed about response structure, but overall it's appropriately sized with minimal waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (6 parameters, voice generation with credit consumption) and the absence of both annotations and output schema, the description does a decent job but has notable gaps. It explains parameters thoroughly and outlines the return structure, which helps compensate for the missing output schema. However, it lacks information about error handling, authentication, rate limits, and the relationship with sibling tools, making it incomplete for safe and effective use by an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description provides excellent parameter semantics beyond the input schema, which has 0% description coverage. For all 6 parameters, it explains their purpose, constraints (e.g., script max 3000 characters, speed range 0.4-3.0), default values, and special meanings (e.g., -1 for emotional_level means use voice actor's default). This fully compensates for the schema's lack of descriptions and adds meaningful context that the schema alone doesn't provide.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose as '音声を生成してその結果を返す' (generate voice and return the result), which is a specific verb+resource combination. It distinguishes itself from sibling tools like get_credit_balance and get_voice_actors by focusing on voice generation rather than querying resources. However, it doesn't explicitly contrast with potential alternative generation tools beyond the siblings listed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. While it mentions that actor_id defaults to the first available actor if omitted, it doesn't explain when to specify an actor_id versus using the default, or how this tool relates to the sibling tools (e.g., whether get_voice_actors should be called first to select an actor). There's no mention of prerequisites, constraints, or typical use cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_credit_balanceB
クレジット残高を取得
Returns:
クレジット残高
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states what the tool does ('クレジット残高を取得') and what it returns ('クレジット残高'), but lacks details on permissions, rate limits, error conditions, or whether it's a read-only operation. For a tool with zero annotation coverage, this is insufficient behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is brief and front-loaded with the main purpose, but the structure could be improved. The 'Returns:' section is redundant since it merely repeats 'クレジット残高' from the first line without adding value. A single concise sentence would be more efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate. It states the purpose and return value, but lacks context about the credit system (e.g., what credits are for, units, or typical values). For a basic read operation, this is acceptable but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, focusing instead on the tool's purpose and return value. This meets the baseline expectation for a parameterless tool.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'クレジット残高を取得' (Get credit balance). It uses a specific verb ('取得' - get/retrieve) and resource ('クレジット残高' - credit balance), making the function unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'generate_voice' or 'get_voice_actors', which appear to serve different purposes related to voice generation rather than credit management.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention any prerequisites, context for usage, or comparisons with sibling tools. The agent must infer usage based solely on the tool's name and description without explicit instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_voice_actorsC
Get the list of voice actors.
Returns:
A list of voice actors with their details.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states that it returns a list with details, but does not cover important aspects like whether it's a read-only operation, potential rate limits, authentication needs, or error conditions. For a tool with zero annotation coverage, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise with two sentences, but it is not optimally structured. The first sentence states the purpose, and the second describes the return, but it could be more front-loaded with key details. While not wasteful, it lacks emphasis on critical information like behavioral traits, given the absence of annotations.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (a list retrieval tool), lack of annotations, and no output schema, the description is incomplete. It mentions the return type but does not specify the structure of 'details' (e.g., names, IDs, availability), which is crucial for the agent to understand the output. This gap makes it inadequate for effective tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, so no parameters need documentation. The description appropriately does not discuss parameters, which is efficient. However, it could have mentioned any implicit parameters or context, but since none exist, it meets the baseline for this dimension.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get the list of voice actors.' This is a specific verb ('Get') and resource ('voice actors'), making it understandable. However, it does not explicitly differentiate from sibling tools like 'get_credit_balance' or 'generate_voice', which could involve voice actors in different contexts, so it lacks sibling differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It does not mention sibling tools or contexts where this tool is preferred, such as for listing available actors before generating voice, nor does it specify any prerequisites or exclusions. This leaves the agent without clear usage instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a clearly distinct purpose with no overlap: generate_voice creates audio, get_credit_balance checks account status, and get_voice_actors lists available resources. An agent can easily distinguish between content generation, account management, and resource listing functions.
The tools follow a consistent verb_noun pattern (generate_voice, get_credit_balance, get_voice_actors) with clear, descriptive names. The minor deviation is that two tools use 'get_' prefix while one uses 'generate_', but this reflects their distinct actions appropriately.
Three tools is reasonable for a voice generation service, covering the core workflow: listing actors, generating voice, and checking credits. While slightly minimal, each tool earns its place without redundancy, though additional utilities like voice preview or actor filtering could enhance completeness.
The toolset covers essential operations for voice generation: resource discovery (get_voice_actors), content creation (generate_voice), and account management (get_credit_balance). Minor gaps include lack of update/delete operations for generated content or advanced actor filtering, but core workflows are fully supported.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
AI voice generation: text-to-speech and voice cloning from any MCP client.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
MCP server for Text-to-Speech
Related MCP Servers
- AlicenseAqualityDmaintenanceAn 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.1131MIT
- AlicenseAqualityBmaintenanceA text-to-speech MCP server that enables AI assistants to speak using the VOICEVOX engine with support for multi-character conversations. It features queue management, low-latency streaming via FFplay, and cross-platform playback across Windows, macOS, and Linux.714916ISC
- FlicenseNot gradedqualityDmaintenanceAn MCP server that leverages the Microsoft Edge TTS service to provide high-quality text-to-speech capabilities across over 80 languages. It enables users to generate audio files, query available voices, and create subtitle files using natural language commands.
- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides text-to-speech, speech-to-text, and voice management via ElevenLabs API.1
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ryoooo/nijivoice-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server