Skip to main content
command CX Codex GP ChatGPT official · OpenAI

build-mcp — Claude command: remote MCP server on Cloudflare

A slash command that walks your agent through building a remote MCP server on Cloudflare Workers, with tools, OAuth 2.0 and deployment.

Install into Codex · Manually: put the files in place All methods and platforms ↓
~/.codex/prompts/build-mcp.md
Open on GitHub

What build-mcp does

build-mcp comes from Cloudflare's plugin and kicks off a guided build of a remote MCP server. The agent starts with skills/building-mcp-server-on-cloudflare/SKILL.md, then pulls official templates from references/examples.md, security and OAuth guidance from references/oauth-setup.md, and fixes for common failures from references/troubleshooting.md. Those files ship alongside the command, so a bare copy of the prompt file gets you nowhere.

What the command covers: deployment to Cloudflare Workers, OAuth 2.0 setup, defining and implementing tools, production deployment patterns, and wiring the result into Claude and other MCP clients. You pass a single argument describing the server you want.

Drop the file at ~/.codex/prompts/build-mcp.md for Claude. Claude expects .claude/commands/build-mcp.md instead, so moving the command between platforms means checking the path, not just the filename.

What it helps with

  • stand up a remote MCP server on Cloudflare Workers
  • add OAuth 2.0 auth to an MCP server
  • define and implement server tools
  • deploy the server using production patterns
  • connect the finished server to Claude as an MCP client

Example prompts for the agent

  • /cloudflare:build-mcp a GitHub integration server
  • /cloudflare:build-mcp database query tool with OAuth
  • /cloudflare:build-mcp file management MCP server

How to install build-mcp

Manually: put the files in place

~/.codex/prompts/build-mcp.md

Call it with /prompts:build-mcp. Codex marks this format deprecated in favour of skills

Questions about build-mcp

How do I install build-mcp in Claude?

Copy the command file to ~/.codex/prompts/build-mcp.md. After that you invoke it with a description of the server you want.

What does build-mcp do?

It guides your agent through building a remote MCP server on Cloudflare, reading the skill and its references for templates, OAuth and troubleshooting, and helping with tools and deployment.

Which files does the command need?

It points at skills/building-mcp-server-on-cloudflare/SKILL.md plus three reference files: examples.md, oauth-setup.md and troubleshooting.md. Without them the steps won't run.

Source text

build-mcp.md · MIT
---
description: Build a remote MCP server on Cloudflare with tools and OAuth
argument-hint: [mcp-description]
allowed-tools: [Read, Glob, Grep, Bash, Write, Edit, WebFetch]
---

# Build MCP Server on Cloudflare

This command helps you build remote Model Context Protocol (MCP) servers on Cloudflare with tools, OAuth authentication, and production deployment.

## Arguments

The user invoked this command with: $ARGUMENTS

## Instructions

When this command is invoked:

1. Read the skill file at `skills/building-mcp-server-on-cloudflare/SKILL.md` for core guidance
2. Reference `skills/building-mcp-server-on-cloudflare/references/examples.md` for official templates
3. Use `skills/building-mcp-server-on-cloudflare/references/oauth-setup.md` for security and OAuth
4. Consult `skills/building-mcp-server-on-cloudflare/references/troubleshooting.md` for common issues

## Capabilities

- Remote MCP server deployment on Cloudflare Workers
- OAuth 2.0 authentication setup
- Tool definition and implementation
- Production-ready deployment patterns
- Integration with Codex and other MCP clients

## Example Usage

```
/cloudflare:build-mcp a GitHub integration server
/cloudflare:build-mcp database query tool with OAuth
/cloudflare:build-mcp file management MCP server
```

© Cloudflare · MIT · openai/plugins

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set304

The whole set →
mixpanel-auth A Claude skill that manages Mixpanel accounts: checks the session, adds credentials, runs OAuth login and switches projects. CX Codex GP ChatGPT ★ 7,596repo stars design-system-rules-agent A subagent that turns your codebase conventions into Figma-to-code rules and writes them into AGENTS.md, so later implementations stay consistent. CX Codex GP ChatGPT ★ 7,596repo stars setup-codex-run-actions Wires the current Expo project into the Claude action bar with a Run button, plus iOS, Android or web buttons when you ask for them. CX Codex GP ChatGPT ★ 7,596repo stars inspect-dropbox-file This skill reports metadata for a Dropbox file or folder, checks shared links, and reads content when asked. Handy when you need to know what a file is and who can open it. CX Codex GP ChatGPT ★ 7,596repo stars canva-implement-feedback This skill reads every comment thread on a Canva design, makes the clear-cut edits through the API, and lists what still needs a human. CX Codex GP ChatGPT ★ 7,596repo stars canva-bulk-create Turns a table of data into one Canva design per row by autofilling a brand template. Useful when you need product cards or posts built from a CSV in one go. CX Codex GP ChatGPT ★ 7,596repo stars fix-codesign-error Inspects a macOS signing or entitlement failure and lays out the shortest fix path. Useful when a build refuses to launch or fails validation. CX Codex GP ChatGPT ★ 7,596repo stars boltz-protein-screen Ranks existing proteins, peptides, antibodies and nanobodies against a target through the Boltz API. Not for designing new proteins or screening small molecules. CX Codex GP ChatGPT ★ 7,596repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor