شعار Kie MCP

Kie MCP

المجتمع
mrdainami

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

الناشرmrdainami
المستودعkie-mcp
اللغةJavaScript
التفريعات
14
النجوم
41
الأدوات المتاحة
0
نوع نقل البياناتstdio, streamable-http
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Kie MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 41، والنسخ المتفرعة: 14 في المستودع المرتبط.

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.

التثبيت

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

استخدم MCP الخاص بـ Kie MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Kie MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يمكنك تشغيل MCP محليًا على جهازك أو الاتصال بعنوان URL لخادم MCP بعيد.

الخيار 1: استخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Kie MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Kie MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "kie-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dainami/kie-mcp"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Kie MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Kie MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Kie MCP لمساعدتي في هذه المهمة؟
Kie MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Kie MCP.

الخيار 2: إضافة عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون Kie MCP مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال Kie MCP.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال Kie MCP بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات Kie MCP من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

  1. ابدأ محادثة جديدة في TypingMind.
  2. اختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  3. فعّل أدوات Kie MCP من قسم الإضافات.
  4. اطلب من النموذج استخدام الأداة عند الحاجة.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر وأعد استخدام اتصال MCP نفسه.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Kie MCP لمساعدتي في هذه المهمة؟
Kie MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Kie MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP Kie MCP؟

Kie MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Kie MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Kie MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Kie MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Kie MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Kie MCP بـ TypingMind؟

يمكن توصيل Kie MCP بـ TypingMind باستخدام موصل MCP المحلي أو بإضافة عنوان URL لخادم MCP بعيد. استخدم الموصل المحلي عندما يحتاج الخادم إلى الوصول إلى ملفات أو تطبيقات أو موارد خاصة على جهازك، واستخدم عنوان URL للخادم عندما يكون خادم MCP مستضافًا عن بُعد.

ما الأدوات التي يوفّرها خادم MCP Kie MCP في TypingMind؟

يتيح Kie MCP إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Kie MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Kie MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇