MCP ExplorerExplorer

Cloudflare Mcp Template

@janwilmakeon a year ago
5 MIT
FreeCommunity
AI Systems
Template to easily make an MCP server on Cloudflare

Overview

What is Cloudflare Mcp Template

cloudflare-mcp-template is a minimal template designed to facilitate the creation of an MCP server on Cloudflare, utilizing the workers-mcp package and Cloudflare’s Workers AI for image generation.

Use cases

Use cases for cloudflare-mcp-template include generating images for web applications, creating dynamic content for websites, and experimenting with AI-driven image generation in a serverless environment.

How to use

To use cloudflare-mcp-template, first install the necessary dependencies with ‘npm install’. Then, run the worker locally using ‘npm run dev’. Finally, deploy the worker to Cloudflare with ‘npm run deploy’.

Key features

Key features include the use of the flux-1-schnell model for image generation, a minimal configuration and project structure, and readiness for local development with Wrangler.

Where to use

undefined

Content

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!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers