Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.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
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).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
.mcp.json (project) or %USERPROFILE%\.claude.json (global).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
.vscode\mcp.json.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
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.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
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.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.
| Name | Required | Description |
|---|---|---|
| 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 |