Logo von Kie MCP

Kie MCP

Community
mrdainami

Minimal MCP server for calling any KIE.ai endpoint. Pure HTTP shim — no model registry; agent constructs payloads from docs.kie.ai.

Herausgebermrdainami
Repositorykie-mcp
SpracheJavaScript
Forks
14
Sterne
41
Verfügbare Tools
0
Transporttypstdio, streamable-http
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Kie MCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    41 Sterne und 14 Forks im verlinkten Repository.

dainami-kie-mcp

Let your AI agent generate images, videos, and music with the latest AI models — Seedance, Kling, GPT Image 2, Nano Banana, Suno V4, and anything new KIE ships — without leaving the chat.

A tiny MCP server that lets Claude (Code or Desktop), Codex, or any MCP client call any model on KIE.ai on your behalf. Make a 9:16 video with Seedance 2.0 Pro. Edit a product photo with Nano Banana 2. Render a 5-panel storyboard with GPT Image 2. Compose a soundtrack with Suno V4.

It's intentionally dumb on purpose: 5 generic tools instead of one tool per model. The agent reads the JSON shape from docs.kie.ai when it needs to, and constructs the payload itself. When KIE ships a new model tomorrow, this package doesn't have to update — the agent just points at the new docs.


Get set up

Two things first, same for everyone:

  1. Get a KIE.ai API key. Go to kie.ai, sign in, open Dashboard, then API Keys. Create one and copy it. You will paste it during setup.
  2. Download the connector. On this page, click the green Code button, then Download ZIP. Unzip it and move the kie-mcp folder somewhere permanent, like your Documents folder. Your app will point at this folder forever, so don't leave it in Downloads.

Then find your app below:

Your appWhat setup looks likeNeeds Node.js?
Claude Desktop (chat and cowork)Drag one file inNo
Codex (ChatGPT desktop app)Fill in a settings formYes
Codex CLIPaste one commandYes
Claude CodePaste one commandYes

Node.js is a free runtime the connector runs on. If your app needs it, go to nodejs.org, click Get Node.js, download the installer for your computer, and click through it once. Claude Desktop skips this because it has its own copy built in.


Claude Desktop (drag and drop)

  1. Open the folder you downloaded and find kie-mcp.mcpb. (You can also grab just this file from the releases page and skip the ZIP entirely.)
  2. Drag it onto the Claude Desktop window, or go to Settings, then Extensions, and pick it.
  3. When Claude asks for your KIE API key, paste it.
  4. Quit Claude Desktop fully and reopen it.

To check it worked: open a chat, click the + button, then Connectors. "KIE.ai" should be listed with its tools.

This covers cowork too. Connectors installed in Claude Desktop are shared with cowork sessions, so there is nothing separate to set up.


Codex (ChatGPT desktop app)

  1. Install Node.js if you don't have it yet: click Get Node.js on that page, download the installer, click through it.
  2. Get the path to the connector file. In Finder, open your kie-mcp folder, then the dist folder inside it, and find index.js. Right-click it, hold the Option key, and choose Copy "index.js" as Pathname.
  3. In the ChatGPT desktop app, open the Codex side, click your account name (bottom left), then Settings, then MCP servers, then Add server.
  4. On the STDIO tab, fill in:
    • Name: kie
    • Command: node
    • Arguments: paste the pathname you copied in step 2
    • Environment variables: KIE_API_KEY with your key as the value
  5. Save. kie appears in your server list, and the same setup carries over to the Codex CLI and IDE extension automatically.

Then just ask for something: "Make me a 9:16 video of a coffee cup using Seedance." Codex asks permission before each kie tool call. Approve them; that is its normal safety prompt, and generation costs KIE credits from your account.


Codex CLI (one command)

Paste this in your terminal, with your key and your folder's location filled in:

bash
codex mcp add kie --env KIE_API_KEY=YOUR_KEY -- node ~/Documents/kie-mcp/dist/index.js

To check: codex mcp list should show kie as enabled. The same registration also shows up in the ChatGPT desktop app's Codex settings and the IDE extension; they share one config.


Claude Code (one command)

Paste this in Claude Code, with your key and your folder's location filled in:

bash
claude mcp add --scope user kie --env KIE_API_KEY=YOUR_KEY -- node ~/Documents/kie-mcp/dist/index.js

If you put the folder somewhere other than Documents, adjust the path. --scope user makes it available in every project.

To check: claude mcp list should show kie ✓ Connected.


Updating

When a new version ships: download the ZIP again and replace your kie-mcp folder's contents. Your API key lives in your app's settings, not in the folder, so nothing else needs to change. Claude Desktop users drag in the new .mcpb instead.


What the agent does with these tools

Generation on KIE is asynchronous — submit a job, then poll for the result. Typical flow for "make me an image with GPT Image 2":

  1. Agent (optionally) calls kie_fetch_model_docs to confirm the model's current JSON shape.
  2. Agent submits with kie_post:
    ts
    kie_post({
      path: "/api/v1/jobs/createTask",
      body: {
        model: "gpt-image-2",
        input: { prompt: "A serene cabin in the mountains, golden hour", aspect_ratio: "9:16", quality: "high" }
      }
    })
    // → body.data.taskId — save this immediately
  3. Agent polls with kie_get every ~20–30s until done:
    ts
    kie_get({ path: "/api/v1/jobs/recordInfo?taskId=..." })
    // data.state: waiting | generating | success | fail
    // on success → data.resultJson.resultUrls[]
  4. Agent saves the result with kie_download({ url, destPath }).

Cost is billed on submit, not on poll. Persist the taskId right after submitting, and never resubmit a live task.


The 5 tools

ToolWhat it does
kie_post(path, body)POST to any KIE endpoint — submit a generation task (usually /api/v1/jobs/createTask).
kie_get(path)GET from any KIE endpoint — poll task status (usually /api/v1/jobs/recordInfo?taskId=...).
kie_upload_file(localPath, uploadPath?)Upload a local file to KIE storage → returns a hosted URL (~3-day TTL) for use as an @Image/@Video reference.
kie_download(url, destPath)Download a result URL to local disk (creates parent folders).
kie_fetch_model_docs(path | url, force?)Fetch a model's live docs from docs.kie.ai (cached ~3 days) so the agent knows the exact payload shape.

Different model families use slightly different envelopes (Veo, Suno, Flux-Kontext) — the agent reads the model docs and adjusts. The MCP stays generic, so new KIE models work without updating this package.


Environment variables

VariableDefaultRequired
KIE_API_KEY—Yes
KIE_BASE_URLhttps://api.kie.aiNo (override for testing / proxy)
KIE_UPLOAD_URLhttps://kieai.redpandaai.co/api/file-stream-uploadNo
KIE_DOCS_BASEhttps://docs.kie.aiNo
KIE_WORKSPACE_DIRthe server's working directoryRecommended (see Security)

Security model

The agent driving these tools reads untrusted content — model docs, generation results, filenames. Anything it reads can try to instruct it, so the server does not trust the arguments it receives. Four limits are enforced:

  • The API key only reaches configured hosts. kie_post / kie_get accept an absolute URL, but its origin must match KIE_BASE_URL or KIE_UPLOAD_URL, and credentials are dropped whenever a redirect crosses origins.
  • Docs come from one place. kie_fetch_model_docs only fetches from KIE_DOCS_BASE, on every redirect hop — fetched pages enter the agent's context and are cached ~3 days, so an arbitrary source would be a persistent injection channel.
  • File access is confined to a workspace. kie_upload_file and kie_download resolve every path (symlinks included) and refuse anything outside KIE_WORKSPACE_DIR. It defaults to the working directory, which for a host-launched server is arbitrary — set it to your project folder. A workspace of / or your bare home directory is refused.
  • Only media crosses the boundary. Uploads are limited to known media types; downloads refuse dotfiles, dot-directories, build/config files, and executable or script destinations.

Found a problem? Please report it privately through GitHub Security Advisories rather than a public issue.


Develop locally

The repo ships the built dist/index.js (a single self-contained bundle), so users never build anything. To hack on the source:

bash
git clone https://github.com/mrdainami/kie-mcp
cd kie-mcp
npm install
npm run build   # rebuilds dist/index.js via esbuild

For dev with auto-reload:

bash
KIE_API_KEY=kie-... npm run dev

The package is also on npm as dainami-kie-mcp, so terminal users can skip the folder entirely: claude mcp add --scope user kie --env KIE_API_KEY=YOUR_KEY -- npx -y dainami-kie-mcp (same shape for codex mcp add).

To point any other MCP client at the folder, the config shape is always:

json
{
  "mcpServers": {
    "kie": {
      "command": "node",
      "args": ["/absolute/path/to/kie-mcp/dist/index.js"],
      "env": { "KIE_API_KEY": "kie-..." }
    }
  }
}

Note: ChatGPT chat conversations can't use this connector — they only accept servers hosted at a URL, and this one runs locally. The Codex side of the ChatGPT app works fine.


Why it's tiny

Most MCP wrappers around AI APIs hard-code one tool per model: generate_seedance(), generate_gpt_image_2(), generate_suno(). That means:

  • You have to update the wrapper every time the provider ships a new model
  • The wrapper's mental model of each model's JSON shape drifts from reality
  • The wrapper becomes the bottleneck

This package goes the opposite direction: five generic tools that work for everything KIE has, with KIE's docs as the source of truth for shapes. The agent is smart enough to read docs and construct payloads. The MCP just makes the HTTP call.

When KIE ships a new model tomorrow, no PR here. Just point your agent at the new docs.


License

MIT — see LICENSE.

By mrdainami. PRs and issues welcome.

Installation

TypingMind
{
  "mcpServers": {
    "kie-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dainami/kie-mcp"
      ],
      "env": {
        "KIE_API_KEY": "<KIE_API_KEY>"
      }
    }
  }
}

Kie MCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Kie MCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Sie können MCP lokal auf Ihrem Gerät ausführen oder über eine URL eine Verbindung zu einem Remote-MCP-Server herstellen.

Option 1: Lokalen Konnektor verwenden

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Kie MCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Kie MCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "kie-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dainami/kie-mcp"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Kie MCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Kie MCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Kie MCP bei dieser Aufgabe helfen?
Kie MCP
Gerne. Ich habe es gelesen.
Das habe ich mit Kie MCP gefunden.

Option 2: Eine MCP-Server-URL hinzufügen

Nutzen Sie diese Option, wenn Kie MCP bereits auf einem Remote-Server gehostet wird oder Ihr Team einen gemeinsamen Konnektor für mehrere Benutzer benötigt.

1

MCP-Konnektoren öffnen

Gehen Sie in TypingMind zu „Plugins“, öffnen Sie „MCP-Konnektoren“ und wählen Sie dann „URL hinzufügen“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Gehen Sie zu „Plugins“.
  3. Öffnen Sie „MCP-Konnektoren“.
  4. Klicken Sie auf „Neue URL“.
TypingMind-Formular zum Hinzufügen einer benutzerdefinierten MCP-Server-URL
2

Server-URL einfügen

Geben Sie die MCP-Server-URL des Anbieters in das Feld „Server-URL“ ein. Fügen Sie einen Verbindungsnamen, eine Beschreibung, ein Symbol, benutzerdefinierte HTTP-Header oder OAuth-Client-Einstellungen hinzu, falls der Server diese erfordert.

  1. Fügen Sie die MCP-Server-URL des Anbieters in das Feld „Server-URL“ ein.
  2. Geben Sie einen Verbindungsnamen für Kie MCP ein.
  3. Fügen Sie bei Bedarf eine Beschreibung und ein Symbol hinzu, um die Verbindung leichter zu erkennen.
  4. Fügen Sie benutzerdefinierte HTTP-Header oder OAuth-Client-Daten hinzu, falls der Server eine Authentifizierung erfordert.
3

Verbindung erstellen

Klicken Sie auf „Verbindung erstellen“, kehren Sie dann zur Plugin-Liste zurück und prüfen Sie, ob die neue MCP-Verbindung aktiv ist.

  1. Klicken Sie auf „Verbindung erstellen“.
  2. Kehren Sie zur Liste der MCP-Konnektoren zurück.
  3. Prüfen Sie, ob die Verbindung zu Kie MCP als aktiv angezeigt wird.
  4. Aktualisieren Sie die Plugin-Liste, falls die Verbindung nicht sofort angezeigt wird.
4

Modelle ohne erneuten Verbindungsaufbau wechseln

Starten Sie einen Chat mit Ihrem bevorzugten Modell, aktivieren Sie unter „Plugins“ die Tools von Kie MCP und wechseln Sie bei Bedarf zu einem anderen Modell. Die MCP-Verbindung bleibt im TypingMind-Arbeitsbereich verfügbar.

  1. Starten Sie einen neuen Chat in TypingMind.
  2. Wählen Sie das KI-Modell, das Sie verwenden möchten.
  3. Aktivieren Sie die Tools von Kie MCP unter „Plugins“.
  4. Bitten Sie das Modell, das Tool bei Bedarf zu verwenden.
  5. Wechseln Sie zu einem anderen KI-Modell und verwenden Sie dieselbe MCP-Verbindung weiter.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Kie MCP bei dieser Aufgabe helfen?
Kie MCP
Gerne. Ich habe es gelesen.
Das habe ich mit Kie MCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Kie MCP verwendet?

Kie MCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Kie MCP MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Kie MCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Kie MCP MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Kie MCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Kie MCP MCP mit TypingMind?

Sie können Kie MCP in TypingMind über den lokalen MCP-Konnektor oder durch Hinzufügen der URL eines entfernten MCP-Servers verbinden. Verwenden Sie den lokalen Konnektor, wenn der Server auf Dateien, Apps oder private Ressourcen auf Ihrem Gerät zugreifen muss. Nutzen Sie eine Server-URL, wenn der MCP-Server extern gehostet wird.

Welche Tools stellt Kie MCP MCP in TypingMind bereit?

Kie MCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Kie MCP MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Kie MCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇