<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AI Creation Workflows]]></title><description><![CDATA[AI Creation Workflows]]></description><link>https://ai-creation-workflows.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 08:58:21 GMT</lastBuildDate><atom:link href="https://ai-creation-workflows.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Kling AI for developers: choosing the MCP plugin or npm CLI]]></title><description><![CDATA[Choose Kling’s regional plugin, MCP endpoint, or npm CLI. Install the Global or China CLI and verify models and credits.]]></description><link>https://ai-creation-workflows.hashnode.dev/kling-ai-for-developers-choosing-the-mcp-plugin-or-npm-cli</link><guid isPermaLink="true">https://ai-creation-workflows.hashnode.dev/kling-ai-for-developers-choosing-the-mcp-plugin-or-npm-cli</guid><category><![CDATA[cli]]></category><category><![CDATA[npm]]></category><category><![CDATA[mcp]]></category><category><![CDATA[#kling]]></category><dc:creator><![CDATA[William Chen]]></dc:creator><pubDate>Wed, 18 Nov 2026 14:49:19 GMT</pubDate><content:encoded><![CDATA[<p>If you want to use Kling from an AI assistant or a script, there are three practical routes: a ready-made plugin, a direct MCP connection, or the command-line client. They reach the same creative service through different workflows.</p>
<p>This is an independent setup guide. Use the official Kling guide as the source of truth for current setup details: <a href="https://kling.ai/app/mcp/guide">https://kling.ai/app/mcp/guide</a></p>
<h2>Pick the route that fits</h2>
<ul>
<li><strong>Plugin:</strong> the shortest path when your assistant supports Kling’s plugin integration. Follow the assistant-specific steps in the official guide.</li>
<li><strong>Direct MCP:</strong> connect an MCP-capable client to Kling’s official regional endpoint. The Global endpoint is <a href="https://kling.ai/mcp/plugin">https://kling.ai/mcp/plugin</a>; China is <a href="https://klingai.com/mcp/plugin">https://klingai.com/mcp/plugin</a>. Sign in through OAuth when prompted.</li>
<li><strong>CLI:</strong> best for terminal workflows, repeatable steps, and shell scripts. The npm CLI is an MCP client, so it uses Kling’s MCP tools rather than a separate generation API.</li>
</ul>
<p>For one assistant, configure one connection route (plugin, direct MCP, or CLI) to keep tool discovery clear.</p>
<h2>Install the npm CLI</h2>
<p>Choose the package for the Kling region where your account and credits are managed:</p>
<p><strong>Global</strong></p>
<pre><code class="language-sh">npm install --global @klingai/cli-global --registry=https://registry.npmjs.org
</code></pre>
<p><strong>China</strong></p>
<pre><code class="language-sh">npm install --global @klingai/cli-cn --registry=https://registry.npmjs.org
</code></pre>
<p>Package pages: <a href="https://www.npmjs.com/package/@klingai/cli-global">Global CLI</a> · <a href="https://www.npmjs.com/package/@klingai/cli-cn">China CLI</a>.</p>
<p>Then authenticate and inspect the account’s available tools and models:</p>
<pre><code class="language-sh">kling login
kling who_am_i
</code></pre>
<p>Use a model name returned by <code>who_am_i</code> rather than assuming model names stay fixed. For example, after replacing <code>&lt;model&gt;</code> with an available value:</p>
<pre><code class="language-sh">kling text_to_image --model &lt;model&gt; "A small glass greenhouse in a rainy city at blue hour" --poll
</code></pre>
<p>Generation uses the credits in the signed-in regional account. Check the account and model availability before submitting work.</p>
<h2>Want the plugin package instead?</h2>
<p>The plugin packages are also published on npm:</p>
<ul>
<li><a href="https://www.npmjs.com/package/@klingai/plugin-global">Global plugin</a></li>
<li><a href="https://www.npmjs.com/package/@klingai/plugin-cn">China plugin</a></li>
</ul>
<p>Use the install and setup command shown in Kling’s official guide for your assistant. Plugin and CLI installation are independent options; you do not need both for the same assistant.</p>
<h2>Quick checklist</h2>
<ol>
<li>Pick Global or China based on the account you will authorize.</li>
<li>Choose plugin, direct MCP, or CLI for each assistant/workflow.</li>
<li>Confirm the tools and model list after login.</li>
<li>Check credits before starting image or video generation.</li>
</ol>
<p>Official guide: <a href="https://kling.ai/app/mcp/guide">https://kling.ai/app/mcp/guide</a>. This article is an independent developer walkthrough, not an official Kling announcement.</p>
]]></content:encoded></item></channel></rss>