# LeClap

LeClap gives an agent tools to inspect a video template, validate it, and render an MP4 on your machine. Use it when you need repeatable output from JSON rather than model-generated footage.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 36
- Author: heristop
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/heristop/leclap/tree/HEAD/packages/leclap-mcp
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/leclap

## What it does

The server exposes tools for working with video templates. An agent can browse sample templates, check the schema and motion catalog, validate JSON, then render a video. Other tools inspect local media, transcribe speech, or derive visual style and structure from a reference.

Rendering runs locally through FFmpeg and produces deterministic output. A packaged sample catalog is available at runtime without the app or private creative-kit. Extracting a brand kit from a website requires `--allow-network`; without that flag, this tool cannot fetch the site.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `LECLAP_MCP_OUTPUT_DIR`, `LECLAP_MCP_MEDIA_DIR`, `LECLAP_MCP_RENDER_TIMEOUT_MS`, `LECLAP_MCP_ALLOW_REMOTION`, `LECLAP_MCP_REMOTION_ENTRY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env LECLAP_MCP_OUTPUT_DIR=<LECLAP_MCP_OUTPUT_DIR> --env LECLAP_MCP_MEDIA_DIR=<LECLAP_MCP_MEDIA_DIR> --env LECLAP_MCP_RENDER_TIMEOUT_MS=<LECLAP_MCP_RENDER_TIMEOUT_MS> --env LECLAP_MCP_ALLOW_REMOTION=<LECLAP_MCP_ALLOW_REMOTION> --env LECLAP_MCP_REMOTION_ENTRY=<LECLAP_MCP_REMOTION_ENTRY> --transport stdio leclap-mcp -- npx -y @leclap/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add leclap-mcp --env LECLAP_MCP_OUTPUT_DIR=<LECLAP_MCP_OUTPUT_DIR> --env LECLAP_MCP_MEDIA_DIR=<LECLAP_MCP_MEDIA_DIR> --env LECLAP_MCP_RENDER_TIMEOUT_MS=<LECLAP_MCP_RENDER_TIMEOUT_MS> --env LECLAP_MCP_ALLOW_REMOTION=<LECLAP_MCP_ALLOW_REMOTION> --env LECLAP_MCP_REMOTION_ENTRY=<LECLAP_MCP_REMOTION_ENTRY> -- npx -y @leclap/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "leclap-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@leclap/mcp"
            ],
            "env": {
                "LECLAP_MCP_OUTPUT_DIR": "<LECLAP_MCP_OUTPUT_DIR>",
                "LECLAP_MCP_MEDIA_DIR": "<LECLAP_MCP_MEDIA_DIR>",
                "LECLAP_MCP_RENDER_TIMEOUT_MS": "<LECLAP_MCP_RENDER_TIMEOUT_MS>",
                "LECLAP_MCP_ALLOW_REMOTION": "<LECLAP_MCP_ALLOW_REMOTION>",
                "LECLAP_MCP_REMOTION_ENTRY": "<LECLAP_MCP_REMOTION_ENTRY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "leclap-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@leclap/mcp"
            ],
            "env": {
                "LECLAP_MCP_OUTPUT_DIR": "<LECLAP_MCP_OUTPUT_DIR>",
                "LECLAP_MCP_MEDIA_DIR": "<LECLAP_MCP_MEDIA_DIR>",
                "LECLAP_MCP_RENDER_TIMEOUT_MS": "<LECLAP_MCP_RENDER_TIMEOUT_MS>",
                "LECLAP_MCP_ALLOW_REMOTION": "<LECLAP_MCP_ALLOW_REMOTION>",
                "LECLAP_MCP_REMOTION_ENTRY": "<LECLAP_MCP_REMOTION_ENTRY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LECLAP_MCP_OUTPUT_DIR=<LECLAP_MCP_OUTPUT_DIR> -e LECLAP_MCP_MEDIA_DIR=<LECLAP_MCP_MEDIA_DIR> -e LECLAP_MCP_RENDER_TIMEOUT_MS=<LECLAP_MCP_RENDER_TIMEOUT_MS> -e LECLAP_MCP_ALLOW_REMOTION=<LECLAP_MCP_ALLOW_REMOTION> -e LECLAP_MCP_REMOTION_ENTRY=<LECLAP_MCP_REMOTION_ENTRY> leclap-mcp npx -y @leclap/mcp
```
Replace <…> with your own values

## When to use it
- render an MP4 from a JSON template
- validate a template before rendering
- derive pacing and transitions from a reference clip
- transcribe speech in a local video

## Example prompts
- Create an MP4 from this JSON template and save it to the requested folder.
- Validate this template and report any warnings before rendering.
- Analyze the pacing and transitions in this clip, then apply them as template rules.

## Similar
- [Next AI Draw.io](https://affpapa.org/en/nevibecode/mcp/next-ai-drawio.md) — MCP server · ★ 36398
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [Agent-Native Assets](https://affpapa.org/en/nevibecode/mcp/agent-native-assets.md) — MCP server · ★ 7506
- [Remove AI Watermarks](https://affpapa.org/en/nevibecode/mcp/remove-ai-watermarks.md) — MCP server · ★ 6114
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
