Cloudflare Workers

by geelen

21 197.2k downloads Not rated yet

About

Cloudflare Workers-based MCP implementation enables AI assistants to execute custom serverless logic at the edge.

Details

Repository
geelen/workers-mcp

Explore

- Connects Claude Desktop to Cloudflare Workers
- Exposes Worker RPC methods as MCP tools
- Uses simple shared‑key authentication
- Generates tool documentation from JSDoc
- Automates secret generation and deployment
- Supports iterative development with redeploy

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Cloudflare Workers
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

\\\
npm install workers-mcp
npx workers-mcp help
\
\\

\\\json
"scripts": {
"deploy:worker": "workers-mcp docgen src/index.ts && wrangler deploy"
}
\
\\

Generate a secret in \.dev.vars\ for use locally, then upload it once we have a Worker to attach it to:

\\\sh

npm run deploy

Use the URL from your successful deployment in step 5, and any local alias you choose.

\\\sh
npx workers-mcp install <local-alias\> https://<worker-name\>.<my-name\>.workers.dev
\\\`

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "cloudflare workers": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

Step 2: Install \workers-mcp\ & run \help\ for instructions

\\\
npm install workers-mcp
npx workers-mcp help
\
\\

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.

Videos about Cloudflare Workers

Relevant YouTube tutorials, setups, and demos