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 application API key using the detailed steps below. Check service access and your current balance before the first request.
- 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.
Get your API key
- Open Ace Data Cloud → Applications. Sign in, or register an account first.
- Find General application. If it has not been created, choose Initialize General Application. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and current pricing.
- Copy the API Key from the application card, or open Keys / Manage Keys → Create to create a separate key for this integration. Give it a recognizable name so you can revoke or rotate it independently.
- When creating a key, review Expiration Time, Set Usage Limitation, and Allowed APIs. Enable only the restrictions you need, allow the operations you will call, then click Create and copy the token from the key list. Task lookup does not grant permission to submit a generation. Confirm the application's balance can cover your first request; any trial allowance is whatever your account currently displays.
- Copy only the token value, without quotation marks, spaces, or
Bearer . An API Key / API Token field expects this raw value; only a manually configured HTTP Authorization header needs the Bearer prefix. A platform-... account-management token cannot replace a generation API key.


Save the key in the client's credential store or the environment variable shown below. Never put it in a prompt, shared workflow, screenshot, or Git commit. If authentication fails, check the full copied value, application/service access, expiration, usage limit, and balance before creating another key.
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://platform.acedata.cloud/documents/kling.
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.