agan2023416/workers
Built by Metorial, the integration platform for agentic AI.
agan2023416/workers
Server Summary
Generate images
Store images in Cloudflare R2
Provide URL generation
Send webhook notifications
Integrate with MCP
This repository contains a collection of specialized Cloudflare Workers and related tools, each designed to provide specific functionality and services.
A worker that integrates Replicate's AI image generation with Cloudflare R2 storage. This worker:
š Learn more about replicate-2-r2
A Model Context Protocol (MCP) server that provides a simple interface to the replicate-2-r2 worker. This server:
š Learn more about generate-image
A specialized MCP server designed specifically for n8n integration with SSE protocol support. This server:
š Learn more about n8n-image-generator
If you want to use AI image generation in n8n workflows, follow these steps:
cd replicate-2-r2
npm install
npm run deploy
cd mcps/n8n-image-generator
npm install
npm run build
export CLOUDFLARE_WORKERS_URL=https://your-worker.workers.dev
export WORKER_API_TOKEN=your-api-token
npm start
In your n8n workflow:
generate_image
tool with your promptgraph TB
A[n8n Workflow] -->|SSE/MCP| B[n8n-image-generator MCP Server]
B -->|HTTP API| C[replicate-2-r2 Worker]
C -->|AI Generation| D[Replicate API]
C -->|Storage| E[Cloudflare R2]
C -->|Webhook| C
style A fill:#e1f5fe
style B fill:#f3e5f5
style C fill:#e8f5e8
style D fill:#fff3e0
style E fill:#fce4ec
Each project is contained in its own directory with its own documentation. To get started:
cloudflare-workers/
āāā README.md
āāā replicate-2-r2/ # Replicate integration worker
ā āāā README.md # Worker-specific documentation
ā āāā src/ # Source code
ā āāā ... # Other worker files
āāā mcps/ # MCP servers
āāā generate-image/ # Original MCP server
ā āāā README.md # Server documentation
ā āāā src/ # Source code
ā āāā ... # Other server files
āāā n8n-image-generator/ # ā NEW: n8n-specific MCP server
āāā README.md # Detailed setup guide
āāā src/ # TypeScript source
āāā ... # Configuration files
If you're currently using the original generate-image
MCP server, consider migrating to n8n-image-generator
for better n8n integration:
cd mcps/n8n-image-generator && npm install
More projects will be added to this collection in the future. Stay tuned for updates!