mcpField
I
Image Generation Worker Template

Image Generation Worker Template

Local
github.com/janwilmakeDeveloper Tools5Updated 88w ago

About Image Generation Worker Template

Image Generation Worker Template is a minimal Cloudflare Worker project for developers building an MCP server that generates images with Cloudflare Workers AI. It uses the flux-1-schnell model and includes a Wrangler-based local development setup.

Key features

  1. 01Generate images with flux-1-schnell
  2. 02Minimal project configuration
  3. 03Local development with Wrangler

Use cases

  1. 01Start a Cloudflare image-generation worker
  2. 02Develop the worker locally with Wrangler

MCP support

The template uses the workers-mcp package to make the Cloudflare Worker an MCP server. Its image-generation capability is available to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Image Generation Worker Template

This is a minimal Cloudflare Worker template for generating images using the workers-mcp package and Cloudflare’s Workers AI.

Features

  • Uses the flux-1-schnell model for image generation.
  • Minimal configuration and project structure.
  • Ready for local development with Wrangler.

Setup

  1. Install dependencies: npm install

  2. Run the worker locally: npm run dev

  3. Deploy the worker: npm run deploy

Files

  • src/index.ts: The worker code.
  • tsconfig.json: TypeScript configuration.
  • wrangler.toml: Cloudflare Workers configuration.
  • worker-configuration.d.ts: Type definitions for the worker’s environment.
  • package.json: Project dependencies and scripts.
  • .gitignore: Ignored files.

Happy coding!

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.