Skip to main content
MCP server CX Codex

Kling — Claude Code MCP server: what it does, how to install

Connects Kling AI video generation and lip-sync directly to your AI agent. It handles rendering tasks, checks queue status, and downloads assets to the workspace.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env KLING_ACCESS_KEY=<KLING_ACCESS_KEY> --env KLING_SECRET_KEY=<KLING_SECRET_KEY> --env KLING_REQUEST_TIMEOUT_MS=<KLING_REQUEST_TIMEOUT_MS> --env MCP_WORKSPACE_PATH=<MCP_WORKSPACE_PATH> --env KLING_DOWNLOAD_ROOT=<KLING_DOWNLOAD_ROOT> --transport stdio kling -- npx -y @mindstone/mcp-server-kling
Open on GitHub

What Kling does

This package gives your host 10 tools targeting the Kling API. You can generate videos from text prompts or animate still frames. It also stretches clips by 4 to 5 seconds per request. A dedicated tool synchronizes lip movement to speech. Quota checks run through the same interface.

Running this requires Node.js 20+ and API keys: KLING_ACCESS_KEY and KLING_SECRET_KEY. Input media files must live inside MCP_WORKSPACE_PATH. For safety, the server refuses file access to directories like ~/.ssh or /etc. Generated asset URLs expire after 30 days.

What it helps with

  • produce AI videos from text prompts or still frames
  • extend existing Kling video clips by 4 to 5 seconds
  • add lip-synced speech to characters using text or audio
  • save generated media files before the 30-day URL expiration

Example prompts for the agent

  • Generate a video of a wooden boat drifting across a foggy lake using Kling.
  • Check the status of my Kling video generation task.
  • Extend the previous Kling clip and verify the remaining account balance.

How to install Kling

Platform CLI

claude mcp add --env KLING_ACCESS_KEY=<KLING_ACCESS_KEY> --env KLING_SECRET_KEY=<KLING_SECRET_KEY> --env KLING_REQUEST_TIMEOUT_MS=<KLING_REQUEST_TIMEOUT_MS> --env MCP_WORKSPACE_PATH=<MCP_WORKSPACE_PATH> --env KLING_DOWNLOAD_ROOT=<KLING_DOWNLOAD_ROOT> --transport stdio kling -- npx -y @mindstone/mcp-server-kling

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Kling

How to install Kling in Claude Code?

Run this terminal command: claude mcp add mcp-server-kling -e KLING_ACCESS_KEY=<KLING_ACCESS_KEY> -e KLING_SECRET_KEY=<KLING_SECRET_KEY> -- npx -y @mindstone/mcp-server-kling.

What does the Kling MCP server do?

It connects your model to the Kling API for video and image workflows. The agent can trigger renders, track progress, and download output files to your workspace.

Where are downloaded media files saved?

Files are placed into a kling-downloads directory within your defined workspace. The server blocks any attempts to write outside that root to protect sensitive locations.

Similar MCP servers

All MCP servers for AI and ML →

From the same set40

Microsoft 365 SharePoint An MCP server that gives your agent SharePoint through Microsoft Graph: find sites, read libraries and lists, search content, and create sharing links. CX Codex +1 ★ 13repo stars Microsoft 365 Mail MCP server connecting Microsoft 365 Outlook Mail via Graph API. It lets agents search inboxes, send replies, triage messages, and manage out-of-office status. CX Codex +1 ★ 13repo stars Microsoft 365 Files This MCP server connects OneDrive to AI coding hosts through Microsoft Graph for file search, reading, transfers, and sharing links. CX Codex +1 ★ 13repo stars Microsoft 365 Calendar Brings the Outlook calendar from Microsoft 365 into your coding agent: read events, create and edit meetings, find free slots. Handy when you plan the day from the chat window. CX Codex +1 ★ 13repo stars Humaans Connects Humaans to an MCP host so an agent can work with people, roles, time away, offices, and company records. It requires an API key. CX Codex +1 ★ 13repo stars HubSpot A local MCP server that exposes HubSpot CRM to your coding agent: contacts, deals, tickets, tasks and files. Handy when you juggle more than one HubSpot account. CX Codex +1 ★ 13repo stars Google Workspace Connects AI agents to Gmail, Drive, Docs, and Calendar. Gives coding assistants access to emails, files, and scheduling via 124 tools. CX Codex +1 ★ 13repo stars Google Analytics 4 This MCP server lets an AI agent inspect GA4 properties and schemas, then run reports. Use it to explore analytics data from your coding environment. CX Codex +1 ★ 13repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor