Cloudflare Worker

🌐Community
by majesticlabs-dev · vlatest · Repository

Deploy and manage Cloudflare Workers code to optimize website performance and security with this tool.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add cloudflare-worker npx -- -y @trustedskills/cloudflare-worker
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "cloudflare-worker": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/cloudflare-worker"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to execute Cloudflare Workers, enabling them to run serverless code on Cloudflare's edge network. It facilitates tasks like dynamically modifying HTTP responses, routing requests based on custom logic, and integrating with other services through lightweight JavaScript modules. This capability extends the agent’s reach beyond its core environment by leveraging a powerful global infrastructure.

When to use it

  • Dynamic Content Modification: Modify website content or inject data into web pages without altering the original source code.
  • Custom Routing: Implement complex routing rules based on request headers, cookies, or other factors.
  • API Integration: Integrate with external APIs and services in a performant way by running the integration logic close to the user.
  • A/B Testing: Dynamically serve different versions of content for A/B testing purposes.

Key capabilities

  • Execute Cloudflare Workers
  • Modify HTTP responses
  • Route requests based on custom logic
  • Integrate with external APIs

Example prompts

  • "Run a worker that adds a banner to the top of every page on example.com."
  • "Create a worker that redirects all traffic from /old-page to /new-page."
  • "Execute a worker that fetches data from the weather API and displays it on the homepage."

Tips & gotchas

  • Requires familiarity with Cloudflare Workers and JavaScript.
  • Ensure your Cloudflare account has sufficient resources and permissions for Worker execution.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
majesticlabs-dev
Installs
18

🌐 Community

Passed automated security scans.