build-mcp

build-mcp is a command for Claude Code from fanfan-de/anybox. It costs 12 tokens per session (291 once invoked), scanned A, original, MIT.

A command for building a remote MCP server on Cloudflare Workers. MCP, or Model Context Protocol, is a standard way to expose tools and data so AI applications can use them.

In plain words
What is it for?
Use it to create remote tool servers for GitHub integrations, database queries, file management, or other services that need authenticated access.
Why use it?
It provides a starting point for defining tools, adding OAuth sign-in, and deploying the server. That removes much of the repeated setup needed to make an AI-accessible service.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Good fit Use it to create remote tool servers for GitHub integrations, database queries, file management, or other services that need authenticated access.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fanfan-de/anybox/build-mcp
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.

Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox

Made for: Claude Code.

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 build-mcp

README.md
[![agentmods](https://agentmods.dev/badge/commands/fanfan-de/anybox/build-mcp/github.svg)](https://agentmods.dev/commands/fanfan-de/anybox/build-mcp)
Your own site
<a href="https://agentmods.dev/commands/fanfan-de/anybox/build-mcp"><img src="https://agentmods.dev/badge/commands/fanfan-de/anybox/build-mcp/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 build-mcp

Your own site · 80×15
<a href="https://agentmods.dev/commands/fanfan-de/anybox/build-mcp"><img src="https://agentmods.dev/badge/commands/fanfan-de/anybox/build-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 291 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00012 $0.00291
Opus 5 $0.00006 $0.00146
Sonnet 5 $0.00002 $0.00058
Haiku 4.5 $0.00001 $0.00029

Measured 5d ago against content hash 4ffd5aadf725, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

build-mcp scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • build-mcp — 92% identical, 16 lines differ
plugins/Anybox-Plugins/cloudflare/commands/build-mcp.md · 39 lines

What it actually says

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
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. 5d ago First seen · 39 lines · 12 tokens per session scan A 4ffd5aadf725

Subscribe to this mod's changes

build-mcp is a command published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 26d ago), licensed MIT. It adds 12 tokens to every session and 291 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.