Labsco
falahgs logo

MCP Storybook Image Generator

โ˜… 6

from falahgs

Generate storybook images for children's stories using Google's Gemini AI.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

MCP Storybook Image Generator

A professional-grade server that generates beautiful storybook images with matching children's stories using Google's Gemini AI.

๐ŸŽฌ Demo

Storybook Generator Demo

๐ŸŒŸ Features

  • Storybook Image Generation: Creates high-quality images in various art styles for children's stories
  • Automatic Story Creation: Generates engaging children's stories to match the images
  • Multiple Art Styles: Choose from 3D cartoon, watercolor, pixel art, hand drawn, or claymation styles
  • Instant Preview: Automatically opens generated images and stories in your browser
  • Local Storage: Saves images and stories in an organized output directory

๐Ÿ› ๏ธ Technical Stack

  • Core Framework: Model Context Protocol (MCP) SDK
  • AI Integration: Google Generative AI (Gemini)
  • Runtime: Node.js v14+
  • Language: TypeScript
  • Package Manager: npm

๐Ÿš€ Using the CLI

You can use the storybook generator directly from the command line:

# Using npx (after publishing to npm)
npx mcp-storybook-image-generator --api-key your_api_key_here --save-to-desktop

# Or run locally
node build/cli.js --api-key your_api_key_here --save-to-desktop

Command Line Options

OptionDescription
--api-key <key>Set your Gemini API key
--save-to-desktopSave generated files to desktop
--debugEnable debug logging
--helpShow help information

๐Ÿš€ Available Tool

Storybook Image Generator Tool

{
  "name": "generate_storybook_image",
  "description": "Generates a 3D style cartoon image with a children's story based on the given prompt",
  "inputSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "The prompt describing the storybook scene to generate"
      },
      "fileName": {
        "type": "string",
        "description": "Base name for the output files (without extension)"
      },
      "artStyle": {
        "type": "string",
        "description": "The art style for the image (default: '3d cartoon')",
        "enum": ["3d cartoon", "watercolor", "pixel art", "hand drawn", "claymation"]
      }
    },
    "required": ["prompt", "fileName"]
  }
}

๐Ÿ“ Output Files

For each storybook generation request, the server produces:

  1. PNG Image: The generated illustration matching your prompt in the requested art style
  2. Text File: The matching children's story in plain text format
  3. HTML Preview: A combined view showing both the image and story together

These files are saved to either:

  • Your desktop in a folder called "storybook-images" (if SAVE_TO_DESKTOP=true)
  • The server's directory in a folder called "storybook-images"

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.