kie-image-mcp
Enables image generation using KIE.ai models like google/nano-banana and GPT Image 2. Supports asynchronous single or parallel image generation and file uploading for image inputs.
README
kie-image-mcp
KIE.ai の画像生成 MCP。KIE.ai 上の任意の画像生成モデル(google/nano-banana 系、GPT Image 2 系など)を model 引数または環境変数で指定できる。省略時の既定値のみ gpt-image-2-text-to-image / gpt-image-2-image-to-image。
Features
- kie_create_task / kie_check_task - 非同期の単体画像生成
- kie_create_tasks / kie_check_tasks - 非同期の並列画像生成
- kie_upload_file - ローカル参照画像を KIE.ai にアップロードし、
image_input用の URL を取得
Setup
npm install
cp .env.example .env
# Set KIE_AI_API_KEY in .env
npm run build
Usage with Claude Code
Add to .mcp.json:
{
"mcpServers": {
"kie-image": {
"type": "stdio",
"command": "node",
"args": ["/path/to/kie-image-mcp/dist/index.js"]
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
KIE_AI_API_KEY |
Yes | KIE.ai API key |
KIE_IMAGE_TEXT_TO_IMAGE_MODEL |
No | image_input なしの既定モデル。未指定時は gpt-image-2-text-to-image |
KIE_IMAGE_IMAGE_TO_IMAGE_MODEL |
No | image_input ありの既定モデル。未指定時は gpt-image-2-image-to-image |
KIE_IMAGE_MODEL |
No | text-to-image 側の一括上書き。KIE_IMAGE_TEXT_TO_IMAGE_MODEL がある場合はそちらを優先 |
KIE_IMAGE_RESOLUTION |
No | 既定解像度。1K / 2K / 4K、未指定時は 1K |
IMAGE_OUTPUT_DIR |
No | Output directory (default: ./output) |
モデル切替
kie_create_task / kie_create_tasks は model 引数に KIE.ai の任意のモデル ID(例: google/nano-banana)を受け取る。省略時は以下で自動選択する。
| 入力 | 既定モデル |
|---|---|
image_input なし |
gpt-image-2-text-to-image |
image_input あり |
gpt-image-2-image-to-image |
モデルによって送信ペイロードを切り替える:
- GPT Image 2 系(モデル ID が
gpt-image-2で始まる):image_inputを KIE.ai API のinput_urlsに変換して送る。text-to-image 系モデルにimage_inputを渡すとエラーにする。 - それ以外(nano-banana 等):
image_input+output_format: pngの形状で送る。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.