B

Bakbak MCP

by raya-voice-ai · io.github.raya-voice-ai/bakbak-mcp

Enables MCP clients to convert text into speech in Hindi, other Indian languages, and English, with voice listing and selectable speed and audio formats. It can save generated audio locally as files or return private download links when hosted.

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-raya-voice-ai-bakbak-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bakbak-mcp"
      ],
      "env": {
        "BAKBAK_API_KEY": "<YOUR_VALUE>",
        "BAKBAK_MCP_OUTPUT_DIR": "~/Documents/Bakbak (or ~/Bakbak if there is no Documents)",
        "BAKBAK_BASE_URL": "https://hub.getraya.app",
        "HOST": "0.0.0.0",
        "PORT": "8080",
        "AUDIO_DIR": "<tmp>/bakbak-mcp-audio",
        "AUDIO_TTL": "1h",
        "LOG_LEVEL": "info",
        "MCP_PUBLIC_URL": "<VALUE>",
        "AUDIO_MAX_BYTES": "2G",
        "TRUSTED_PROXIES": "loopback and private ranges",
        "MAX_OUTPUT_BYTES": "512M",
        "MCP_TOKEN_SECRET": "<VALUE>",
        "INFLIGHT_AUDIO_BYTES": "1G",
        "AUDIO_MAX_BYTES_PER_KEY": "a quarter of AUDIO_MAX_BYTES",
        "TTS_CONCURRENCY_PER_KEY": "2"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
BAKBAK_API_KEY secret Yes Your API key. Without it the server still starts and lists its tools; every call explains how to set the key. (Local mode)
BAKBAK_MCP_OUTPUT_DIR No Where new audio files go. Created when needed; ~ is expanded. (Local mode) Default: ~/Documents/Bakbak (or ~/Bakbak if there is no Documents)
BAKBAK_BASE_URL No API base URL, for example a staging deployment. Default: https://hub.getraya.app
HOST No Listening address. (Hosted mode) Default: 0.0.0.0
PORT No Listening port. (Hosted mode) Default: 8080
AUDIO_DIR No Where audio is kept until it expires. (Hosted mode) Default: <tmp>/bakbak-mcp-audio
AUDIO_TTL No How long audio links work: seconds, or 90s, 30m, 1h. (Hosted mode) Default: 1h
LOG_LEVEL No debug, info, warn or error. Logs are JSON lines on stderr; stdout carries only the protocol. Default: info
MCP_PUBLIC_URL No Public origin, e.g. https://mcp.bakbak.si. Every advertised URL is built from it, never from the Host header. Required for hosted mode (bakbak-mcp --http).
AUDIO_MAX_BYTES No Cap on stored audio; the oldest files go first. Bytes, or 512M, 2G. (Hosted mode) Default: 2G
TRUSTED_PROXIES No CIDRs of reverse proxies whose CF-Connecting-IP / X-Forwarded-For are believed (for per-address rate limits). Empty trusts none. (Hosted mode) Default: loopback and private ranges
MAX_OUTPUT_BYTES No Most audio one text_to_speech call may produce, estimated from the text before any credits are spent. (Hosted mode) Default: 512M
MCP_TOKEN_SECRET No Secret for sealing OAuth tokens: at least 32 characters (openssl rand -base64 48). Rotate with new_kid:new_secret,old_kid:old_secret: the first seals, all open. Required for hosted mode (bakbak-mcp --http).
INFLIGHT_AUDIO_BYTES No Most estimated audio being produced at once across all calls; at least MAX_OUTPUT_BYTES. (Hosted mode) Default: 1G
AUDIO_MAX_BYTES_PER_KEY No Stored audio per API key; a key's own oldest files go first, so one key cannot push out everyone else's links. (Hosted mode) Default: a quarter of AUDIO_MAX_BYTES
TTS_CONCURRENCY_PER_KEY No Most text_to_speech calls running at once per API key. (Hosted mode) Default: 2

Similar servers