Skip to content

revathi-prasad/Claude-klingAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude + Kling AI

Let Claude create videos and images for you using Kling AI.

What You Can Do

  • Create videos from text - Describe what you want and get a video
  • Create videos from images - Turn a photo into an animated video
  • Create images - Generate images from descriptions

Setup

Step 1: Get a Kling AI API Key

  1. Go to klingai.com/global/dev
  2. Create an account or sign in
  3. Find your API key in the dashboard
  4. Copy the key (you'll need it in Step 3)

Step 2: Install

Open your terminal and run:

cd Claude-klingAI
pip install -r requirements.txt

Step 3: Add to Claude Desktop

Open your Claude Desktop config file:

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

Add this (replace your_api_key_here with your actual key):

{
  "mcpServers": {
    "kling-ai": {
      "command": "python",
      "args": ["/full/path/to/Claude-klingAI/server.py"],
      "env": {
        "KLING_API_KEY": "your_api_key_here"
      }
    }
  }
}

Step 4: Restart Claude Desktop

Close and reopen Claude Desktop. You should see "kling-ai" in the tools menu.

How to Use

Just ask Claude naturally:

  • "Create a video of a sunset over the ocean"
  • "Generate an image of a cozy cabin in the mountains"
  • "Turn this image into a video" (paste an image URL)

Claude will start the generation and give you a task ID. After a few seconds, ask Claude to check on it and you'll get your video or image URL.

Available Tools

Tool What it does
generate_video Creates a video from text or an image
generate_image Creates an image from text
check_task Checks if your video/image is ready

Troubleshooting

"API error" message: Check that your API key is correct and you have credits in your Kling AI account.

Tool not showing in Claude: Make sure the path in your config file is correct and you've restarted Claude Desktop.

Built with [Claude Code]

About

MCP server connecting Claude Desktop to Kling AI for video and image generation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages