🎬 The FIRST MCP server for Kling AI video generation! Generate stunning AI videos directly from Claude.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add kling --env KLING_ACCESS_KEY='<KLING_ACCESS_KEY>' --env KLING_SECRET_KEY='<KLING_SECRET_KEY>' -- npx -y mcp-kling@latest~/.codex/config.toml
[mcp_servers.kling]
command = "npx"
args = ["-y", "mcp-kling@latest"]
env = { KLING_ACCESS_KEY = "<KLING_ACCESS_KEY>", KLING_SECRET_KEY = "<KLING_SECRET_KEY>" }
# codex mcp add kling --env KLING_ACCESS_KEY='<KLING_ACCESS_KEY>' --env KLING_SECRET_KEY='<KLING_SECRET_KEY>' -- npx -y mcp-kling@latest~/.cursor/mcp.json
{
"mcpServers": {
"kling": {
"command": "npx",
"args": [
"-y",
"mcp-kling@latest"
],
"env": {
"KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
"KLING_SECRET_KEY": "<KLING_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"kling": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-kling@latest"
],
"env": {
"KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
"KLING_SECRET_KEY": "<KLING_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"kling": {
"command": "npx",
"args": [
"-y",
"mcp-kling@latest"
],
"env": {
"KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
"KLING_SECRET_KEY": "<KLING_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"kling": {
"command": "npx",
"args": [
"-y",
"mcp-kling@latest"
],
"env": {
"KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
"KLING_SECRET_KEY": "<KLING_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"kling": {
"command": "npx",
"args": [
"-y",
"mcp-kling@latest"
],
"env": {
"KLING_ACCESS_KEY": "<KLING_ACCESS_KEY>",
"KLING_SECRET_KEY": "<KLING_SECRET_KEY>"
}
}
}
}Environment variables
KLING_ACCESS_KEYKLING_SECRET_KEY
Replace the placeholders with your own credentials and keep them out of version control.