Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Kling AI MCP connector

OAuth2.1/DCRAIMediaDesign

Kling AI is a video and image generation platform. This MCP connector exposes Kling AI capabilities — including video generation and image generation —...

Kling AI MCP connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'klingmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Kling AI MCP:', link)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'klingmcp_kling_list_actions',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • List kling — List all available Kling models for video generation
  • Get kling — Query multiple video generation tasks at once
  • Image kling generate video from — Generate AI video using reference images as start and/or end frames
  • Video kling generate, kling extend — Generate AI video from a text prompt using Kling
  • Motion kling generate — Transfer motion from a reference video to a character image

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

klingmcp_kling_extend_video#Extend an existing video with additional content.6 params

Extend an existing video with additional content.

NameTypeRequiredDescription
promptstringrequiredDescription of what should happen in the extended portion of the video.
video_idstringrequiredID of the video to extend.
cfg_scalenumberoptionalClassifier-free guidance scale controlling prompt adherence.
modestringoptionalGeneration mode controlling quality and resolution.
modelstringoptionalKling model to use for the extension.
negative_promptstringoptionalThings to avoid in the extended video.
klingmcp_kling_generate_motion#Transfer motion from a reference video to a character image.7 params

Transfer motion from a reference video to a character image.

NameTypeRequiredDescription
image_urlstringrequiredURL of the character image to animate.
video_urlstringrequiredURL of the reference video providing the motion to transfer.
callback_urlstringoptionalWebhook URL to receive task completion notifications.
character_orientationstringoptionalOrientation source for the character.
keep_original_soundstringoptionalWhether to keep the original sound from the reference video ('yes' or 'no').
modestringoptionalGeneration mode controlling quality and resolution.
promptstringoptionalOptional text description to guide the motion transfer.
klingmcp_kling_generate_video#Generate AI video from a text prompt using Kling.10 params

Generate AI video from a text prompt using Kling.

NameTypeRequiredDescription
promptstringrequiredDescription of the video to generate.
aspect_ratiostringoptionalVideo aspect ratio.
callback_urlstringoptionalWebhook URL to receive task completion notifications.
camera_controlstringoptionalCamera control parameters as a JSON string.
cfg_scalenumberoptionalClassifier-free guidance scale controlling prompt adherence.
durationintegeroptionalVideo duration in seconds.
generate_audiobooleanoptionalWhether to generate audio synchronously alongside the video.
modestringoptionalGeneration mode controlling quality and resolution.
modelstringoptionalKling model to use for video generation.
negative_promptstringoptionalThings to avoid in the generated video.
klingmcp_kling_generate_video_from_image#Generate AI video using reference images as start and/or end frames.11 params

Generate AI video using reference images as start and/or end frames.

NameTypeRequiredDescription
promptstringrequiredDescription of the video motion and content.
aspect_ratiostringoptionalVideo aspect ratio.
callback_urlstringoptionalWebhook URL to receive task completion notifications.
cfg_scalenumberoptionalClassifier-free guidance scale controlling prompt adherence.
durationintegeroptionalVideo duration in seconds.
end_image_urlstringoptionalURL of the image to use as the last frame of the video.
generate_audiobooleanoptionalWhether to generate audio synchronously alongside the video.
modestringoptionalGeneration mode controlling quality and resolution.
modelstringoptionalKling model to use for video generation.
negative_promptstringoptionalThings to avoid in the generated video.
start_image_urlstringoptionalURL of the image to use as the first frame of the video.
klingmcp_kling_get_task#Query the status and result of a video generation task.1 param

Query the status and result of a video generation task.

NameTypeRequiredDescription
task_idstringrequiredThe task ID returned from a generation request.
klingmcp_kling_get_tasks_batch#Query multiple video generation tasks at once.1 param

Query multiple video generation tasks at once.

NameTypeRequiredDescription
task_idsarrayrequiredList of task IDs to query. Maximum recommended batch size is 50 tasks.
klingmcp_kling_list_actions#List all available Kling API actions and corresponding tools.0 params

List all available Kling API actions and corresponding tools.

klingmcp_kling_list_models#List all available Kling models for video generation.0 params

List all available Kling models for video generation.