Kling MCP
Kuaishou Kling video generation — text-to-video, image-to-video, extend, motion.

Generate Kling AI video from prompts or stills, extend existing clips, or apply motion control. Multiple model versions and quality modes.
This extension registers the kling MCP server with VS Code so GitHub
Copilot and any other agent that speaks the Model Context Protocol
can call it directly from chat.
Quick Start
- Install this extension. VS Code registers the
kling MCP server automatically.
- Get an API key from Ace Data Cloud (Applications → API Key). New accounts include free trial credit.
- Open Copilot Chat in agent mode and ask for a video task — the extension prompts for the API key the first time and stores it in the OS keychain via VS Code's
SecretStorage.
You can rotate or remove the API key any time from the command palette:
- Kling MCP: Set Ace Data Cloud API Key
- Kling MCP: Clear Ace Data Cloud API Key
The default config talks to the hosted streamable-HTTP endpoint at
https://kling.mcp.acedata.cloud/mcp — no Python, no uvx, no local install needed.
VS Code Setup Guide
For the full VS Code walkthrough, see All Ace Data Cloud MCP servers in VS Code. It covers token setup, project-level and user-level mcp.json, Copilot Agent Mode, and using one Ace Data Cloud token across hosted MCP servers.
Example prompts
- "Generate a Kling video of a panda doing parkour through a bamboo forest."
- "Extend Kling video task with the panda landing and bowing."
8 tools available via this server.
| Tool |
Description |
kling_generate_video |
Generate AI video from a text prompt using Kling. |
kling_generate_video_from_image |
Generate AI video using reference images as start and/or end frames. |
kling_extend_video |
Extend an existing video with additional content. |
kling_generate_motion |
Transfer motion from a reference video to a character image. |
kling_get_task |
Query the status and result of a video generation task. |
kling_get_tasks_batch |
Query multiple video generation tasks at once. |
kling_list_models |
List all available Kling models for video generation. |
kling_list_actions |
List all available Kling API actions and corresponding tools. |
Pricing
From $0.20 per 5s clip. Free trial credit on sign-up. See full pricing at https://docs.acedata.cloud.
Configuration
This extension implements the mcpServerDefinitionProviders contribution point
and registers a single hosted server with VS Code:
Provider id : acedatacloud.kling
Server label: Kling MCP
Server URL : https://kling.mcp.acedata.cloud/mcp
Transport : Streamable HTTP
Auth : Bearer API key from VS Code SecretStorage (or $ACEDATACLOUD_API_TOKEN)
You don't need to edit mcp.json — the extension handles registration and
token handling automatically. If you'd rather configure things by hand, the
sections below show equivalent mcp.json snippets you can use instead of
this extension.
Alternative: manual mcp.json (hosted)
{
"servers": {
"kling": {
"type": "http",
"url": "https://kling.mcp.acedata.cloud/mcp",
"headers": { "Authorization": "Bearer ${input:acedatacloud_api_token}" }
}
},
"inputs": [
{
"type": "promptString",
"id": "acedatacloud_api_token",
"description": "Ace Data Cloud API key",
"password": true
}
]
}
Alternative: local stdio (no network roundtrip)
For offline dev, air-gapped environments, or pinning to a specific PyPI
version, install uv and use:
{
"servers": {
"kling": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-kling"],
"env": { "ACEDATACLOUD_API_TOKEN": "${input:acedatacloud_api_token}" }
}
}
}
uvx will download and run the latest mcp-kling on demand.
Links
License
MIT — see LICENSE.