mcp-cloudflare-builder

Scaffold and deploy MCP servers on Cloudflare Workers with typed tools.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/DojoGenesis/gateway --skill mcp-cloudflare-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-cloudflare-builder
Source: https://github.com/DojoGenesis/gateway/tree/main/plugins/skill-forge/skills/mcp-cloudflare-builder
Command: npx skills add https://github.com/DojoGenesis/gateway --skill mcp-cloudflare-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill scaffolds and deploys remote Model Context Protocol servers on Cloudflare Workers so developers can expose typed tools over HTTPS with optional OAuth protection, removing the complexity of Durable Objects, Wrangler configuration, and local testing.

Core Features & Use Cases

  • Cloudflare-specific deployment: Generates a Wrangler-compatible project structure with Durable Object McpAgent entrypoints and deployment-ready configuration.
  • Typed tools and validation: Produces tool definitions with Zod schemas for input validation and consistent client contracts.
  • OAuth and public modes: Supports both unauthenticated public deployments and OAuth-protected servers with environment secret configuration.
  • Use Case: Expose server-side tools to Claude Desktop or other MCP clients by deploying a Workers endpoint that serves MCP over SSE and supports authenticated calls.

Quick Start

Scaffold and deploy a Cloudflare Workers MCP server with typed tools and optional OAuth, then test it locally using the MCP Inspector.

Frequently Asked Questions about mcp-cloudflare-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an MCP server to Cloudflare Workers?

To deploy an MCP server to Cloudflare Workers, you need a Wrangler-compatible project with a Durable Object McpAgent entrypoint, typed tool definitions, and SSE routing. This scaffolding generates that structure and configures durable object bindings and migrations automatically.

Can I add OAuth authentication to a remote MCP server on Cloudflare?

Yes, you can add OAuth authentication to a remote MCP server on Cloudflare. The scaffolding supports OAuth-protected servers by configuring environment secrets for OAuth providers, allowing authenticated calls from remote MCP clients.

How do I validate input for MCP tools using Zod schemas?

You validate input for MCP tools using Zod schemas by defining typed tool definitions with Zod schemas. This approach ensures input validation and consistent client contracts for your Cloudflare Workers MCP server.

How do I test an MCP server locally before deploying to Cloudflare?

You test an MCP server locally before deploying to Cloudflare by using the MCP Inspector. The project scaffolding supports local MCP Inspector testing to verify your typed tools and SSE routing prior to Wrangler deployment.

Does Cloudflare Workers support Durable Object bindings for MCP agents?

Yes, Cloudflare Workers supports Durable Object bindings for MCP agents. The scaffolding configures Durable Object-based McpAgent entrypoints and handles durable object bindings alongside Wrangler-compatible migrations.