🎬 The FIRST MCP server for Kling AI video generation! Generate stunning AI videos directly from Claude.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
KLING_ACCESS_KEYKLING_SECRET_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。