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.
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?
- Download Claude Desktop.
- Clone the repository.
- Install dependencies with
pnpm install
. - Configure
wrangler.json
based on your Cloudflare setup. - Deploy the worker using
pnpm deploy:worker
. - Generate and upload a secret using
npx workers-mcp secret generate && npx workers-mcp secret upload
. - Install the server with
npx workers-mcp install <server-alias> <worker-url>
. - 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?
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?
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?
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?
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?
Is this project actively maintained?
No, this project has been superseded by the Workers MCP package.