Workers MCP Server logo

Workers MCP Server

by MCP-Mirror

This is a proof-of-concept of writing a Model Context Protocol (MCP) Server in a Cloudflare Worker. It allows extending Claude Desktop by invoking functions using Cloudflare Worker's RPC syntax, granting access to Cloudflare or third-party bindings.

View on GitHub

Last updated: N/A

What is Workers MCP Server?

Workers MCP Server is a proof-of-concept MCP server implemented as a Cloudflare Worker. It enables Claude Desktop (and other MCP clients) to interact with Cloudflare Workers, leveraging their RPC capabilities to access various Cloudflare and third-party services.

How to use Workers MCP Server?

  1. Download Claude Desktop.
  2. Clone the repository.
  3. Install dependencies with pnpm install.
  4. Configure wrangler.json based on your Cloudflare setup.
  5. Deploy the worker using pnpm deploy:worker.
  6. Generate and upload a secret using npx workers-mcp secret generate && npx workers-mcp secret upload.
  7. Install the server with npx workers-mcp install <server-alias> <worker-url>.
  8. Restart Claude Desktop.

Key features of Workers MCP Server

  • Extends Claude Desktop functionality

  • Utilizes Cloudflare Workers RPC

  • Access to Cloudflare and third-party bindings

  • Automatic documentation generation from JSDoc comments

  • Local proxy for development and testing

Use cases of Workers MCP Server

  • Sending emails via Cloudflare Email Routing

  • Rendering web pages using Cloudflare Browser Rendering

  • Accessing databases or APIs through Cloudflare Workers

  • Integrating with other Cloudflare services

  • Creating custom tools for Claude Desktop

FAQ from Workers MCP Server

What is MCP?

Model Context Protocol (MCP) is a protocol that allows applications like Claude to interact with external tools and services.

What is a Cloudflare Worker?

Cloudflare Workers are serverless functions that run on Cloudflare's edge network, allowing for fast and scalable execution.

Why use a Cloudflare Worker for an MCP server?

Cloudflare Workers provide a convenient and scalable way to host an MCP server, with access to various Cloudflare services and third-party integrations.

What is the purpose of the local proxy?

The local proxy allows you to test and develop your MCP server locally before deploying it to Cloudflare Workers.

Is this project actively maintained?

No, this project has been superseded by the Workers MCP package.