# Kling

Connects Kling AI video generation and lip-sync directly to your AI agent. It handles rendering tasks, checks queue status, and downloads assets to the workspace.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 13
- Author: mindstone
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/kling
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/kling

## What it does

This package gives your host 10 tools targeting the Kling API. You can generate videos from text prompts or animate still frames. It also stretches clips by 4 to 5 seconds per request. A dedicated tool synchronizes lip movement to speech. Quota checks run through the same interface.

Running this requires Node.js 20+ and API keys: `KLING_ACCESS_KEY` and `KLING_SECRET_KEY`. Input media files must live inside `MCP_WORKSPACE_PATH`. For safety, the server refuses file access to directories like `~/.ssh` or `/etc`. Generated asset URLs expire after 30 days.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `KLING_ACCESS_KEY`, `KLING_SECRET_KEY`, `KLING_REQUEST_TIMEOUT_MS`, `MCP_WORKSPACE_PATH`, `KLING_DOWNLOAD_ROOT` — 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 KLING_ACCESS_KEY=<KLING_ACCESS_KEY> --env KLING_SECRET_KEY=<KLING_SECRET_KEY> --env KLING_REQUEST_TIMEOUT_MS=<KLING_REQUEST_TIMEOUT_MS> --env MCP_WORKSPACE_PATH=<MCP_WORKSPACE_PATH> --env KLING_DOWNLOAD_ROOT=<KLING_DOWNLOAD_ROOT> --transport stdio kling -- npx -y @mindstone/mcp-server-kling
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add kling --env KLING_ACCESS_KEY=<KLING_ACCESS_KEY> --env KLING_SECRET_KEY=<KLING_SECRET_KEY> --env KLING_REQUEST_TIMEOUT_MS=<KLING_REQUEST_TIMEOUT_MS> --env MCP_WORKSPACE_PATH=<MCP_WORKSPACE_PATH> --env KLING_DOWNLOAD_ROOT=<KLING_DOWNLOAD_ROOT> -- npx -y @mindstone/mcp-server-kling
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "kling": {
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-kling"
            ],
            "env": {
                "KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
                "KLING_SECRET_KEY": "<KLING_SECRET_KEY>",
                "KLING_REQUEST_TIMEOUT_MS": "<KLING_REQUEST_TIMEOUT_MS>",
                "MCP_WORKSPACE_PATH": "<MCP_WORKSPACE_PATH>",
                "KLING_DOWNLOAD_ROOT": "<KLING_DOWNLOAD_ROOT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "kling": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-kling"
            ],
            "env": {
                "KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
                "KLING_SECRET_KEY": "<KLING_SECRET_KEY>",
                "KLING_REQUEST_TIMEOUT_MS": "<KLING_REQUEST_TIMEOUT_MS>",
                "MCP_WORKSPACE_PATH": "<MCP_WORKSPACE_PATH>",
                "KLING_DOWNLOAD_ROOT": "<KLING_DOWNLOAD_ROOT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e KLING_ACCESS_KEY=<KLING_ACCESS_KEY> -e KLING_SECRET_KEY=<KLING_SECRET_KEY> -e KLING_REQUEST_TIMEOUT_MS=<KLING_REQUEST_TIMEOUT_MS> -e MCP_WORKSPACE_PATH=<MCP_WORKSPACE_PATH> -e KLING_DOWNLOAD_ROOT=<KLING_DOWNLOAD_ROOT> kling npx -y @mindstone/mcp-server-kling
```
Replace <…> with your own values

## When to use it
- produce AI videos from text prompts or still frames
- extend existing Kling video clips by 4 to 5 seconds
- add lip-synced speech to characters using text or audio
- save generated media files before the 30-day URL expiration

## Example prompts
- Generate a video of a wooden boat drifting across a foggy lake using Kling.
- Check the status of my Kling video generation task.
- Extend the previous Kling clip and verify the remaining account balance.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107701
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26673
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9298

From the same set: [mindstone/mcp-servers](https://affpapa.org/en/nevibecode/by/mindstone/mcp-servers.md) — 40 cards

---
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
