mcp-cloudflare-builder

mcp-cloudflare-builder is a skill for Claude Code, Codex from DojoGenesis/mcp. It costs 0 tokens per session (1,619 once invoked), scanned A, original, MIT.

A builder for creating remote MCP servers on Cloudflare Workers, Cloudflare's serverless hosting platform. It covers typed tools, OAuth sign-in, local testing, deployment, and client connections.

In plain words
What is it for?
Use it to scaffold, test, authenticate, and deploy remote MCP tools on Cloudflare Workers.
Why use it?
It provides a defined path from an MCP server project to an HTTPS service that other agent clients can use securely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Use it to scaffold, test, authenticate, and deploy remote MCP tools on Cloudflare Workers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dojogenesis/mcp/mcp-cloudflare-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DojoGenesis/mcp --skill mcp-cloudflare-builder
Clone the repo
git clone --depth 1 https://github.com/DojoGenesis/mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-cloudflare-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/dojogenesis/mcp/mcp-cloudflare-builder/github.svg)](https://agentmods.dev/skills/dojogenesis/mcp/mcp-cloudflare-builder)
Your own site
<a href="https://agentmods.dev/skills/dojogenesis/mcp/mcp-cloudflare-builder"><img src="https://agentmods.dev/badge/skills/dojogenesis/mcp/mcp-cloudflare-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-cloudflare-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/dojogenesis/mcp/mcp-cloudflare-builder"><img src="https://agentmods.dev/badge/skills/dojogenesis/mcp/mcp-cloudflare-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,619 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01619
Opus 5.5 $0.00000 $0.00648
Sonnet 5.5 $0.00000 $0.00324
Haiku 4.5 $0.00000 $0.00162

Measured 3mo ago against content hash 8e4ee4ce8023, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-cloudflare-builder scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch(request: Request, env: Env, ctx: ExecutionContext) {
internal/skills/bundled/skill-forge/mcp-cloudflare-builder/SKILL.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Cloudflare Builder

Scaffolds and deploys production-ready Model Context Protocol servers on Cloudflare Workers.

Description

Creates remote MCP servers using the McpAgent Durable Object pattern on Cloudflare Workers. Covers tool definition with Zod validation, public vs. OAuth-protected modes, local testing with MCP Inspector, Wrangler deployment, and client connection. Distinct from mcp-builder (which covers general MCP server concepts) and mcp-server-builder (which scaffolds from OpenAPI specs) — this skill is Cloudflare-specific and deployment-complete.

When to Use

  • User wants a remote (not stdio) MCP server
  • User needs to expose tools to Claude Desktop or other MCP clients over HTTPS
  • User wants MCP authentication via OAuth (GitHub, Google, Auth0, etc.)
  • User is deploying on Cloudflare Workers specifically

Workflow

Step 1: Scaffold the Project

Public server (no auth):

npm create cloudflare@latest -- my-mcp-server \
  --template=cloudflare/ai/demos/remote-mcp-authless
cd my-mcp-server && npm start

Server runs at http://localhost:8788/mcp.

OAuth-protected server:

npm create cloudflare@latest -- my-mcp-server \
  --template=cloudflare/ai/demos/remote-mcp-github-oauth
cd my-mcp-server

Step 2: Define Tools

Tools are functions MCP clients can call. Define them in McpAgent.init():

import { McpAgent } from "agents/mcp";
import { z } from "zod";

export class MyMCP extends McpAgent {
  server = new Server({ name: "my-mcp", version: "1.0.0" });

  async init() {
    this.server.tool(
      "add",
      { a: z.number(), b: z.number() },
      async ({ a, b }) => ({
        content: [{ type: "text", text: String(a + b) }],
      })
    );

    this.server.tool(
      "get_weather",
      { city: z.string() },
      async ({ city }) => {
        const response = await fetch(`https://api.weather.com/${city}`);
        const data = await response.json();
        return { content: [{ type: "text", text: JSON.stringify(data) }] };
      }
    );
  }
}

Read the full file on GitHub · 230 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 230 lines · 0 tokens per session scan A 8e4ee4ce8023

Subscribe to this mod's changes

mcp-cloudflare-builder is a skill published in the GitHub repository DojoGenesis/mcp (0 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,619 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-cloudflare-builder compared with skills from other repositories

mcp-cloudflare-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-cloudflare-builderDojoGenesis/mcpSkill029d agoMITA0Claude Code, Codex
bex-private-servicesbex-co/bexSkill1.0ktodayApache-2.0A99Claude Code, Codex
goericrisco/rsc-harnessSkill6824d agoMITA86Claude Code, Codex
datapages-serverromshark/datapagesSkill1224d agoMITA35Claude Code, Codex
functions-developmentCrowdStrike/foundry-skillsSkill389d agoMITA195Claude Code
structpagesjackielii/structpagesSkill2420d agoBSD-3-ClauseA154Claude Code
jwtkataras/jwtSkill2102mo agoMITA107Claude Code