Agents SDK
cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflare --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .claude/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .claude/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflareType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflare --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .agents/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .agents/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflare --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .cursor/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .cursor/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/CommandCodeAI/agent-skills.git --path skills/building-mcp-server-on-cloudflare--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflare --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .gemini/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .gemini/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflareInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .github/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .github/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install CommandCodeAI/agent-skills building-mcp-server-on-cloudflare --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/CommandCodeAI/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/building-mcp-server-on-cloudflare .opencode/skills/building-mcp-server-on-cloudflare && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "building-mcp-server-on-cloudflare" agent skill from https://github.com/CommandCodeAI/agent-skills/tree/main/skills/building-mcp-server-on-cloudflare into .opencode/skills/building-mcp-server-on-cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "building-mcp-server-on-cloudflare", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
building-mcp-server-on-cloudflareBuilds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
Building MCP Server On Cloudflare is an agent skill from CommandCodeAI/agent-skills. Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment. Generates server code, configures auth providers, and deploys to Workers. Use when: user wants to "build MCP server", "create MCP tools", "remote MCP", "deploy MCP", add "OAuth to MCP", or mentions Model Context Protocol on Cloudflare. Also triggers on "MCP authentication" or "MCP deployment".
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/examples.md`, `references/oauth-setup.md` and `references/troubleshooting.md`).
It sits in Agent Workflows, covering MCP servers and OAuth and OpenID Connect. It works with Model Context Protocol, Cloudflare, Cloudflare Workers and GitHub. The repository describes itself as: A curated list of awesome Skills, resources, and tools for customizing coding agent workflows. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f490dd9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmnpxwranglerFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.weather.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
GITHUB_CLIENT_SECRETFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Building MCP Server On Cloudflare loads about 1.5k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 275 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from CommandCodeAI/agent-skills at commit f490dd9, republished under its MIT licence (© CommandCodeAI). 275 words, ~1,522 tokens.
.claude/skills/building-mcp-server-on-cloudflare/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Creates production-ready Model Context Protocol servers on Cloudflare Workers with tools, authentication, and deployment.
npm install -g wrangler)npm create cloudflare@latest -- my-mcp-server \
--template=cloudflare/ai/demos/remote-mcp-authless
cd my-mcp-server
npm startServer runs at http://localhost:8788/mcp
npm create cloudflare@latest -- my-mcp-server \
--template=cloudflare/ai/demos/remote-mcp-github-oauth
cd my-mcp-serverRequires OAuth app setup. See references/oauth-setup.md.
Tools are functions MCP clients can call. Define them using server.tool():
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() {
// Simple tool with parameters
this.server.tool(
"add",
{ a: z.number(), b: z.number() },
async ({ a, b }) => ({
content: [{ type: "text", text: String(a + b) }],
})
);
// Tool that calls external API
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) }],
};
}
);
}
}Public server (src/index.ts):
import { MyMCP } from "./mcp";
export default {
fetch(request: Request, env: Env, ctx: ExecutionContext) {
const url = new URL(request.url);
if (url.pathname === "/mcp") {
return MyMCP.serveSSE("/mcp").fetch(request, env, ctx);
}
return new Response("MCP Server", { status: 200 });
},
};
export { MyMCP };Authenticated server — See references/oauth-setup.md.
# Start server
npm start
# In another terminal, test with MCP Inspector
npx @modelcontextprotocol/inspector@latest
# Open http://localhost:5173, enter http://localhost:8788/mcpnpx wrangler deployServer accessible at https://[worker-name].[account].workers.dev/mcp
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["mcp-remote", "https://my-mcp.workers.dev/mcp"]
}
}
}Restart Claude Desktop after updating config.
// Text response
return { content: [{ type: "text", text: "result" }] };
// Multiple content items
return {
content: [
{ type: "text", text: "Here's the data:" },
{ type: "text", text: JSON.stringify(data, null, 2) },
],
};this.server.tool(
"create_user",
{
email: z.string().email(),
name: z.string().min(1).max(100),
role: z.enum(["admin", "user", "guest"]),
age: z.number().int().min(0).optional(),
},
async (params) => {
// params are fully typed and validated
}
);export class MyMCP extends McpAgent<Env> {
async init() {
this.server.tool("query_db", { sql: z.string() }, async ({ sql }) => {
// Access D1 binding
const result = await this.env.DB.prepare(sql).all();
return { content: [{ type: "text", text: JSON.stringify(result) }] };
});
}
}For OAuth-protected servers, see references/oauth-setup.md.
Supported providers:
Minimal wrangler.toml:
name = "my-mcp-server"
main = "src/index.ts"
compatibility_date = "2024-12-01"
[durable_objects]
bindings = [{ name = "MCP", class_name = "MyMCP" }]
[[migrations]]
tag = "v1"
new_classes = ["MyMCP"]With bindings (D1, KV, etc.):
[[d1_databases]]
binding = "DB"
database_name = "my-db"
database_id = "xxx"
[[kv_namespaces]]
binding = "KV"
id = "xxx"init() registers tools before connectionswrangler tail/mcpwrangler deployments listGITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET are sethttp://localhost:8788/callback© CommandCodeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in skills/building-mcp-server-on-cloudflare of CommandCodeAI/agent-skills.
Open the folder on GitHubat commit f490dd9
Building MCP Server On Cloudflare next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Building MCP Server On Cloudflare this skillCommandCodeAI/agent-skills | 132 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Agents SDKcloudflare/skills | 3k | 2 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Cloudflare Agentssecondsky/claude-skills | 227 | 1 repos | ~691 | Automated safety check: Pass | MIT | |
| Adding MCP Store ServersPostHog/posthog-foss | 721 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Agents SDKhodgef/apiker | 127 | 3 repos | ~3k | Automated safety check: Pass | MIT | |
| MCP Server Trello Growthdelorenj/mcp-server-trello | 446 | — | ~3.6k | Automated safety check: Pass | MIT |
cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
secondsky/claude-skills
Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.
PostHog/posthog-foss
Add a third-party MCP server (Linear, Notion, GitHub, ...) to the PostHog MCP store catalog.
hodgef/apiker
Build AI agents on Cloudflare Workers using the Agents SDK. An agent skill from hodgef/apiker.
delorenj/mcp-server-trello
Distribution-first growth ledger for @delorenj/mcp-server-trello — grow reach now, defer (but record) monetization.
aeonfun/aeon
Live-data research via the glim.sh MCP - web search, full page extraction, X/Twitter, Reddit, GitHub, Amazon, and YouTube transcripts - synthesized into a cited digest.
CommandCodeAI/agent-skills
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube.
CommandCodeAI/agent-skills
Greet user with a specific message when they say they're new or ask for a welcome message.
Categories
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment. Building MCP Server On Cloudflare is an agent skill from CommandCodeAI/agent-skills. Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
Building MCP Server On Cloudflare fits situations like: : user wants to build MCP server; create MCP tools; add OAuth to MCP; mentions Model Context Protocol on Cloudflare.
Run `npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a claude-code`. Or copy the skill folder (skills/building-mcp-server-on-cloudflare in CommandCodeAI/agent-skills) into .claude/skills/building-mcp-server-on-cloudflare in your project. Claude Code loads it when a task matches its description.
Run `npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a codex`. Or copy the skill folder (skills/building-mcp-server-on-cloudflare in CommandCodeAI/agent-skills) into .agents/skills/building-mcp-server-on-cloudflare in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CommandCodeAI/agent-skills --skill building-mcp-server-on-cloudflare -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/building-mcp-server-on-cloudflare, .gemini/skills/building-mcp-server-on-cloudflare, .github/skills/building-mcp-server-on-cloudflare and .opencode/skills/building-mcp-server-on-cloudflare in your project.
Going by SKILL.md and its folder, Building MCP Server On Cloudflare needs the command-line tools its instructions call (npm, npx and wrangler) and credentials named GITHUB_CLIENT_SECRET. Our summary lists: Node.js; A credential in GITHUB_CLIENT_SECRET.
SKILL.md names 1 domain. In commands or code: api.weather.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Building MCP Server On Cloudflare is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Building MCP Server On Cloudflare: Agents SDK (cloudflare/skills, 3k stars), Cloudflare Agents (secondsky/claude-skills, 227 stars), Adding MCP Store Servers (PostHog/posthog-foss, 721 stars) and Agents SDK (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
CommandCodeAI (a GitHub organization) maintains it in CommandCodeAI/agent-skills, which has 132 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on March 10, 2026.
Source: CommandCodeAI/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.