
一个MCP(模型上下文协议)服务器,提供对Kie.ai的AI接口的访问,包括Nano Banana图像生成/编辑和Veo3视频生成。
概览
一个MCP(模型上下文协议)服务器,提供对Kie.ai的AI接口的访问,包括Nano Banana图像生成/编辑和Veo3视频生成。 - :利用谷歌Gemini 2.5闪存图像预览生成文本到图像 - :自然语言图像编辑,最多可输入5张图片 - :专业质量视频生成,具备文本转视频和图像对视频功能 - :获得Veo3视频的高清版本 - :基于SQLite的任务跟踪和状态轮询 - :自动检测任务类型以进行状态检查 - :全面的错误处理和验证 - Node.js 18+ - Kie.ai 来自 https://kie.ai/api-key 的 API 密钥 添加到你的Claude桌面或MCP客户端配置中: - 提示词(字符串,必需):生成图像的文本描述 使用自然语言提示编辑图片。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,提供对Kie.ai的AI接口的访问,包括Nano Banana图像生成/编辑和Veo3视频生成。
特色
- 纳米香蕉图像生成:利用谷歌Gemini 2.5闪存图像预览实现文本转图像生成
- 纳米香蕉图像编辑:支持最多5张输入图像的自然语言图像编辑
- Veo3视频生成:具备文本转视频和图像转视频功能的专业级视频生成
- 1080p 视频升级:获取 Veo3 视频的高清版本
- 任务管理:基于SQLite的任务跟踪,支持状态轮询
- 智能端点路由:自动检测任务类型以进行状态检查
- 错误处理:全面的错误处理与验证
先修条件
- Node.js 18+
- Kie.ai 来自 https://kie.ai/api-key 的 API 密钥
安装
来自NPM
来自源头
配置
环境变量
MCP 配置
添加到你的Claude桌面或MCP客户端配置中:
或者如果全局安装:
可用工具
1.generate_nano_banana
使用纳米香蕉生成图像。
参数:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kie.ai MCP Server
An MCP (Model Context Protocol) server that provides access to Kie.ai’s AI APIs including Nano Banana image generation/editing and Veo3 video generation.
Features
- Nano Banana Image Generation: Text-to-image generation using Google’s Gemini 2.5 Flash Image Preview
- Nano Banana Image Editing: Natural language image editing with up to 5 input images
- Veo3 Video Generation: Professional-quality video generation with text-to-video and image-to-video capabilities
- 1080p Video Upgrade: Get high-definition versions of Veo3 videos
- Task Management: SQLite-based task tracking with status polling
- Smart Endpoint Routing: Automatic detection of task types for status checking
- Error Handling: Comprehensive error handling and validation
Prerequisites
- Node.js 18+
- Kie.ai API key from https://kie.ai/api-key
Installation
From NPM
npm install -g @andrewlwn77/kie-ai-mcp-server
From Source
# Clone the repository
git clone https://github.com/andrewlwn77/kie-ai-mcp-server.git
cd kie-ai-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Configuration
Environment Variables
# Required
export KIE_AI_API_KEY="your-api-key-here"
# Optional
export KIE_AI_BASE_URL="https://api.kie.ai/api/v1" # Default
export KIE_AI_TIMEOUT="60000" # Default: 60 seconds
export KIE_AI_DB_PATH="./tasks.db" # Default: ./tasks.db
MCP Configuration
Add to your Claude Desktop or MCP client configuration:
{
"kie-ai-mcp-server": {
"command": "node",
"args": ["/path/to/kie-ai-mcp-server/dist/index.js"],
"env": {
"KIE_AI_API_KEY": "your-api-key-here"
}
}
}
Or if installed globally:
{
"kie-ai-mcp-server": {
"command": "npx",
"args": ["-y", "@andrewlwn77/kie-ai-mcp-server"],
"env": {
"KIE_AI_API_KEY": "your-api-key-here"
}
}
}
Available Tools
1. generate_nano_banana
Generate images using Nano Banana.
Parameters:
prompt(string, required): Text description of the image to generate
Example:
{
"prompt": "A surreal painting of a giant banana floating in space"
}
2. edit_nano_banana
Edit images using natural language prompts.
Parameters:
prompt(string, required): Description of edits to makeimage_urls(array, required): URLs of images to edit (max 5)
Example:
{
"prompt": "Add a rainbow arching over the mountains",
"image_urls": ["https://example.com/image.jpg"]
}
3. generate_veo3_video
Generate videos using Veo3.
Parameters:
prompt(string, required): Video descriptionimageUrls(array, optional): Image for image-to-video (max 1)model(enum, optional): “veo3” or “veo3_fast” (default: “veo3”)aspectRatio(enum, optional): “16:9” or “9:16” (default: “16:9”)seeds(integer, optional): Random seed 10000-99999
安装
npx -y @andrewlwn77/kie-ai-mcp-server