banana-image-mcp

v1.8.1
banana-image-mcp Checked 4 days ago Published 24 days ago

An 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

ParameterTypeDescription
prompt *stringWhat to draw: subject, scene, and any exact title text. Visual treatment comes from style when set.
slug *stringThe slug identifier for the filename (will be prefixed with date)
aspectRatiostringAspect ratio override, e.g. '16:9', '1:1', '9:16', '4:3', '3:2', '21:9' (default: env GEMINI_ASPECT_RATIO or '16:9')
imageSizestringResolution override: '1K', '2K' or '4K' (default: env GEMINI_IMAGE_SIZE or '1K')
modelstringGemini image model override (default: env GEMINI_IMAGE_MODEL or 'gemini-3.1-flash-image-preview'). e.g. 'gemini-3.1-flash-lite-image'
pathstringUpload directory path (default: 'blog-cover')
stylestringOptional 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

ParameterTypeDescription
slug *stringThe slug identifier for the filename (will be prefixed with date)
source *stringLocal file path or HTTP/HTTPS URL of the image to upload
pathstringUpload 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

ParameterTypeDescription
prompt *stringWhat to draw: subject, scene, and any exact title text. Visual treatment comes from style when set.
slug *stringThe slug identifier for the filename (will be prefixed with date)
aspectRatiostringAspect ratio override, e.g. '16:9', '1:1', '9:16', '4:3', '3:2', '21:9' (default: env GEMINI_ASPECT_RATIO or '16:9')
imageSizestringResolution override: '1K', '2K' or '4K' (default: env GEMINI_IMAGE_SIZE or '1K')
modelstringGemini image model override (default: env GEMINI_IMAGE_MODEL or 'gemini-3.1-flash-image-preview'). e.g. 'gemini-3.1-flash-lite-image'
pathstringUpload directory path on CDN (default: 'aigc/image')
stylestringOptional 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.

ParameterTypeDescription
idstringOptional 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.

ParameterTypeDescription
name *stringCustom style name, e.g. '奶油笔记'. This is the value later passed as style.
imagestringLocal image path or http(s) URL. Used only when prompt is empty. A vision model extracts a reusable style prompt from the picture.
promptstringFixed 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.

ParameterTypeDescription
name *stringName or id of the custom style to delete.