Let Claude create videos and images for you using Kling AI.
- 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
- Go to klingai.com/global/dev
- Create an account or sign in
- Find your API key in the dashboard
- Copy the key (you'll need it in Step 3)
Open your terminal and run:
cd Claude-klingAI
pip install -r requirements.txtOpen 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"
}
}
}
}Close and reopen Claude Desktop. You should see "kling-ai" in the tools menu.
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.
| 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 |
"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]