kie-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
kie-mcp-server
A remote MCP server that gives Claude three things: generate a frame, generate a video clip from that frame, and check on a job that's still rendering. Everything runs through your kie.ai account, so you pay kie.ai prices and use one credit wallet for all the models.
Models wired up
Friendly name | kie.ai model | Use it for |
|
| Default frame generator. Strong character consistency across a set of frames. |
|
| Cheap drafts. |
|
| Prompt adherence and text inside the image (titles, signage, posters). |
|
| Restyle or fix an existing frame. |
|
| Main video model. First+last frame control, reference images, native audio. |
|
| Faster/cheaper previews. |
|
| Longer clips (up to ~30s), 1080p. |
|
| Veo 3.1. Best motion and dialogue, capped at 8s per clip. |
Model IDs live in src/models.ts. If kie.ai renames one, edit that file — nothing else changes. There's also a kie_raw_task tool that takes any model ID and raw input object, so you're never blocked waiting on a code change.
Related MCP server: topview-mcp-server
Tools exposed
list_models— what's available and what each is good atgenerate_image— prompt (+ optional reference images) → image URL, returned inline so Claude can look at itgenerate_video— prompt + optionalfirst_frame_url/last_frame_url/reference_image_urls→ MP4 URLget_task— poll a task ID that was still renderingkie_raw_task— any kie.ai model, raw inputcheck_credits— remaining balance
Setup
cp .env.example .env # put your key in KIE_API_KEY
npm install
npm run build
npm start # http://localhost:3000/mcpGet the API key at https://kie.ai/api-key and load credits at https://kie.ai/billing.
Deploy
The connection to your server comes from Anthropic's cloud, not from your laptop, so it has to be reachable on the public internet over HTTPS. Localhost and anything behind a VPN won't work.
A Dockerfile and a render.yaml are included. Push the repo to GitHub, create a Render web service from it, set KIE_API_KEY and MCP_PATH_SECRET in the dashboard, deploy. Railway, Fly.io, or a Docker host all work the same way — anything that gives you an HTTPS URL.
Set MCP_PATH_SECRET. The server has no login, so the URL is the password. With MCP_PATH_SECRET=8f2c1a9e4b your endpoint becomes https://your-host/mcp/8f2c1a9e4b. Anyone who has that URL can spend your kie.ai credits.
Connect it to Claude
In Claude, go to Customize → Connectors, click +, choose Add custom connector, and paste your full MCP URL including the secret path. Leave the OAuth fields blank. Custom connectors work on Free, Pro, Max, Team and Enterprise, though Free is limited to one, and on Team/Enterprise an Owner adds it first at the org level.
Notes that will save you time
Output URLs expire in about 24 hours. Download anything you want to keep.
Video takes 2–5 minutes. A tool call can't block that long comfortably, so
generate_videowaits up towait_seconds(default 180) and then hands back a task ID. Claude callsget_taskto collect it.Rate limit is roughly 20 new tasks per 10 seconds. Rejected creates don't queue; the server surfaces a clear message on 429.
Frames must be reachable by URL. Feed a
generate_imageoutput URL straight intofirst_frame_url. If you want to use your own local image, upload it somewhere public first (kie.ai has a file upload API if you'd rather keep it on their host).This server generates clips, it doesn't edit them. Stitching shots together, adding music, and cutting to length is a separate step — ffmpeg locally, or a second MCP server if you want Claude driving that too.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Generate and edit images and create short videos inside Claude. Prepaid credits, no subscription.
Generate images and video from Claude with one API key.
Generate and edit images, create videos, quote credit costs, and retrieve private results.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to generate AI videos using ViewMax Studio's video generation tools, including prompt and script creation, smart model selection, cost preview, and task status tracking.2-
- FlicenseNot gradedqualityBmaintenanceEnables Claude to generate videos and images via TopView.ai's API, including text-to-video, image-to-video, text-to-image, and image editing.-
- AlicenseBqualityBmaintenanceEnables AI agents to create Vidu image-to-video and reference-to-video generation tasks, poll asynchronous results, and check pricing across two model variants. Works from Claude Code, Codex, Cursor, VS Code, and other MCP-compatible hosts.553 npmApache 2.0
- AlicenseAqualityCmaintenanceEnables Claude to generate videos from text prompts via the Replicate API, check generation status, and download completed videos to disk.3MIT