> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bakbak.si/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bakbak.si/_mcp/server.

# Quickstart

## Set up

#### claude.ai

1. Open **Settings → Connectors** and choose **Add custom connector**.
   On Team and Enterprise plans an owner adds it for the organization.
2. Name it `Bakbak` and enter the URL `https://mcp.bakbak.si/mcp`.
3. Click **Connect**. A Bakbak page opens: paste your API key and click **Connect**.

#### Claude Desktop

**One click:** download `bakbak-mcp-<version>.mcpb` from the
[latest release](https://github.com/raya-voice-ai/bakbak-mcp/releases/latest)
and open it. Claude Desktop asks for your API key and where to save audio.

**Or by hand**, in `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "bakbak": {
      "command": "npx",
      "args": ["-y", "bakbak-mcp"],
      "env": { "BAKBAK_API_KEY": "YOUR_BAKBAK_API_KEY" }
    }
  }
}
```

#### Claude Code

Hosted:

```bash
claude mcp add --transport http bakbak https://mcp.bakbak.si/mcp \
  --header "Authorization: Bearer YOUR_BAKBAK_API_KEY"
```

Local (audio goes to `~/Documents/Bakbak`):

```bash
claude mcp add bakbak -e BAKBAK_API_KEY=YOUR_BAKBAK_API_KEY -- npx -y bakbak-mcp
```

#### Cursor

In `~/.cursor/mcp.json`, hosted (Cursor opens the Bakbak sign-in page):

```json
{ "mcpServers": { "bakbak": { "url": "https://mcp.bakbak.si/mcp" } } }
```

or local:

```json
{
  "mcpServers": {
    "bakbak": {
      "command": "npx",
      "args": ["-y", "bakbak-mcp"],
      "env": { "BAKBAK_API_KEY": "YOUR_BAKBAK_API_KEY" }
    }
  }
}
```

#### VS Code

`.vscode/mcp.json` (VS Code asks for the key once and stores it securely):

```json
{
  "inputs": [
    { "type": "promptString", "id": "bakbak-api-key", "description": "Bakbak API key", "password": true }
  ],
  "servers": {
    "bakbak": {
      "type": "http",
      "url": "https://mcp.bakbak.si/mcp",
      "headers": { "Authorization": "Bearer ${input:bakbak-api-key}" }
    }
  }
}
```

Any other MCP client: connect to `https://mcp.bakbak.si/mcp` (streamable HTTP)
with `Authorization: Bearer <key>` or OAuth, or run `npx -y bakbak-mcp` over stdio
with `BAKBAK_API_KEY` set. Local mode needs Node.js 22 or newer.

## Example prompts

* "List the Hindi voices and read *नमस्ते, आपका स्वागत है* in two of them so I can compare."
* "Turn this announcement into an 8 kHz μ-law file for our phone system."
* "Read this paragraph in Tamil, a little slower than normal, and save it as `welcome.wav`."

## Configuration (local mode)

| Variable                | Default                   |                                                |
| ----------------------- | ------------------------- | ---------------------------------------------- |
| `BAKBAK_API_KEY`        | none                      | Your API key. Never passed as a tool argument. |
| `BAKBAK_MCP_OUTPUT_DIR` | `~/Documents/Bakbak`      | Where audio files are saved.                   |
| `BAKBAK_BASE_URL`       | `https://hub.getraya.app` | The API's address.                             |

The [README](https://github.com/raya-voice-ai/bakbak-mcp#readme) has the full
tool reference, Windsurf setup and self-hosting instructions.