Skip to main content
Glama

📢 Blabber-MCP 🗣️

blabber-mcp MCP server

MCP-сервер, который дает вашим LLM голос с помощью API Text-to-Speech от OpenAI! 🔊


✨ Возможности

  • Text-to-Speech: Преобразует введенный текст в высококачественную озвучку.

  • Выбор голоса: Выбирайте из различных голосов OpenAI (alloy, echo, fable, onyx, nova, shimmer).

  • Выбор модели: Используйте стандартные (tts-1) или высококачественные (tts-1-hd) модели.

  • Параметры формата: Получайте аудиовыход в форматах mp3, opus, aac или flac.

  • Сохранение файлов: Сохраняет сгенерированное аудио в локальный файл.

  • Опциональное воспроизведение: Автоматическое воспроизведение сгенерированного аудио с помощью настраиваемой системной команды.

  • Настраиваемые значения по умолчанию: Установите голос по умолчанию через конфигурацию.


Related MCP server: NijiVoice-MCP

🔧 Конфигурация

Чтобы использовать этот сервер, необходимо добавить его конфигурацию в файл настроек вашего MCP-клиента (например, mcp_settings.json).

  1. Получите API-ключ OpenAI: Вам понадобится API-ключ от OpenAI.

  2. Добавьте в настройки MCP: Добавьте следующий блок в объект mcpServers в вашем файле настроек, заменив "YOUR_OPENAI_API_KEY" на ваш реальный ключ.

{
  "mcpServers": {
    "blabber-mcp": {
      "command": "node",
      "args": ["/full/path/to/blabber-mcp/build/index.js"], (IMPORTANT: Use the full, absolute path to the built index.js file)
      "env": {
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",
        "AUDIO_PLAYER_COMMAND": "xdg-open", (Optional: Command to play audio (e.g., "cvlc", "vlc", "mpv", "ffplay", "afplay", "xdg-open"; defaults to "cvlc")
        "DEFAULT_TTS_VOICE": "nova" (Optional: Set default voice (alloy, echo, fable, onyx, nova, shimmer); defaults to nova)
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Важно: Убедитесь, что путь args указывает на правильное расположение файла build/index.js внутри директории вашего проекта blabber-mcp. Используйте полный абсолютный путь.


🚀 Использование

После настройки и запуска вы можете использовать инструмент text_to_speech через ваш MCP-клиент.

Инструмент: text_to_speech Сервер: blabber-mcp (или ключ, который вы использовали в конфигурации)

Аргументы:

  • input (строка, обязательно): Текст для синтеза.

  • voice (строка, опционально): Голос для использования (alloy, echo, fable, onyx, nova, shimmer). По умолчанию используется DEFAULT_TTS_VOICE, заданный в конфигурации, или nova.

  • model (строка, опционально): Модель (tts-1, tts-1-hd). По умолчанию tts-1.

  • response_format (строка, опционально): Формат аудио (mp3, opus, aac, flac). По умолчанию mp3.

  • play (логическое значение, опционально): Установите true для автоматического воспроизведения аудио после сохранения. По умолчанию false.

Пример вызова инструмента (с воспроизведением):

<use_mcp_tool>
  <server_name>blabber-mcp</server_name>
  <tool_name>text_to_speech</tool_name>
  <arguments>
  {
    "input": "Hello from Blabber MCP!",
    "voice": "shimmer",
    "play": true
  }
  </arguments>
</use_mcp_tool>

Вывод:

Инструмент сохраняет аудиофайл в директорию output/ внутри папки проекта blabber-mcp и возвращает JSON-ответ, подобный этому:

{
  "message": "Audio saved successfully. Playback initiated using command: cvlc",
  "filePath": "path/to/speech_1743908694848.mp3", 
  "format": "mp3",
  "voiceUsed": "shimmer"
}

📜 Лицензия

Этот проект лицензирован по лицензии MIT — подробности см. в файле LICENSE.


🕒 Журнал изменений

Подробности об истории версий см. в файле CHANGELOG.md.


Available Tools

1 tool
text_to_speechA

Converts text into spoken audio using OpenAI TTS (default voice: alloy), saves it to a file, and optionally plays it.

Inputs: input (required), model, play, response_format, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a clearly distinct purpose of converting text to speech, and no other tools exist to cause confusion.

    Naming Consistency5/5

    The single tool name 'text_to_speech' follows a clear verb_noun pattern (text_to_speech), and with only one tool, consistency is inherently perfect as there are no other names to compare against.

    Tool Count2/5

    A single tool is too few for most server purposes, as it severely limits functionality and scope. While the tool itself is well-defined, the server lacks breadth, making it feel thin and under-scoped for typical MCP use cases.

    Completeness2/5

    The server is severely incomplete for a text-to-speech domain. It only provides conversion to speech, with no tools for managing audio files (e.g., list, delete, play controls), voice selection beyond the default, or other related operations like speech-to-text, leading to significant gaps in coverage.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers