banana-image-mcp
v1.8.1An MCP server for generating blog cover images using Google Gemini AI, with WebP conversion and Qiniu / Aliyun OSS CDN upload
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_blog_cover
Generate a blog cover image using Google Gemini AI, convert to WebP format, and upload to CDN
| Parameter | Type | Description |
|---|---|---|
prompt * | string | What to draw: subject, scene, and any exact title text. Visual treatment comes from style when set. |
slug * | string | The slug identifier for the filename (will be prefixed with date) |
aspectRatio | string | Aspect ratio override, e.g. '16:9', '1:1', '9:16', '4:3', '3:2', '21:9' (default: env GEMINI_ASPECT_RATIO or '16:9') |
imageSize | string | Resolution override: '1K', '2K' or '4K' (default: env GEMINI_IMAGE_SIZE or '1K') |
model | string | Gemini image model override (default: env GEMINI_IMAGE_MODEL or 'gemini-3.1-flash-image-preview'). e.g. 'gemini-3.1-flash-lite-image' |
path | string | Upload directory path (default: 'blog-cover') |
style | string | Optional style id. A value on this call wins over IMAGE_STYLE. Omit it to use IMAGE_STYLE when setup (or the environment) set one; otherwise the prompt is sent unchanged. Pass "none" to skip the globa… |
upload_image
Upload a local or remote image to CDN, convert to WebP format, and return the CDN URL
| Parameter | Type | Description |
|---|---|---|
slug * | string | The slug identifier for the filename (will be prefixed with date) |
source * | string | Local file path or HTTP/HTTPS URL of the image to upload |
path | string | Upload directory path on CDN (default: 'images') |
generate_image
Generate an image using Google Gemini AI, convert to WebP format, upload to CDN, and return the CDN URL
| Parameter | Type | Description |
|---|---|---|
prompt * | string | What to draw: subject, scene, and any exact title text. Visual treatment comes from style when set. |
slug * | string | The slug identifier for the filename (will be prefixed with date) |
aspectRatio | string | Aspect ratio override, e.g. '16:9', '1:1', '9:16', '4:3', '3:2', '21:9' (default: env GEMINI_ASPECT_RATIO or '16:9') |
imageSize | string | Resolution override: '1K', '2K' or '4K' (default: env GEMINI_IMAGE_SIZE or '1K') |
model | string | Gemini image model override (default: env GEMINI_IMAGE_MODEL or 'gemini-3.1-flash-image-preview'). e.g. 'gemini-3.1-flash-lite-image' |
path | string | Upload directory path on CDN (default: 'aigc/image') |
style | string | Optional style id. A value on this call wins over IMAGE_STYLE. Omit it to use IMAGE_STYLE when setup (or the environment) set one; otherwise the prompt is sent unchanged. Pass "none" to skip the globa… |
list_image_styles
List built-in and custom visual styles for generate_image and generate_blog_cover. The result includes globalStyle, the IMAGE_STYLE this process would use when a call omits style. Pass id to include that style's fixed prompt. Custom styles are stored in the user home directory and survive package updates.
| Parameter | Type | Description |
|---|---|---|
id | string | Optional style id, alias, or custom style name. Omit to list every style. |
save_image_style
Save a custom image style on this machine. Pass a name plus either a style prompt, or an image (local path or http(s) URL) whose look is extracted into a style prompt. If both prompt and image are set, the written prompt is saved and the image is not sent. Saving the same name again updates that style and keeps the others. Stored in ~/.banana-image-mcp/styles.json, which package updates do not delete.
| Parameter | Type | Description |
|---|---|---|
name * | string | Custom style name, e.g. '奶油笔记'. This is the value later passed as style. |
image | string | Local image path or http(s) URL. Used only when prompt is empty. A vision model extracts a reusable style prompt from the picture. |
prompt | string | Fixed visual style prompt: medium, palette, lettering, and layout. Do not include a specific title or topic. Optional when image is set. Wins over image when both are set. |
delete_image_style
Delete one custom image style saved on this machine. Built-in styles cannot be deleted. Other custom styles stay in ~/.banana-image-mcp/styles.json.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name or id of the custom style to delete. |