api-workers

api-workers is a skill for Claude Code from wallieinformal201/pentest-mcp-server. It costs 51 tokens per session (2,364 once invoked), scanned A, a copy of api-workers, Apache-2.0.

A deployment guide for running an MCP server on Cloudflare Workers, Cloudflare’s serverless platform. It explains how to connect the server’s tools, resources, prompts, configuration, and scheduled tasks to that runtime.

In plain words
What is it for?
Use it to deploy an MCP server to Workers, pass environment or storage bindings, configure scheduled jobs, and check compatibility.
Why use it?
It addresses the differences between a regular server and Cloudflare’s request-based environment, including supported bindings and runtime limitations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the @cyanheads/pentest-mcp-server plugin — 31 skills shipped together

Good fit Use it to deploy an MCP server to Workers, pass environment or storage bindings, configure scheduled jobs, and check compatibility.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wallieinformal201/pentest-mcp-server/api-workers
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 wallieinformal201/pentest-mcp-server --skill api-workers
Clone the repo
git clone --depth 1 https://github.com/wallieinformal201/pentest-mcp-server

Made for: Claude Code.

Or install @cyanheads/pentest-mcp-server, the plugin that ships this one along with the rest of its 31 skills.

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 api-workers

README.md
[![agentmods](https://agentmods.dev/badge/skills/wallieinformal201/pentest-mcp-server/api-workers.svg)](https://agentmods.dev/skills/wallieinformal201/pentest-mcp-server/api-workers)
Your own site
<a href="https://agentmods.dev/skills/wallieinformal201/pentest-mcp-server/api-workers"><img src="https://agentmods.dev/badge/skills/wallieinformal201/pentest-mcp-server/api-workers.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,364 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 86% copy Near-identical to another mod 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.00051 $0.02364
Opus 5 $0.00026 $0.01182
Sonnet 5 $0.00010 $0.00473
Haiku 4.5 $0.00005 $0.00236

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

Security

Grade A, and why

api-workers 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 7d 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

This is a copy

86% identical to api-workers — 119 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/api-workers/SKILL.md · 201 lines

How it starts

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

Overview

@cyanheads/mcp-ts-core/worker exports createWorkerHandler — the Workers entry point. It wraps tool/resource/prompt registries into a per-request McpServer factory that integrates with the Cloudflare Workers runtime.


createWorkerHandler(options)

import { createWorkerHandler } from '@cyanheads/mcp-ts-core/worker';
import { echoTool } from './mcp-server/tools/definitions/echo.tool.js';
import { echoResource } from './mcp-server/resources/definitions/echo.resource.js';
import { echoPrompt } from './mcp-server/prompts/definitions/echo.prompt.js';
import { initMyService } from './services/my-domain/my-service.js';

export default createWorkerHandler({
  tools: [echoTool],
  resources: [echoResource],
  prompts: [echoPrompt],
  setup(core) {
    initMyService(core.config, core.storage);
  },
  extraEnvBindings: [['MY_API_KEY', 'MY_API_KEY']],
  extraObjectBindings: [['MY_CUSTOM_KV', 'MY_CUSTOM_KV']],
  onScheduled: async (controller, env, ctx) => {
    // Cloudflare cron trigger handler
  },
});

Fresh scaffolds register definitions directly in the entry point as shown above. If your project later adds barrel files for definitions, importing arrays from those barrels is also fine.

Options

Option Type Purpose
tools AnyToolDefinition[] Tool definitions to register
resources AnyResourceDefinition[] Resource definitions to register
prompts PromptDefinition[] Prompt definitions to register
extensions Record<string, object> SEP-2133 extensions to advertise in server capabilities
instructions string | (env: CloudflareBindings) => string Server-level orientation forwarded to the model on every initialize. Resolver form runs inside initializeApp(env) so env-derived text is available (see Workers-specific warnings). Empty string treated as unset.
setup (core: CoreServices) => void | Promise<void> Runs after core services are ready, during the first request (lazy init inside the fetch handler)
extraEnvBindings [bindingKey: string, processEnvKey: string][] Maps CF string bindings to process.env keys
extraObjectBindings [bindingKey: string, globalKey: string][] Maps CF object bindings (KV, R2, D1, AI) to globalThis keys
onScheduled (controller, env, ctx) => Promise<void> Cloudflare cron trigger handler

Read the full file on GitHub · 201 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. 7d ago First seen · 201 lines · 51 tokens per session scan A d183146d5a77

Subscribe to this mod's changes

api-workers is a skill published in the GitHub repository wallieinformal201/pentest-mcp-server (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 2,364 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to api-workers, differing in 119 lines, and is treated as a copy.

Related

Other skills, from other repositories

dynamo-recipe-runner

Select, validate, patch, and deploy existing NVIDIA Dynamo Kubernetes recipes. Use for model/backend/GPU/deployment-mode recipe bring-up; use router-starter for router-only mode work and troubleshoot for broken deployments.

NVIDIA/skills · 49 tokens

moai-platform-deployment

Deployment and hosting platform specialist covering Vercel, Railway, and Convex. Use when deploying applications, configuring edge functions, setting up continuous deployment, or managing serverless infrastructure.

modu-ai/moai-adk · 42 tokens

sns

AWS SNS notification service for pub/sub messaging. Use when creating topics, managing subscriptions, configuring message filtering, sending notifications, or setting up mobile push.

itsmostafa/aws-agent-skills · 32 tokens

multi-service-orchestration

PM2 process management, backend/frontend cascade execution, parallel worktree builds, and cross-service integration testing.

a5c-ai/babysitter · 27 tokens

foundations-distributed-systems

Distributed-systems primitives for CAP/PACELC, FLP, Paxos, Raft, clocks, CRDTs, leases, quorums, and broadcast protocols. Use when designing coordination.

vasilyu1983/AI-Agents-public · 48 tokens

gcp-essentials

Use when running a small product on core Google Cloud via the gcloud CLI: a project, Cloud Run deploys, a locked-down Cloud Storage bucket, managed Cloud SQL, and least-privilege IAM wiring them together. NOT AWS (that is aws-essentials), NOT the CI pipeline that ships the image (that is deployment), NOT Postgres…

ericrisco/rsc-harness · 91 tokens