Skip to main content
Glama

šŸŽ¬ MCP Kling - The ONLY COMPLETE Kling AI MCP Server!

npm version License: MIT

The world's FIRST and ONLY complete MCP server for Kling AI - now with FULL API support! šŸš€

Transform Claude into a professional AI content studio with complete access to Kling's entire suite of creative tools. Generate videos, create images, add lip-sync, apply effects, and even try on virtual clothing - all through simple conversations with Claude. This isn't just another integration; it's the COMPLETE Kling experience!

🌟 Why This is HUGE

  • 100% COMPLETE: The ONLY MCP server implementing ALL Kling AI features

  • 13+ Tools: Full access to video, image, effects, lip-sync, and more

  • Auto-Download: Automatically saves all generated content locally

  • Multiple Models: Access Kling v1.0, v1.5, v1.6, and KOLORS for images

  • Professional Studio: Create complete productions with effects and audio

  • Account Management: Monitor balance and resource usage

  • Perfect for: Content creators, filmmakers, marketers, developers, and AI enthusiasts

Related MCP server: Gemini MCP

šŸš€ Quick Start

It's incredibly easy to get started!

1. Get your Kling API Credentials

  1. Go to Kling AI Developer Console

  2. Click "+ Create a new API Key"

  3. Save both your Access Key and Secret Key

2. Add to Claude Desktop

Add this configuration to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mcp-kling": {
      "command": "npx",
      "args": ["-y", "mcp-kling@latest"],
      "env": {
        "KLING_ACCESS_KEY": "YOUR_ACCESS_KEY_HERE",
        "KLING_SECRET_KEY": "YOUR_SECRET_KEY_HERE"
      }
    }
  }
}

The MCP server will automatically generate JWT tokens as needed using your credentials.

That's it! Restart Claude Desktop and you're ready to generate amazing videos! šŸŽ‰

šŸ› ļø Complete Feature Set - ALL 13 Tools!

šŸŽ„ Video Generation

1. generate_video

Create stunning videos from text descriptions.

  • Models: v1.0, v1.5, v1.6

  • Duration: 5 or 10 seconds

  • Aspect Ratios: 16:9, 9:16, 1:1

  • Modes: Standard or Professional

2. generate_image_to_video

Transform static images into dynamic videos.

  • Image Types: PNG, JPG, JPEG, WebP

  • Motion Control: Automatic or custom prompts

  • Camera Movement: Static, zoom, pan, or auto

3. check_video_status

Monitor generation progress and auto-download completed videos.

4. extend_video

Seamlessly extend videos by 4-5 seconds.

  • Smart Continuation: AI understands context

  • Custom Prompts: Guide the extension direction

  • Multiple Extensions: Chain for longer videos

šŸŽ™ļø Audio & Effects

5. create_lipsync

Synchronize lip movements with audio.

  • Custom Audio: MP3, WAV, FLAC, OGG

  • Text-to-Speech: 8 voice styles

  • Speed Control: 0.8x to 1.5x

  • Auto-Download: Saves both video and audio

6. apply_video_effect

Professional post-production effects.

  • Fast Motion: Speed up 2x-16x

  • Slow Motion: Slow down 0.5x-0.9x

  • Reverse: Play videos backward

  • Loop: Create seamless loops

šŸŽØ Image Generation

7. generate_image

Create stunning images with KOLORS model.

  • Resolutions: Up to 2K quality

  • Aspect Ratios: 16:9, 9:16, 1:1, 2:3, 3:2

  • Styles: Photorealistic or artistic

  • Batch Generation: Up to 4 images

8. check_image_status

Monitor and auto-download generated images.

9. virtual_try_on

Revolutionary AI fashion try-on.

  • Model Image: Your photo (full body preferred)

  • Garment Image: Clothing to try on

  • Smart Fitting: AI adjusts to body type

  • Realistic Results: Natural fabric draping

šŸ“Š Account Management

10. get_account_balance

Check your Kling credit balance.

11. get_resource_packages

View available subscription packages.

12. list_tasks

Track all your generation tasks.

  • Pagination: Handle large task lists

  • Filtering: By date or status

  • Complete History: All your creations

šŸ’” Complete Examples for Every Feature

šŸŽ¬ Video Generation

You: Generate a video of a futuristic robot dancing in a disco

Claude: I'll create an amazing robot disco video for you!

[Using generate_video tool...]
āœ… Video generation started!
Task ID: k123456789

[Auto-checking status...]
šŸŽ‰ Your video is ready and downloaded!
- File: ./downloads/videos/robot_disco_k123456789.mp4
- Duration: 5 seconds
- Resolution: 1920x1080

šŸ”„ Video Extension Chain

You: Extend that robot video 3 times with: 1) backflip, 2) moonwalk, 3) fireworks finale

Claude: I'll create an epic extended sequence!

[Extension 1: Backflip]
āœ… Extended by 5 seconds

[Extension 2: Moonwalk] 
āœ… Extended by 5 seconds

[Extension 3: Fireworks]
āœ… Extended by 5 seconds

šŸŽ¬ Final video: 20 seconds total!

šŸŽ™ļø Lip Sync with TTS

You: Make the CEO in this video say "Welcome to our product launch" in a professional male voice

Claude: I'll add professional narration to your CEO video.

[Using create_lipsync with TTS...]
āœ… Lip-sync video created!
- Voice: Professional Male
- Speed: 1.0x
- Downloaded: ./downloads/lipsync/ceo_welcome_k987654321.mp4

šŸŽØ Image Generation Batch

You: Generate 4 images of "cyberpunk cat with neon glasses" in different styles

Claude: Creating a batch of cyberpunk cat images!

[Using generate_image tool...]
āœ… Generated 4 unique images:
- ./downloads/images/cyberpunk_cat_1.png
- ./downloads/images/cyberpunk_cat_2.png
- ./downloads/images/cyberpunk_cat_3.png
- ./downloads/images/cyberpunk_cat_4.png

šŸ‘— Virtual Try-On

You: Try this red dress (dress.jpg) on my photo (me.jpg)

Claude: I'll help you virtually try on that dress!

[Using virtual_try_on tool...]
āœ… Virtual try-on complete!
- Result: ./downloads/tryon/red_dress_result.mp4
- The dress fits perfectly and moves naturally!

šŸŽÆ Video Effects Combo

You: Apply slow motion to the first half and fast motion to the second half

Claude: Creating a dramatic tempo change effect!

[Step 1: Splitting video...]
[Step 2: Slow motion on part 1...]
[Step 3: Fast motion on part 2...]
āœ… Effect applied! Downloaded to: ./downloads/effects/tempo_change.mp4

šŸ“Š Account Management

You: Check my balance and show me what I can create

Claude: Let me check your account details!

[Using get_account_balance tool...]
šŸ’° Current Balance: 5,000 credits

With your balance, you can create:
- 50 standard videos (100 credits each)
- 25 professional videos (200 credits each)  
- 100 images (50 credits each)
- 33 lip-sync videos (150 credits each)

šŸŽÆ Revolutionary Use Cases

šŸŽ¬ Film & Video Production

  • Storyboarding: Rapidly prototype scenes

  • VFX Previsualization: Test effects before shooting

  • B-Roll Generation: Create supplementary footage

  • Music Videos: Generate visuals for songs

šŸ“± Social Media Automation

  • TikTok/Reels: Auto-generate trending content

  • Product Showcases: Dynamic product videos

  • Story Series: Chain extended videos

  • Branded Effects: Apply consistent styles

šŸ›ļø E-Commerce Revolution

  • Virtual Fashion Shows: Model clothes on anyone

  • Product Animations: Bring static products to life

  • Try-Before-Buy: Virtual clothing trials

  • 360° Product Views: Generated from single image

šŸŽ“ Education & Training

  • Animated Explanations: Complex concepts simplified

  • Language Learning: Lip-sync in any language

  • Historical Recreations: Bring history to life

  • Scientific Visualizations: Abstract concepts visualized

šŸš€ Auto-Download Magic

All generated content is automatically downloaded and organized:

./downloads/
ā”œā”€ā”€ videos/          # Generated videos
ā”œā”€ā”€ images/          # Generated images  
ā”œā”€ā”€ lipsync/         # Lip-sync videos
ā”œā”€ā”€ effects/         # Effect-applied videos
ā”œā”€ā”€ extended/        # Extended videos
└── tryon/          # Virtual try-on results

Never lose your creations - everything is saved locally with descriptive filenames!

šŸ”§ Advanced Configuration

Video Generation Options

{
  model: "kling-v2-master",   // v1, v1.5, v1.6, or v2-master
  duration: 10,               // 5 or 10 seconds
  aspect_ratio: "16:9",       // 16:9, 9:16, 1:1
  mode: "professional",       // standard or professional
  cfg_scale: 0.7,            // 0-1 (creativity vs accuracy)
  camera_control: {           // Camera movement (V1 only)
    type: "simple",           // Camera movement type
    config: { zoom: 5 }       // Movement parameters
  }
}

Local File Support

NEW in v5.2.0: The MCP server now automatically handles local files!

  • Automatic Upload: Local files and file:// URLs are automatically uploaded to cloud storage

  • Seamless Integration: Just provide local file paths - the server handles the rest

  • Supported Formats: Images (PNG, JPG, JPEG, GIF, WebP) and Videos (MP4, WebM, MOV)

  • Zero Configuration: Works out of the box with Supabase integration

Examples:

// All of these work automatically:
image_url: "/Users/me/image.jpg"           // Local file path
image_url: "file:///Users/me/image.jpg"    // File URL
image_url: "https://example.com/image.jpg" // HTTP URL (used directly)

Image Generation Options

{
  model: "kolors",            // Currently supports KOLORS
  aspect_ratio: "16:9",       // Multiple ratios supported
  image_count: 4,             // 1-4 images per request
  resolution: "2k"            // Up to 2K quality
}

šŸ† Why Choose MCP Kling?

āœ… Feature Complete

  • ONLY server with 100% Kling API coverage

  • 13 tools vs others with just 2-3

  • Auto-download everything

  • Professional features included

⚔ Production Ready

  • Robust error handling

  • Automatic retries

  • Progress tracking

  • Local file management

šŸŽØ Creative Freedom

  • Chain operations for complex workflows

  • Batch processing for efficiency

  • Effect combinations for unique results

  • No limits on creativity

šŸ¤ Contributing

We welcome contributions! Join us in building the future of AI content creation.

Ideas for Contributors:

  • Custom effect presets

  • Workflow templates

  • Integration examples

  • Performance optimizations

šŸ“ License

MIT License - feel free to use in your projects!

šŸ‘„ Authors

Created with ā¤ļø by Boris Djordjevic and the 199 Longevity team.

🌟 Star Us!

If you find this useful, please star the repository! It helps others discover this complete Kling integration.


šŸš€ The ONLY complete Kling MCP server - Install now and unlock the full power of AI content creation!

No other MCP server comes close - this is the complete package!

Available Tools

12 tools
apply_video_effectA

Apply pre-defined animation effects to static images using Kling AI. Create emotionally expressive videos from portraits with effects like hugging, kissing, or playful animations. Dual-character effects (hug, kiss, heart_gesture) require exactly 2 images. Single-image effects (squish, expansion, fuzzyfuzzy, bloombloom, dizzydizzy) require 1 image. Perfect for social media content and creative storytelling.

Inputs: image_urls (required), effect_scene (required), duration, model_name.

check_image_statusC

Check the status of an image generation task

Inputs: task_id (required).

check_video_statusB

Check the status of a video generation task

Inputs: task_id (required).

create_lipsyncA

Create a lip-sync video by synchronizing mouth movements with audio. Supports both text-to-speech (TTS) with various voice options or custom audio upload. The original video must contain a clear, steady human face with visible mouth. Works with real, 3D, or 2D human characters (not animals). Video length limited to 10 seconds.

Inputs: video_url (required), audio_url, tts_text, tts_voice, +2 more.

extend_videoA

Extend a video by 4-5 seconds using Kling AI. This feature allows you to continue a video beyond its original ending, generating new content that seamlessly follows from the last frame. Perfect for creating longer sequences or adding additional scenes to existing videos.

Inputs: task_id (required), prompt (required), model_name, duration, +1 more.

generate_imageB

Generate images from text prompts using Kling AI. Create high-quality images with multiple aspect ratios and optional character reference support. Supports models v1, v1.5, and v2 with customizable parameters for creative control.

Inputs: prompt (required), negative_prompt, model_name, aspect_ratio, +3 more.

generate_image_to_videoC

Generate a video from an image using Kling AI

Inputs: image_url (required), prompt (required), image_tail_url, negative_prompt, +4 more.

generate_videoC

Generate a video from text prompt using Kling AI

Inputs: prompt (required), negative_prompt, model_name, aspect_ratio, +4 more.

get_account_balanceA

Check your Kling AI account balance and total available credits. Provides a comprehensive overview of your account status including total balance and breakdown by resource packages.

Inputs: no named parameters.

get_resource_packagesA

Get detailed information about your Kling AI resource packages including remaining credits, expiration dates, and package types. Useful for monitoring API usage and planning resource allocation.

Inputs: no named parameters.

list_tasksB

List all your Kling AI generation tasks with filtering options. View task history, check statuses, and filter by date range or status. Supports pagination for browsing through large task lists.

Inputs: page, page_size, status, start_time, +1 more.

virtual_try_onA

Apply virtual clothing try-on to a person image using AI. Upload a person image and up to 5 clothing items to see how they would look wearing those clothes. Supports both single and multiple clothing combinations for complete outfit visualization.

Inputs: person_image_url (required), cloth_image_urls (required), model_name.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as generate_image for images and generate_video for videos, but there is some overlap between generate_video and generate_image_to_video, which could cause confusion about when to use each. However, descriptions clarify that generate_image_to_video starts from an image, while generate_video starts from text, helping to mitigate ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear verb_noun structures, such as generate_image, check_video_status, and list_tasks. This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions.

    Tool Count5/5

    With 12 tools, the server is well-scoped for AI media generation and management, covering image creation, video effects, status checks, and account operations. Each tool serves a specific function without redundancy, making the count appropriate for the domain.

    Completeness4/5

    The tool set provides comprehensive coverage for AI media workflows, including generation, effects, status tracking, and account management. A minor gap exists in lacking tools for deleting or managing tasks beyond listing, but core operations are well-covered for creative and administrative needs.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers