Connect to the Hosted Service
In a client that supports remote MCP, add a Streamable HTTP server athttps://kling.mcp.acedata.cloud/mcp. When using OAuth, choose to sign in to Ace Data Cloud and confirm authorization in your browser.
In Codex CLI, you can run the following commands, then enter
/mcp in the session to view the server.
Authorization: Bearer <application API Key> in the client’s private settings, and confirm that the application is authorized to call the selected API. You can create or copy a key in the console under “Applications → General Applications → Key Management”. Applications Console
Use an Application Key in Gemini CLI and OpenCode
First, save the application API Key as the client environment variableACEDATACLOUD_API_TOKEN. The following commands use macOS or Linux shell quoting.
For OpenCode 1.x, in the
mcp object of your personal opencode.json, set type: "remote", the hosted URL, and oauth: false for this service, and set the Authorization request header to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x Configuration
Local stdio Integration
After installing uv, local clients can start the MCP process using standard input and output, and Kling requests are sent to Ace Data Cloud by that process. Claude Desktop users can open the local MCP configuration from developer settings, merge the server entry below, replace the placeholder with the application API Key in plain text in their personal configuration, and then restart the client. Clients that support private environment variables can also injectACEDATACLOUD_API_TOKEN from a credential manager.
Initial Verification
After connecting, say to the assistant: “Please call onlykling_list_models and kling_list_actions, and list the models and actions that currently support video generation from a first frame.”
Tools and Usage Examples
For example: “Use this bicycle photo as the first frame, keep the frame shape fixed, and make the woods behind it move slowly backward.” Pass an accessible image URL as
start_image_url to kling_generate_video_from_image. If a task_id is returned, save it, call kling_get_task as prompted by the service, and read the task’s video link once it is complete.
For parameter and result formats, see the API documentation. Video Generation, Motion Transfer, Task Query.
