janwilmake

Image Generation Worker Template

Community janwilmake
Updated

Template to easily make an MCP server on Cloudflare

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!

MCP Server · Populars

MCP Server · New

    browser-use

    Enable AI to control your browser 🤖

    🌐 Make websites accessible for AI agents. Automate tasks online with ease.

    Community browser-use
    superglue-ai

    superglue

    superglue integrates & orchestrates APIs from natural language. Agents use it to build deterministic workflows across apps, APIs and databases. Humans use it to generate insights, build automations and manage data.

    Community superglue-ai
    superglue-ai

    docs

    superglue integrates & orchestrates APIs from natural language. Agents use it to build deterministic workflows across apps, APIs and databases. Humans use it to generate insights, build automations and manage data.

    Community superglue-ai
    KemingHe

    Python Dependency Manager Companion MCP Server

    Self-updating MCP server to cross-reference latest official pip, poetry, uv, and conda docs

    Community KemingHe
    apache

    ECharts MCP

    Apache ECharts MCP Server

    Community apache