kie
Allows generating speech using ElevenLabs models available through kie.ai's API, with model search, pricing, and an approval workflow before spending credits.
Allows generating music using Suno models available through kie.ai's API, with model search, pricing, and an approval workflow before spending credits.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kiemake a 1:1 product photo of a white ceramic mug with GPT Image 2"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kie-ai-tool: MCP server, CLI, skills and agent for kie.ai
An open-source toolkit that lets AI agents (Claude Code, Codex, Cursor, Claude Desktop, WorkBuddy or any MCP client) make images, video, music and speech with kie.ai, safely and cheaply.
kie.ai resells 200+ generation models (GPT Image 2, Nano Banana, Seedream, Veo 3.1, Kling 3.0, Seedance, Gemini Omni, Suno, ElevenLabs and more) behind one API key, usually well below the official price. This repo gives agents a proper way to use it: find the right model, show the price, wait for your yes, generate, and hand back the files.
Status: early, under active development. Works today: the MCP server and CLI, with every model in kie.ai's live catalog (search, schemas, prices, health, balance) behind a prepare → approve → submit step. The plugin install, the creative skills and the agent are being built now. See the roadmap.
What an agent can do with it
Tool | Cost | What it does |
| free | Search kie.ai's live catalog of 200+ models by words, task type or provider |
| free | A model's input fields, required ones, allowed values, defaults and an example |
| free | kie.ai's price text and the model's success rate over the last hour and day |
| free | Credits left on your key |
| free | Checks a request against the model's live schema, shows the price, saves a plan |
| spends | Runs an approved plan once |
| spends | Any catalog model, inside a plan |
| spend | 28 hand-tuned model tools with safe defaults, inside a plan |
| free | Waits for a task and returns every result URL |
Related MCP server: hedra-mcp-server
What's inside
Part | Path | What it does |
MCP server | Exposes kie.ai models as MCP tools, over stdio or Streamable HTTP | |
CLI | The same tools from the terminal ( | |
OpenAI-compatible server | Selected image and video models behind OpenAI-shaped routes | |
Shared core | kie.ai client, tool registry, pricing, plans, task store | |
Skills | Instructions agents load to use the toolkit well | |
Agent | A ready-made agent that plans, prices, gets your approval, produces and checks media | |
Plugin bundles | The MCP server and CLI as single files with no dependencies, so a plain clone runs |
Install
You need Node.js 22.13 or newer and a kie.ai API key from kie.ai/api-key. Nothing else: the server is one file with no dependencies.
Claude Code (plugin: MCP server, skills and agent in one step)
In Claude Code:
/plugin marketplace add tansilandre/kie-ai-tool-mcp-skills-agent
/plugin install kie@kie-ai-toolClaude Code asks for your kie.ai API key and keeps it in your system's secure storage. You can
change it later with /plugin configure kie@kie-ai-tool. If you leave it empty, the plugin uses
KIE_API_KEY from the shell that started Claude Code.
Then ask in plain words, for example "make a 1:1 product photo of a white ceramic mug with GPT
Image 2 at 1K and save it to ./out". The kie:generate-media skill and the kie-director
agent load on their own; the tools appear as mcp__plugin_kie_kie__*.
From a terminal, the same install is:
claude plugin marketplace add tansilandre/kie-ai-tool-mcp-skills-agent
claude plugin install kie@kie-ai-toolAny other MCP client (Claude Desktop, Cursor, Codex, WorkBuddy, …)
git clone https://github.com/tansilandre/kie-ai-tool-mcp-skills-agentThen point the client at the bundled server, using the absolute path to your clone:
{
"mcpServers": {
"kie": {
"command": "node",
"args": ["/absolute/path/to/kie-ai-tool-mcp-skills-agent/bundle/kie-mcp.mjs"],
"env": { "KIE_API_KEY": "your-key" }
}
}
}For Codex: codex mcp add kie --env KIE_API_KEY=your-key -- node /absolute/path/to/kie-ai-tool-mcp-skills-agent/bundle/kie-mcp.mjs.
CLI
export KIE_API_KEY=your-key
node bundle/kie-cli.mjs --help
node bundle/kie-cli.mjs search_models --query veo
node bundle/kie-cli.mjs get_model_schema --model gpt-image-2-text-to-image
node bundle/kie-cli.mjs get_balanceHow spending works
Every paid generation goes through three steps, so an agent cannot spend your credits without you seeing the plan first:
prepare_media_generationchecks the request, fills in cheap defaults you didn't set, shows the price when it is known, and saves a plan. Nothing is sent to kie.ai yet.You approve the plan. In an MCP client that supports forms, the server asks you in a form. In the CLI you pass
--approve <planId>.submit_media_generationruns the approved plan once.
The MCP server hides the direct generation tools unless its operator sets
KIE_AI_ALLOW_DIRECT_GENERATION=true. The roadmap adds credit caps enforced in code and an approval
path for MCP clients that don't support forms.
Configuration
Variable | Required | Purpose |
| yes | Your kie.ai API key. |
| no | Where model schemas are cached (default |
| no | Comma-separated tool names to load, to keep the agent's context small |
| no | Load whole categories: |
| no | Tools to hide. Disabling a model tool such as |
| no |
|
| no | Where tasks and plans are stored (default |
| no | Your own webhook for task completion |
The full reference for every tool, transport and option is in docs/TOOLS.md,
docs/DEPLOY_HTTP.md and the archived upstream README.
Develop
npm ci
npm run build && npm run typecheck && npm test && npm run checkSee CONTRIBUTING.md and AGENTS.md. Changes land through pull requests with green CI.
Credits
This project stands on other people's work:
andrewlwn77/kie-ai-mcp-server, the original kie.ai MCP server (MIT).
felores/kie-cli-mcp, which grew it into the CLI, MCP server and OpenAI-compatible server this repo starts from (MIT). The full git history is kept.
higgsfield-ai/skills (MIT), whose skill design and prompt craft the planned creative skills adapt for kie.ai.
kie.ai's own docs and agent skills, for the live catalog API.
See NOTICE.md for details.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Plan, compare, price, generate, and recover AI video from compatible MCP clients.
Generate images, video, audio and short films with 140+ AI models from any MCP client.
Multi-model AI image and video generator. 14 models behind one OAuth-secured MCP endpoint.
Create and manage AI image and video generations through Quriov's fixed public MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceUniversal MCP server for all Kie AI image generation and editing models, enabling text-to-image, image-to-image, and image editing via natural language.74 npm2MIT
- FlicenseAqualityCmaintenanceEnables browsing Hedra's model catalog and managing AI generation jobs, including submitting, polling, and uploading files, through MCP clients.14-
- FlicenseNot gradedqualityBmaintenanceEnables AI clients like Claude and ChatGPT to generate images and videos, animate images, create lip-synced videos, list TTS voices, and manage media via remote MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to generate and upscale AI images, videos, music, and sound effects, manage generation jobs, access model catalogs, and track credits.3MIT