Logo di 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.

Autoremrdainami
Repositorykie-mcp
LinguaJavaScript
Fork
14
Stelle
41
Strumenti disponibili
0
Tipo di trasportostdio, streamable-http
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Kie MCP mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    41 stelle e 14 fork nel repository collegato.

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.

Installazione

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

Usa MCP Kie MCP con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Kie MCP, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Puoi eseguire MCP localmente sul tuo dispositivo o connetterti all'URL di un server MCP remoto.

Opzione 1: usa il connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Kie MCP come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Kie MCP.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "kie-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dainami/kie-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Kie MCP, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Kie MCP.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Kie MCP per aiutarmi con questa attività?
Kie MCP
Certo. Ho letto.
Ecco cosa ho trovato con Kie MCP.

Opzione 2: aggiungi l'URL di un server MCP

Usa questo metodo se Kie MCP è già ospitato in remoto o se il tuo team vuole un unico connettore condiviso accessibile a più utenti.

1

Apri Connettori MCP

In TypingMind, vai su Plugin, apri Connettori MCP e scegli Aggiungi URL.

  1. Apri TypingMind nel tuo browser.
  2. Vai a Plugin.
  3. Apri Connettori MCP.
  4. Fai clic su Aggiungi URL.
Modulo di TypingMind per aggiungere l'URL di un server MCP personalizzato
2

Incolla l'URL del server

Inserisci l'URL del server MCP fornito dal provider nel campo URL del server. Aggiungi un nome per la connessione, una descrizione, un'icona, header HTTP personalizzati o le impostazioni del client OAuth se richiesti dal server.

  1. Incolla l'URL del server MCP fornito dal provider nel campo URL del server.
  2. Inserisci un nome per la connessione a Kie MCP.
  3. Aggiungi una descrizione e un'icona per riconoscere più facilmente la connessione.
  4. Aggiungi header HTTP personalizzati o i dati del client OAuth se il server richiede l'autenticazione.
3

Crea la connessione

Fai clic su Crea connessione, poi torna all'elenco dei plugin e verifica che la nuova connessione MCP sia attiva.

  1. Fai clic su Crea connessione.
  2. Torna all'elenco dei connettori MCP.
  3. Verifica che la connessione Kie MCP risulti attiva.
  4. Aggiorna l'elenco dei plugin se la connessione non appare subito.
4

Cambia modello senza riconnetterti

Avvia una chat con il tuo modello preferito, abilita gli strumenti di Kie MCP dalla sezione Plugin e passa a un altro modello quando serve. La connessione MCP rimane disponibile nell'area di lavoro di TypingMind.

  1. Avvia una nuova chat in TypingMind.
  2. Seleziona il modello IA che vuoi usare.
  3. Abilita gli strumenti di Kie MCP dalla sezione Plugin.
  4. Chiedi al modello di usare lo strumento quando serve.
  5. Passa a un altro modello IA e riutilizza la stessa connessione MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Kie MCP per aiutarmi con questa attività?
Kie MCP
Certo. Ho letto.
Ecco cosa ho trovato con Kie MCP.

Domande frequenti

A cosa serve il server MCP Kie MCP?

Kie MCP è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Kie MCP MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Kie MCP con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Kie MCP con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Kie MCP, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Kie MCP MCP a TypingMind?

Puoi collegare Kie MCP a TypingMind con il connettore MCP locale oppure aggiungendo l'URL di un server MCP remoto. Usa il connettore locale quando il server deve accedere a file, app o risorse private sul tuo dispositivo; usa invece l'URL del server quando il server MCP è ospitato in remoto.

Quali strumenti offre Kie MCP MCP in TypingMind?

Kie MCP mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Kie MCP MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Kie MCP richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇