drio
Open app

Workers Mcp

Source

Talk to a Cloudflare Worker from Claude Desktop!

Catalog onlyCatalog onlySTDIO

Overview

Workers Mcp is a tool designed to facilitate communication between Claude Desktop and Cloudflare Workers, enabling developers to customize their worker functionality to match user needs.

To use Workers Mcp, follow these steps: 1) Generate a new Cloudflare Worker using npx create-cloudflare@latest. 2) Install Workers Mcp with npm install workers-mcp and refer to the generated help instructions with npx workers-mcp help. 3) Implement your Worker logic and deploy it using the provided commands.

  • CLI tooling and logic for seamless integration between Claude Desktop and Cloudflare Workers - Simple methods to create and deploy workers - Support for generating secrets and handling authentication
  1. Building interactive applications using Cloudflare Workers that respond dynamically to user input in Claude Desktop.
  2. Developing customized logic for data processing directly from the desktop interface.
  3. Creating educational or entertaining functionalities powered by serverless architecture.

Add to your AI client

Use these steps to connect Workers Mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "workers-mcp-geelen": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "workers-mcp-geelen": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "workers-mcp-geelen": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "workers-mcp-geelen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "workers-mcp-geelen": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "workers-mcp-geelen": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-workers-mcp-geelen"
      ]
    }
  }
}

FAQ

Can I use Workers Mcp with existing Cloudflare Workers?

Yes! You can integrate it with existing workers by routing your fetch calls accordingly.

Are there any prerequisites to using Workers Mcp?

Basic knowledge of Node.js and Cloudflare Workers is recommended to effectively implement this tool.

Is there support for asynchronous operations?

Yes! The worker methods can handle asynchronous operations using JavaScript Promises.