<p align="center"><img src="https://cdn.jsdelivr.net/npm/@captain_americka/tsiky-mcp/assets/brand/tsiky-icon-512.png" width="120" alt="Tsiky"></p>

<h1 align="center">Tsiky</h1>

<p align="center"><b>Make short animated videos that star you, as a cartoon, from your AI assistant.</b></p>

<p align="center"><i>Tsiky</i> means "smile" in Malagasy.</p>

---

Tsiky is an MCP server. Ask your assistant for a video and it works with Tsiky like a small animation studio. It writes the script with you, draws you from one photo, draws every decor and prop the story needs, sets the sound, and renders an MP4 on your own computer.

Nothing is rendered until you have approved each step, so the final video always matches what you saw and heard.

```
1. Script → 2. Identity (optional) → 3. Character → 4. Storyboard → 5. Sound → 6. Video
```

## What it does

- **You as the star.** Your assistant reads your hair, glasses, skin tone and outfit from one photo. Tsiky draws a rigged character that blinks, gestures, changes expression and lip-syncs.
- **Made to measure.** There is no fixed list of backgrounds. When a scene happens in a kitchen, on a beach or in a recording booth, your assistant draws that place and the objects in it, in your colours, and animates them in.
- **Twelve layouts.** Talk, explanation panel, cards, close-up, quote, key figure, comparison, steps, screenshot, intro, outro, or a free layout made only of your drawings.
- **Your identity.** Logo, colours, fonts, shapes and caption style, applied to every scene.
- **Sound.** An expressive voice-over with a tone per scene, your own recordings, or music only. Music is played on recorded instruments and a real drum kit, and sound effects follow the animation.
- **Local.** No API key and no cloud service. Your photo is never uploaded by Tsiky.
- **Formats.** Landscape 1920×1080, vertical 1080×1920 and square 1080×1080. MP4 (H.264 and AAC) at 30 fps.

## Quick start

### 1. Requirements

- Node.js 20 or later
- FFmpeg on your PATH (`brew install ffmpeg`, `winget install ffmpeg` or `sudo apt install ffmpeg`)
- Python 3.10 or later

### 2. Set up rendering and sound

```bash
npx -y @captain_americka/tsiky-mcp setup
```

This installs the Chromium build used for rendering and the Python audio packages (numpy, scipy, soundfile, kokoro-onnx). It also downloads the local voice model (about 350 MB) into `~/.video-mcp/tts`.

Add `--no-voice` to skip the voice model. You can still make music-only videos or use your own recordings.

Then check that everything is in place:

```bash
npx -y @captain_americka/tsiky-mcp doctor
```

### 3. Connect your assistant

**Claude Code**

```bash
claude mcp add tsiky -- npx -y @captain_americka/tsiky-mcp
```

**Claude Desktop.** Open Settings, then Developer, then Edit Config, and add:

```json
{
  "mcpServers": {
    "tsiky": {
      "command": "npx",
      "args": ["-y", "@captain_americka/tsiky-mcp"]
    }
  }
}
```

Restart Claude Desktop. Tsiky appears in the tools menu.

**Other MCP clients.** Any client that runs stdio servers can start Tsiky with `npx -y @captain_americka/tsiky-mcp`. Tsiky is also listed in the official MCP Registry as `io.github.erickarazafimbahiny-ux/tsiky`.

### 4. Ask for a video

Attach a photo of yourself and ask, for example:

> Make me a 30-second video about what I do. Use my photo for the character. Start in my office and end on a beach at sunset. Music only, no voice-over.

Your assistant guides you through each step and shows you the result before going on.

## How a video is made

| Step | What happens | What you approve |
|---|---|---|
| 1. Script | Scene by scene: what is said, what we see, where it happens, the layout, the tone of voice. Facts come with sources. | The written script |
| 2. Identity (optional) | Your logo, colours, fonts, shapes and caption style. Skip it to keep the soft pink default. | A brand board with three frames of your video |
| 3. Character | Drawn from your photo, adjustable trait by trait. | A character sheet with five poses |
| 4. Storyboard | One key image per scene, with timings and text. | The storyboard board |
| 5. Sound | Voice-over, your recordings or music only, with music and sound effects. | The full mix |
| 6. Video | Rendered frame by frame in the background, with progress reports. | The MP4 |

When you change a step that is already approved, only the steps built from it go back to draft. For example, a script change does not undo your character.

## Scenes

Every scene of the script can set:

| Option | Values |
|---|---|
| `layout` | `intro`, `talk`, `explain-panel`, `fullscreen-visual`, `closeup`, `quote`, `big-number`, `compare`, `steps`, `showcase`, `free`, `outro` |
| `title`, `onScreenText`, `icons`, `columns`, `image` | The texts and visuals of the layout. About 2,000 line icons, searchable with `find_icons`. Screenshots in a browser, phone or card frame |
| `decor` | A decor drawn to measure for the scene, as SVG in the brand colours. `decor.from` reuses another scene's decor |
| `elements` | Objects drawn to measure (a phone, a chart, a sign, a cup…), placed anywhere, with an entrance (pop, fade, rise, drop, slide, wipe), an idle motion (float, pulse, sway, spin, bounce), a start time, and a layer behind or in front of the character |
| `background`, `backgroundImage` | Quick ready-made backgrounds (brand, plain, pattern, office, home, cafe, city, night, park, studio) or your own image |
| `expression` | neutral, happy, curious, focused, proud, sleepy |
| `pose` | rest, hello, crossed, point, cheer |
| `character`, `characterSize` | left, center, right, hidden; small, medium, large |
| `colors` | Colour overrides for one scene |
| `transition` | soft, fade, slide, zoom, wipe, cut |
| `camera` | push, pull, pan, static |
| `ambience` | Background sound of the place: room, office, studio, kitchen, cafe, beach, park, city, night, rain, booth |
| `voiceTone` | neutral, warm, excited, calm, serious, playful, curious, surprised, confident, sad |
| `duration`, `showCaptions` | Minimum length in seconds; captions on or off |

In the narration, `*word*` stresses a word and `...` adds a hesitation.

`preview_scene` renders one frame of any scene at any step. It is handy for checking a drawn decor before the storyboard.

## Sound

| Option | How |
|---|---|
| Voice-over (English by default) | `generate_voice`. Voices: US and UK English, French, female and male (`list_voices`). `expressiveness` goes from 0 (flat) to 1 (very expressive) |
| Your own voice | `use_recording` for each scene. The mouth follows your recording |
| Music only | `choose_music` with `voiceOver: false`. The text stays on screen as captions |
| Music | `pop` and `acoustic` (recorded instruments and real drums), `lofi`, `piano`, `upbeat`, `halloween` (a playful music box), or `none` |
| Sound effects | On by default (`soundEffects`): a whoosh on transitions, a pop for each item or prop, a chime on the title and end cards |
| Background sound | Set `ambience` on a scene (waves on a beach, plates in a kitchen, crickets at night…). It crossfades between scenes and dips under the voice |

## Tools

| Step | Tools |
|---|---|
| Projects | `create_project`, `list_projects`, `get_project`, `validate_stage` |
| Script | `write_script`, `update_scene`, `get_script`, `preview_scene`, `find_icons` |
| Identity | `set_brand`, `preview_brand` |
| Character | `create_character`, `update_character`, `preview_character` |
| Storyboard | `render_storyboard` |
| Sound | `list_voices`, `generate_voice`, `use_recording`, `choose_music`, `preview_audio` |
| Video | `render_video`, `get_render_status` |

Tools return real images and audio (character sheet, brand board, storyboard, previews), so your assistant can show you each result in the conversation.

## Configuration

| Variable | Default | Purpose |
|---|---|---|
| `VIDEO_MCP_HOME` | `~/.video-mcp` | Where projects are saved |
| `TSIKY_TTS_DIR` | `~/.video-mcp/tts` | Voice model folder |
| `TSIKY_SAMPLES_DIR` | `~/.video-mcp/samples` | Instrument samples, downloaded on first use |
| `TSIKY_PYTHON` | `python3` | Python used for sound |

Each project is a folder in `~/.video-mcp/projects/` with its `project.json`, images, audio and the final MP4.

## Privacy

- Tsiky runs entirely on your computer and calls no API.
- Your photo is copied into the project folder and is never uploaded by Tsiky. Your assistant sees the photo you share in the chat, as with any image, in order to describe your traits.
- Network access is only used to download the voice model during setup and the instrument samples the first time you pick music.

## Commands

```bash
npx -y @captain_americka/tsiky-mcp           # start the MCP server (your assistant runs this)
npx -y @captain_americka/tsiky-mcp setup     # install Chromium, the audio packages and the voice model
npx -y @captain_americka/tsiky-mcp doctor    # check the installation
```

## Develop

```bash
npm install
npm run build
node dist/cli.js doctor
```

Test the tools one by one in your browser:

```bash
npx @modelcontextprotocol/inspector node dist/cli.js
```

End-to-end tests run a real MCP client over stdio:

```bash
node test/full.mjs /tmp/tsiky-test path/to/photo.png        # every step, with a French voice-over
node test/music-only.mjs /tmp/tsiky-music path/to/photo.png # music only, skipping the identity step
node test/decor.mjs /tmp/tsiky-decor                        # drawn decors and props, unsafe SVG refused
```

The landing page is in `docs/`, ready for GitHub Pages.

## FAQ

**How long does a render take?** In our tests, about ten minutes for a 45-second landscape video. Your assistant reports the progress.

**Can I change a scene after the storyboard?** Yes. Only the steps built from that scene go back to draft.

**Does it work without a voice-over?** Yes. Choose music only and the text stays on screen as captions.

**Which assistants work with it?** Any MCP client that supports stdio servers and image results, such as Claude Desktop and Claude Code.

## Credits

Made by Ericka Razafimbahiny. Third-party assets and their licences are listed in [NOTICE.md](NOTICE.md).
