Skip to main content
Glama
README.md
<h1 align="center">SonaVid MCP</h1>

<p align="center">
  <b>Narrate any video from your AI assistant.</b><br>
  Silent screen recording in, voiced and mixed MP4 out — driven by Claude, VS Code, Cursor, Codex or n8n.
</p>

<p align="center">
  <a href="server.json"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP_Registry-com.sonavid%2Fmcp-5b5ee8"></a>
  <a href="https://sonavid.com/docs/mcp"><img alt="Docs" src="https://img.shields.io/badge/docs-sonavid.com-0077c8"></a>
  <a href="https://github.com/acieslik/sonavid-mcp/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/acieslik/sonavid-mcp/actions/workflows/ci.yml/badge.svg"></a>
  <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-94a3b8"></a>
</p>

<p align="center">
  <img src="assets/demo.gif" width="800" alt="SonaVid watches a silent screen recording and writes a timed narration script, shown on a timeline">
</p>

[SonaVid](https://sonavid.com) watches a video, writes a narration script timed to what happens on
screen, speaks it with a studio or native voice, mixes in music and renders the final MP4. This
repository is the home of its **remote MCP server**: setup for every major client, runnable samples
and a full tools reference.

```
https://sonavid.com/mcp        Streamable HTTP · stateless · Authorization: Bearer sv_live_…
```

The server is hosted — there is nothing to install or run. This repo contains no server code.

## What you can ask

> Narrate https://example.com/demo.mp4 in English. Tell me what it costs before you spend anything,
> then give me the download link.

> Make German, French and Japanese versions with native voices, keeping the original timings.

> Rewrite the second sentence to mention the free trial, regenerate only that line and render again.

More in [examples/prompts.md](examples/prompts.md).

<p align="center">
  <a href="https://sonavid.com/examples/saas-walkthrough-narrated.mp4"><img src="assets/narrated-poster.jpg" width="640" alt="Narrated product walkthrough — click to watch"></a><br>
  <sub>▶ <a href="https://sonavid.com/examples/saas-walkthrough-narrated.mp4">Watch the narrated result</a> · compare the <a href="https://sonavid.com/examples/saas-walkthrough-silent.mp4">silent original</a></sub>
</p>

## Quickstart

1. **Get an API key.** Sign in at [sonavid.com](https://sonavid.com), then
   [Profile → API keys](https://sonavid.com/app/profile). API access is part of the **Pro** and
   **Studio** plans ([pricing](https://sonavid.com/pricing)).
2. **Put it in your environment:** `export SONAVID_API_KEY=sv_live_...`
3. **Add the server to your client.** For Claude Code:

   ```bash
   claude mcp add --transport http --scope user sonavid https://sonavid.com/mcp \
     --header "Authorization: Bearer $SONAVID_API_KEY"
   ```

   or for clients that read an `mcpServers` file (VS Code, Claude Code `.mcp.json`):

   ```json
   {
     "mcpServers": {
       "sonavid": {
         "type": "http",
         "url": "https://sonavid.com/mcp",
         "headers": { "Authorization": "Bearer ${SONAVID_API_KEY}" }
       }
     }
   }
   ```

   Cursor uses the same block with `${env:SONAVID_API_KEY}` — see [clients/cursor.md](clients/cursor.md).

4. **Ask:** *"What's my SonaVid credit balance?"* — the assistant should call `get_account`.

### Every client

| Client                                     | Setup                                     |
| ------------------------------------------ | ----------------------------------------- |
| Claude (claude.ai, Desktop, mobile)        | [clients/claude.md](clients/claude.md)    |
| Claude Code                                | [clients/claude-code.md](clients/claude-code.md) |
| VS Code (GitHub Copilot)                   | [clients/vscode.md](clients/vscode.md)    |
| Cursor (Grok Build)                        | [clients/cursor.md](clients/cursor.md)    |
| Codex (CLI, IDE, ChatGPT desktop)          | [clients/codex.md](clients/codex.md)      |
| Devin Desktop / CLI (formerly Windsurf)    | [clients/devin.md](clients/devin.md)      |
| n8n                                        | [clients/n8n.md](clients/n8n.md)          |

Anything else that speaks Streamable HTTP works with the URL and the bearer header.

## Tools

Eighteen, in pipeline order. Full parameters: [docs/tools.md](docs/tools.md).

| Stage                    | Tools                                                                                   | Cost                      |
| ------------------------ | --------------------------------------------------------------------------------------- | ------------------------- |
| Catalogues               | `list_voices` `list_languages` `list_music_themes` `get_account`                        | Free                      |
| Projects                 | `create_project` `list_projects` `get_project` `delete_project`                         | Free                      |
| Script and configuration | `get_script` `update_script` `configure_audio` `estimate_cost`                          | Free                      |
| Analyze                  | `analyze_video`                                                                         | 5 credits / video-minute  |
| Voiceover                | `generate_voiceover`                                                                    | ~30 credits / speech-minute; unchanged lines are free |
| Render                   | `render_video`                                                                          | Free                      |
| Jobs and output          | `get_job` `cancel_job` `get_download_url`                                               | Free                      |

Plus two pinnable resources: `sonavid://voices` and `sonavid://music-themes`.

**Built for agents:** every result carries the remaining credit balance; long jobs return a
`jobId` with the `nextPollSeconds` to wait; starting a job that is already running returns the
existing one (`alreadyRunning: true`) and charges nothing; errors start with a code the model can
act on (`INSUFFICIENT_CREDITS: … Do NOT retry`); `delete_project` is annotated destructive so
clients ask first.

## Examples

| Example                                                     | What it shows                                                  |
| ----------------------------------------------------------- | -------------------------------------------------------------- |
| [TypeScript](examples/typescript)                           | Official SDK client: quickstart, full narration, tools reference generator |
| [Python](examples/python)                                   | Official `mcp` SDK: quickstart and full narration              |
| [curl](examples/curl/mcp.sh)                                | Raw JSON-RPC with nothing but `curl` and `jq`                   |
| [n8n workflow](examples/n8n/sonavid-narrate.json)           | Import-ready pipeline with proper job polling                  |
| [GitHub Actions](examples/github-actions/release-video.yml) | Narrate a demo video on every release                          |
| [Prompts](examples/prompts.md)                              | Copy-paste requests for any assistant                          |

<img src="assets/terminal-demo.gif" width="800" alt="The TypeScript sample narrating a silent video over MCP: download, script, voiceover, render, signed download link">

<sub>A real run of the TypeScript sample against `https://sonavid.com/mcp`, waits shortened.</sub>

## Good to know

- **Videos come in by URL.** The server is remote and cannot read your disk. Pass any HTTPS link —
  a presigned S3 URL works — or upload in the [web app](https://sonavid.com/app) and let the
  assistant continue from `list_projects`.
- **Limits** are per key: Pro 600 and Studio 2000 MCP requests per hour, plus a per-plan job queue.
  See [Limits](https://sonavid.com/docs/limits).
- **Keys** can carry scopes (`projects:read`, `projects:write`, `jobs:write`) and a monthly credit
  budget — give automations a key that cannot drain the account.
  See [Authentication](https://sonavid.com/docs/authentication).
- **Prefer REST?** The same pipeline is a [REST API](https://sonavid.com/docs/api) with an OpenAPI
  spec, and the [recipes](https://sonavid.com/docs/recipes) cover batch and CI use.

## Help

- Something in this repo wrong or out of date? [Open an issue](https://github.com/acieslik/sonavid-mcp/issues/new/choose).
- Account, billing or credits: support@sonavid.com.
- Never post your `sv_live_` key in an issue — revoke it in your profile if you did.

## License

The samples and documentation in this repository are [MIT](LICENSE). The SonaVid service itself is
governed by its [terms](https://sonavid.com/terms).